// Copyright (c) the JPEG XL Project Authors. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file.
// Returns a test image with some autogenerated pixel content, using 16 bits per // channel, big endian order, 1 to 4 channels // The seed parameter allows to create images with different pixel content.
std::vector<uint8_t> GetSomeTestImage(size_t xsize, size_t ysize,
size_t num_channels, uint16_t seed);
class TestImage { public:
TestImage();
extras::PackedPixelFile& ppf() { return ppf_; }
Status DecodeFromBytes(const std::vector<uint8_t>& bytes);
TestImage& ClearMetadata();
Status SetDimensions(size_t xsize, size_t ysize);
Status SetChannels(size_t num_channels);
// Sets the same bit depth on color, alpha and all extra channels.
TestImage& SetAllBitDepths(uint32_t bits_per_sample,
uint32_t exponent_bits_per_sample = 0);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.