Home
last modified time | relevance | path

Searched refs:imageBytes (Results 1 - 7 of 7) sorted by relevance

/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/
H A Dimage_loader_stb_image.cpp93 void FreeStbImageBytes(void* imageBytes) in FreeStbImageBytes() argument
95 stbi_image_free(imageBytes); in FreeStbImageBytes()
125 uint8_t* imageBytes, uint32_t width, uint32_t height, uint32_t channelCount, uint32_t bytesPerChannel, bool linear) in PremultiplyAlpha()
136 uint8_t* img = imageBytes; in PremultiplyAlpha()
150 uint8_t* img = imageBytes; in PremultiplyAlpha()
162 uint16_t* img = reinterpret_cast<uint16_t*>(imageBytes); in PremultiplyAlpha()
273 static ImageLoaderManager::LoadResult CreateImage(StbImagePtr imageBytes, uint32_t imageWidth, uint32_t imageHeight, in CreateImage() argument
287 isPremultiplied = PremultiplyAlpha(static_cast<uint8_t*>(imageBytes.get()), imageWidth, imageHeight, in CreateImage()
300 image->imageBytes_ = BASE_NS::move(imageBytes); in CreateImage()
328 StbImagePtr imageBytes in LoadFromMemory() local
124 PremultiplyAlpha( uint8_t* imageBytes, uint32_t width, uint32_t height, uint32_t channelCount, uint32_t bytesPerChannel, bool linear) PremultiplyAlpha() argument
378 StbImagePtr imageBytes = nullptr; Load() local
[all...]
H A Dimage_loader_libpng.cpp97 LibBaseImagePtr imageBytes = nullptr; in LoadFromMemory() local
100 return imageBytes; in LoadFromMemory()
112 return imageBytes; in LoadFromMemory()
118 return imageBytes; in LoadFromMemory()
124 return imageBytes; in LoadFromMemory()
126 imageBytes = {buff, FreeLibBaseImageBytes}; in LoadFromMemory()
131 if (imageBytes && (loadFlags & IImageLoaderManager::IMAGE_LOADER_FLIP_VERTICALLY_BIT) != 0) { in LoadFromMemory()
143 return imageBytes; in LoadFromMemory()
187 LibBaseImagePtr imageBytes = nullptr; in Load() local
189 imageBytes in Load()
[all...]
H A Dimage_loader_common.cpp58 uint8_t *imageBytes, uint32_t width, uint32_t height, uint32_t channelCount, uint32_t bytesPerChannel, bool linear) in PremultiplyAlpha()
68 uint8_t *img = imageBytes; in PremultiplyAlpha()
82 uint8_t *img = imageBytes; in PremultiplyAlpha()
93 uint16_t *img = reinterpret_cast<uint16_t *>(imageBytes); in PremultiplyAlpha()
109 void FreeLibBaseImageBytes(void *imageBytes) in FreeLibBaseImageBytes() argument
111 free(imageBytes); in FreeLibBaseImageBytes()
202 ImageLoaderManager::LoadResult LibBaseImage::CreateImage(LibBaseImagePtr imageBytes, uint32_t imageWidth, in CreateImage() argument
217 ImageLoaderCommon::GetInstance().PremultiplyAlpha(static_cast<uint8_t *>(imageBytes.get()), in CreateImage()
233 image->imageBytes_ = BASE_NS::move(imageBytes); in CreateImage()
57 PremultiplyAlpha( uint8_t *imageBytes, uint32_t width, uint32_t height, uint32_t channelCount, uint32_t bytesPerChannel, bool linear) PremultiplyAlpha() argument
H A Dimage_loader_libjpeg.cpp141 LibBaseImagePtr imageBytes = nullptr; in LoadFromMemory() local
148 return imageBytes; in LoadFromMemory()
158 return imageBytes; in LoadFromMemory()
165 imageBytes = {buff, FreeLibBaseImageBytes}; in LoadFromMemory()
170 return imageBytes; in LoadFromMemory()
173 imageBytes = {buff, FreeLibBaseImageBytes}; in LoadFromMemory()
175 return imageBytes; in LoadFromMemory()
210 LibBaseImagePtr imageBytes = nullptr; in Load() local
212 imageBytes = LoadFromMemory(cinfo, loadFlags, info); in Load()
213 if (imageBytes in Load()
[all...]
H A Dimage_loader_common.h34 bool PremultiplyAlpha(uint8_t *imageBytes, uint32_t width, uint32_t height, uint32_t channelCount,
49 void FreeLibBaseImageBytes(void *imageBytes);
73 static ImageLoaderManager::LoadResult CreateImage(LibBaseImagePtr imageBytes, uint32_t imageWidth,
H A Dimage_loader_ktx.cpp246 uint8_t* imageBytes = const_cast<uint8_t*>(image->imageBytes_); in ProcessMipmapLevel() local
247 if (memmove_s(imageBytes + validOffset, image->imageBytesLength_ - validOffset, in ProcessMipmapLevel()
248 imageBytes + currentImageElementOffset, subelementLength) != EOK) { in ProcessMipmapLevel()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hdr/
H A Dhdr_helper.cpp1250 const uint8_t* imageBytes = reinterpret_cast<const uint8_t*>(imageData->data()); in WriteJpegPreApp() local
1251 if (*imageBytes != JPEG_MARKER_PREFIX || *(imageBytes + INDEX_ONE) != JPEG_SOI) { in WriteJpegPreApp()
1256 outputStream.write(imageBytes, JPEG_MARKER_TAG_SIZE); in WriteJpegPreApp()
1259 if (imageBytes[index] != JPEG_MARKER_PREFIX) { in WriteJpegPreApp()
1262 if ((imageBytes[index + INDEX_ONE] & 0xF0) != JPEG_MARKER_APP0) { in WriteJpegPreApp()
1265 uint16_t markerSize = (imageBytes[index + INDEX_TWO] << MOVE_ONE_BYTE) | imageBytes[index + INDEX_THREE]; in WriteJpegPreApp()
1269 outputStream.write(imageBytes + index, markerSize + JPEG_MARKER_TAG_SIZE); in WriteJpegPreApp()
1270 if (imageBytes[inde in WriteJpegPreApp()
[all...]

Completed in 7 milliseconds