3#include <CesiumImage/ImageAsset.h>
4#include <CesiumImage/Library.h>
5#include <CesiumUtility/IntrusivePointer.h>
57 const std::span<const std::byte>& data,
88 const std::byte* pInputPixels,
91 int32_t inputStrideBytes,
92 std::byte* pOutputPixels,
95 int32_t outputStrideBytes,
Contains methods for reading and manipulating images.
static ImageReaderResult readImage(const std::span< const std::byte > &data, const Ktx2TranscodeTargets &ktx2TranscodeTargets)
Reads an image from a buffer.
static bool unsafeResize(const std::byte *pInputPixels, int32_t inputWidth, int32_t inputHeight, int32_t inputStrideBytes, std::byte *pOutputPixels, int32_t outputWidth, int32_t outputHeight, int32_t outputStrideBytes, int32_t channels)
Resize an image, without validating the provided pointers or ranges.
static std::optional< std::string > generateMipMaps(ImageAsset &image)
Generate mipmaps for this image.
A smart pointer that calls addReference and releaseReference on the controlled object.
Classes that support reading, decoding, and manipulating images.
A 2D image asset, including its pixel data. The image may have mipmaps, and it may be encoded in a GP...
The result of reading an image with ImageDecoder::readImage.
std::vector< std::string > errors
Error messages that occurred while trying to read the image.
std::vector< std::string > warnings
Warning messages that occurred while reading the image.
CesiumUtility::IntrusivePointer< ImageAsset > pImage
The ImageAsset that was read.
For each possible input transmission format, this struct names the ideal target gpu-compressed pixel ...