/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/ |
H A D | image_loader_libjpeg.cpp | 145 size_t imgSize = cinfo.output_width * cinfo.output_height * static_cast<uint32_t>(cinfo.output_components); in LoadFromMemory() local 146 if (imgSize < 1 || imgSize >= IMG_SIZE_LIMIT_2GB) { in LoadFromMemory() 147 CORE_LOG_E("imgSize more than limit!"); in LoadFromMemory() 155 uint16_t *buff = static_cast<uint16_t *>(malloc(imgSize * sizeof(uint16_t))); in LoadFromMemory() 167 uint8_t *buff = static_cast<uint8_t *>(malloc(imgSize * sizeof(uint8_t))); in LoadFromMemory()
|
H A D | image_loader_libpng.cpp | 109 size_t imgSize = info.width * info.height * info.componentCount; in LoadFromMemory() local 110 if (imgSize < 1 || imgSize >= IMG_SIZE_LIMIT_2GB) { in LoadFromMemory() 111 CORE_LOG_E("imgSize more than limit!"); in LoadFromMemory() 121 png_bytep buff = static_cast<png_bytep>(malloc(imgSize * sizeof(uint8_t))); in LoadFromMemory()
|
/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/scale_conversion/ |
H A D | scale_convert_process_common.cpp | 200 imgInfo.imgSize = imgBuf->Size(); in GetImageUnitInfo() 207 "%{public}d, width %{public}d, height %{public}d, chromaOffset %{public}zu, imgSize %{public}zu.", in GetImageUnitInfo() 209 imgInfo.width, imgInfo.height, imgInfo.chromaOffset, imgInfo.imgSize); in GetImageUnitInfo() 230 "%{public}d, chromaOffset %{public}zu, imgSize %{public}zu.", srcImgInfo.width, srcImgInfo.height, in CheckScaleConvertInfo() 231 srcImgInfo.alignedWidth, srcImgInfo.alignedHeight, srcImgInfo.chromaOffset, srcImgInfo.imgSize); in CheckScaleConvertInfo() 237 "%{public}d, chromaOffset %{public}zu, imgSize %{public}zu.", dstImgInfo.width, dstImgInfo.height, in CheckScaleConvertInfo() 238 dstImgInfo.alignedWidth, dstImgInfo.alignedHeight, dstImgInfo.chromaOffset, dstImgInfo.imgSize); in CheckScaleConvertInfo() 259 imgInfo.imgSize >= expectedImgSize && imgInfo.chromaOffset == expectedChromaOffset); in IsCorrectImageUnitInfo() 303 int32_t ret = memcpy_s(dstImgInfo.imgData->Data(), dstImgInfo.imgSize, dstData_[0], dstBuffSize_); in ScaleConvert()
|
H A D | scale_convert_process.cpp | 172 imgInfo.imgSize = imgBuf->Size(); in GetImageUnitInfo() 176 "%{public}d, width %{public}d, height %{public}d, chromaOffset %{public}zu, imgSize %{public}zu.", in GetImageUnitInfo() 178 imgInfo.width, imgInfo.height, imgInfo.chromaOffset, imgInfo.imgSize); in GetImageUnitInfo() 199 "%{public}d, chromaOffset %{public}zu, imgSize %{public}zu.", srcImgInfo.width, srcImgInfo.height, in CheckScaleConvertInfo() 200 srcImgInfo.alignedWidth, srcImgInfo.alignedHeight, srcImgInfo.chromaOffset, srcImgInfo.imgSize); in CheckScaleConvertInfo() 206 "%{public}d, chromaOffset %{public}zu, imgSize %{public}zu.", dstImgInfo.width, dstImgInfo.height, in CheckScaleConvertInfo() 207 dstImgInfo.alignedWidth, dstImgInfo.alignedHeight, dstImgInfo.chromaOffset, dstImgInfo.imgSize); in CheckScaleConvertInfo() 229 imgInfo.imgSize >= expectedImgSize && imgInfo.chromaOffset == expectedChromaOffset); in IsCorrectImageUnitInfo() 309 srcImgInfo.imgSize = dstBuf->Size(); in ConvertResolution()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | png_exif_metadata_accessor.cpp | 130 const size_t imgSize = static_cast<size_t>(imageStream_->GetSize()); in ReadBlob() local 139 if (chunkLength > imgSize - imageStream_->Tell()) { in ReadBlob() 260 const size_t imgSize = static_cast<size_t>(imageStream_->GetSize()); in UpdateExifMetadata() local 274 if (chunkLength > imgSize - imageStream_->Tell()) { in UpdateExifMetadata()
|
H A D | webp_exif_metadata_accessor.cpp | 115 const size_t imgSize = static_cast<size_t>(imageStream_->GetSize()); in ReadBlob() local 116 if (size > imgSize - imageStream_->Tell()) { in ReadBlob() 304 const ssize_t imgSize = imageStream_->GetSize(); in UpdateExifMetadata() local 305 if (chunkSize > imgSize - imageStream_->Tell()) { in UpdateExifMetadata() 372 const ssize_t imgSize = imageStream_->GetSize(); in GetImageWidthAndHeight() local 373 if (size > imgSize - imageStream_->Tell()) { in GetImageWidthAndHeight()
|
/foundation/arkui/ace_engine/frameworks/core/image/ |
H A D | image_compressor.cpp | 279 void ImageCompressor::WriteToFile(std::string srcKey, sk_sp<SkData> compressedData, Size imgSize) argument 281 void ImageCompressor::WriteToFile(std::string srcKey, std::shared_ptr<RSData> compressedData, Size imgSize) 289 [srcKey, compressedData, imgSize]() { 291 uint32_t xsize = static_cast<uint32_t>(imgSize.Width()); 292 uint32_t ysize = static_cast<uint32_t>(imgSize.Height());
|
/foundation/multimedia/player_framework/frameworks/native/avcodeclist/ |
H A D | avcodec_info.cpp | 352 ImgSize VideoCaps::MatchClosestSize(const ImgSize &imgSize)
in MatchClosestSize() argument 354 int64_t targetBlockNum = DivCeil(imgSize.width, blockWidth_) *
in MatchClosestSize() 355 static_cast<int64_t>(DivCeil(imgSize.height, blockHeight_));
in MatchClosestSize() 369 data_.codecName.c_str(), imgSize.width, imgSize.height, closestSize.width, closestSize.height);
in MatchClosestSize()
|
/foundation/distributedhardware/distributed_camera/services/data_process/include/utils/ |
H A D | image_common_type.h | 80 size_t imgSize; member
|
/foundation/multimedia/av_codec/frameworks/native/avcodeclist/ |
H A D | avcodec_info.cpp | 484 ImgSize VideoCaps::MatchClosestSize(const ImgSize &imgSize) in MatchClosestSize() argument 487 DivCeil(imgSize.width, blockWidth_) * static_cast<int64_t>(DivCeil(imgSize.height, blockHeight_)); in MatchClosestSize() 501 data_->codecName.c_str(), imgSize.width, imgSize.height, closestSize.width, closestSize.height); in MatchClosestSize()
|
/foundation/multimedia/av_codec/interfaces/inner_api/native/ |
H A D | avcodec_info.h | 482 ImgSize MatchClosestSize(const ImgSize &imgSize);
|