Home
last modified time | relevance | path

Searched refs:imgInfo (Results 1 - 20 of 20) sorted by relevance

/foundation/arkui/ui_lite/frameworks/imgdecode/
H A Dfile_img_decoder.cpp40 dsc.imgInfo.data = nullptr; in Open()
42 uint8_t colorMode = dsc.imgInfo.header.colorMode; in Open()
52 if (dsc.imgInfo.data != nullptr) { in Close()
53 ImageCacheFree(dsc.imgInfo); in Close()
54 dsc.imgInfo.data = nullptr; in Close()
77 readCount = read(fd, &dsc.imgInfo.header, sizeof(ImageHeader)); in GetHeader()
81 dsc.imgInfo.header.width = 0; in GetHeader()
82 dsc.imgInfo.header.height = 0; in GetHeader()
83 dsc.imgInfo.header.colorMode = UNKNOWN; in GetHeader()
92 if (IsImgValidMode(dsc.imgInfo in ReadLine()
[all...]
H A Dcache_manager.h37 return dsc_.imgInfo.header; in GetImgHeader()
42 return dsc_.imgInfo; in GetImageInfo()
H A Dfile_img_decoder.h41 ImageInfo imgInfo; member
H A Dcache_manager.cpp24 return dsc_.imgInfo.data; in GetImgData()
47 dsc_.imgInfo.data = nullptr; in Clear()
243 if ((entryArr_[index].dsc_.path == path) && (entryArr_[index].dsc_.imgInfo.data == imgDsc->data)) { in GetIndex()
/foundation/distributedhardware/distributed_camera/services/data_process/src/pipeline_node/scale_conversion/
H A Dscale_convert_process_common.cpp162 int32_t ScaleConvertProcess::GetImageUnitInfo(ImageUnitInfo& imgInfo, const std::shared_ptr<DataBuffer>& imgBuf) in GetImageUnitInfo() argument
169 if (imgInfo.alignedWidth > MAX_IMG_SIZE && imgInfo.alignedHeight > MAX_IMG_SIZE) { in GetImageUnitInfo()
170 DHLOGE("imgInfo aligned width and height out of range"); in GetImageUnitInfo()
188 imgInfo.colorFormat = static_cast<Videoformat>(colorFormat); in GetImageUnitInfo()
189 findErr = findErr && imgBuf->FindInt32("width", imgInfo.width); in GetImageUnitInfo()
190 findErr = findErr && imgBuf->FindInt32("height", imgInfo.height); in GetImageUnitInfo()
191 findErr = findErr && imgBuf->FindInt32("alignedWidth", imgInfo.alignedWidth); in GetImageUnitInfo()
192 findErr = findErr && imgBuf->FindInt32("alignedHeight", imgInfo.alignedHeight); in GetImageUnitInfo()
195 "alignedHeight %{public}d.", imgInfo in GetImageUnitInfo()
253 IsCorrectImageUnitInfo(const ImageUnitInfo& imgInfo) IsCorrectImageUnitInfo() argument
[all...]
H A Dscale_convert_process.cpp140 int32_t ScaleConvertProcess::GetImageUnitInfo(ImageUnitInfo& imgInfo, const std::shared_ptr<DataBuffer>& imgBuf) in GetImageUnitInfo() argument
160 imgInfo.colorFormat = static_cast<Videoformat>(colorFormat); in GetImageUnitInfo()
161 findErr = findErr && imgBuf->FindInt32("width", imgInfo.width); in GetImageUnitInfo()
162 findErr = findErr && imgBuf->FindInt32("height", imgInfo.height); in GetImageUnitInfo()
163 findErr = findErr && imgBuf->FindInt32("alignedWidth", imgInfo.alignedWidth); in GetImageUnitInfo()
164 findErr = findErr && imgBuf->FindInt32("alignedHeight", imgInfo.alignedHeight); in GetImageUnitInfo()
167 "alignedHeight %{public}d.", imgInfo.width, imgInfo.height, imgInfo.alignedWidth, imgInfo in GetImageUnitInfo()
223 IsCorrectImageUnitInfo(const ImageUnitInfo& imgInfo) IsCorrectImageUnitInfo() argument
[all...]
/foundation/arkui/ui_lite/frameworks/common/
H A Dimage.cpp376 ImageInfo* imgInfo = static_cast<ImageInfo*>(UIMalloc(sizeof(ImageInfo))); in SetPNGSrc() local
377 if (imgInfo == nullptr) { in SetPNGSrc()
384 UIFree(imgInfo); in SetPNGSrc()
399 imgInfo->header.width = width; in SetPNGSrc()
400 imgInfo->header.height = height; in SetPNGSrc()
401 imgInfo->header.colorMode = ARGB8888; in SetPNGSrc()
402 imgInfo->dataSize = dataSize; in SetPNGSrc()
403 imgInfo->data = srcData; in SetPNGSrc()
405 ReInitImageInfo(imgInfo, true); in SetPNGSrc()
436 ImageInfo* imgInfo in SetJPEGSrc() local
477 ReInitImageInfo(ImageInfo* imgInfo, bool mallocFlag) ReInitImageInfo() argument
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/
H A Dpixel_map_parcel.cpp124 ImageInfo imgInfo; in CreateFromParcel() local
125 imgInfo.size.width = data.ReadInt32(); in CreateFromParcel()
126 imgInfo.size.height = data.ReadInt32(); in CreateFromParcel()
127 imgInfo.pixelFormat = static_cast<PixelFormat>(data.ReadInt32()); in CreateFromParcel()
128 imgInfo.colorSpace = static_cast<ColorSpace>(data.ReadInt32()); in CreateFromParcel()
129 imgInfo.alphaType = static_cast<AlphaType>(data.ReadInt32()); in CreateFromParcel()
130 imgInfo.baseDensity = data.ReadInt32(); in CreateFromParcel()
143 uint32_t ret = pixelMap->SetImageInfo(imgInfo); in CreateFromParcel()
H A Dpixel_map.cpp2426 bool PixelMap::ReadImageInfo(Parcel &parcel, ImageInfo &imgInfo) in ReadImageInfo() argument
2428 imgInfo.size.width = parcel.ReadInt32(); in ReadImageInfo()
2429 IMAGE_LOGD("read pixel map width:[%{public}d] to parcel.", imgInfo.size.width); in ReadImageInfo()
2430 imgInfo.size.height = parcel.ReadInt32(); in ReadImageInfo()
2431 IMAGE_LOGD("read pixel map height:[%{public}d] to parcel.", imgInfo.size.height); in ReadImageInfo()
2432 if (imgInfo.size.width <= 0 || imgInfo.size.height <= 0) { in ReadImageInfo()
2433 IMAGE_LOGE("invalid width:[%{public}d] or height:[%{public}d]", imgInfo.size.width, imgInfo.size.height); in ReadImageInfo()
2436 imgInfo in ReadImageInfo()
2529 ReadPropertiesFromParcel(Parcel &parcel, ImageInfo &imgInfo, AllocatorType &allocatorType, int32_t &bufferSize, PIXEL_MAP_ERR &error) ReadPropertiesFromParcel() argument
2645 UpdatePixelMapMemInfo(PixelMap *pixelMap, ImageInfo &imgInfo, PixelMemInfo &pixelMemInfo) UpdatePixelMapMemInfo() argument
2683 ImageInfo imgInfo; Unmarshalling() local
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_utils_test.cpp546 ImageInfo imgInfo; in HWTEST_F() local
548 imgInfo.size.width = 16; in HWTEST_F()
549 imgInfo.size.height = 16; in HWTEST_F()
550 imgInfo.pixelFormat = PixelFormat::ASTC_4x4; in HWTEST_F()
551 uint32_t ret = ImageUtils::GetAstcBytesCount(imgInfo); in HWTEST_F()
554 imgInfo.pixelFormat = PixelFormat::ASTC_6x6; in HWTEST_F()
555 ret = ImageUtils::GetAstcBytesCount(imgInfo); in HWTEST_F()
558 imgInfo.pixelFormat = PixelFormat::ASTC_8x8; in HWTEST_F()
559 ret = ImageUtils::GetAstcBytesCount(imgInfo); in HWTEST_F()
562 imgInfo in HWTEST_F()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp789 ImageInfo imgInfo; in CheckPixelMapSLR() local
790 pixelMap.GetImageInfo(imgInfo); in CheckPixelMapSLR()
791 if (imgInfo.pixelFormat != PixelFormat::RGBA_8888) { in CheckPixelMapSLR()
828 ImageInfo imgInfo; in ScalePixelMapWithSLR() local
829 pixelMap.GetImageInfo(imgInfo); in ScalePixelMapWithSLR()
834 std::shared_ptr<SLRWeightTuple> weightTuplePtr = initSLRFactor(imgInfo.size, desiredSize); in ScalePixelMapWithSLR()
840 SLRMat src(imgInfo.size, imgInfo.pixelFormat, pixelMap.GetWritablePixels(), pixelMap.GetRowStride() / pixelBytes); in ScalePixelMapWithSLR()
857 SLRMat dst({desiredSize.width, desiredSize.height}, imgInfo.pixelFormat, m->data.data, rowStride / pixelBytes); in ScalePixelMapWithSLR()
866 imgInfo in ScalePixelMapWithSLR()
882 ImageInfo imgInfo; ScalePixelMapEx() local
[all...]
/foundation/distributedhardware/distributed_camera/services/data_process/include/pipeline_node/scale_conversion/
H A Dscale_convert_process.h58 bool IsCorrectImageUnitInfo(const ImageUnitInfo& imgInfo);
61 int32_t GetImageUnitInfo(ImageUnitInfo& imgInfo, const std::shared_ptr<DataBuffer>& imgBuf);
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_foreground_effect_filter.cpp172 auto imgInfo = image->GetImageInfo(); in ApplyForegroundEffect() local
187 std::ceil(height * blurScale_) + extension, imgInfo.GetColorType(), in ApplyForegroundEffect()
188 imgInfo.GetAlphaType(), imgInfo.GetColorSpace()); in ApplyForegroundEffect()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/src/
H A Dpixel_convert_adapter.cpp157 static int32_t GetRGBxRowBytes(const ImageInfo &imgInfo) in GetRGBxRowBytes() argument
159 return imgInfo.size.width * NUM_4; in GetRGBxRowBytes()
162 static int32_t GetRGBxSize(const ImageInfo &imgInfo) in GetRGBxSize() argument
164 return imgInfo.size.height * GetRGBxRowBytes(imgInfo); in GetRGBxSize()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_image_view.cpp447 ImageInfo imgInfo; in OnDraw() local
454 imgInfo = entry.GetImageInfo(); in OnDraw()
456 imgInfo = *(GetImageInfo()); in OnDraw()
458 uint8_t pxSize = DrawUtils::GetPxSizeByColorMode(imgInfo.header.colorMode); in OnDraw()
459 TransformDataInfo imageTranDataInfo = {imgInfo.header, imgInfo.data, pxSize, in OnDraw()
/foundation/arkui/ui_lite/interfaces/kits/common/
H A Dimage.h185 void ReInitImageInfo(ImageInfo* imgInfo, bool mallocFlag);
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/round_corner_display/
H A Drs_rcd_surface_render_node.cpp207 Drawing::ImageInfo imgInfo = Drawing::ImageInfo::MakeN32Premul(nodeBuffer->GetWidth(), nodeBuffer->GetHeight()); in SetHardwareResourceToBuffer() local
208 if (!layerBitmap.ReadPixels(imgInfo, reinterpret_cast<void*>(nodeBuffer->GetVirAddr()), in SetHardwareResourceToBuffer()
/foundation/multimedia/image_framework/interfaces/innerkits/include/
H A Dpixel_map.h429 bool ReadPropertiesFromParcel(Parcel &parcel, ImageInfo &imgInfo, AllocatorType &allocatorType,
462 static bool UpdatePixelMapMemInfo(PixelMap *pixelMap, ImageInfo &imgInfo, PixelMemInfo &pixelMemInfo);
470 static bool ReadImageInfo(Parcel &parcel, ImageInfo &imgInfo);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/
H A Dimage_pixel_map_test.cpp1904 ImageInfo imgInfo; in HWTEST_F() local
1905 imgInfo.size.width = PIXEL_MAP_TEST_WIDTH; in HWTEST_F()
1906 imgInfo.size.height = PIXEL_MAP_TEST_HEIGHT; in HWTEST_F()
1907 imgInfo.pixelFormat = PixelFormat::RGB_888; in HWTEST_F()
1908 imgInfo.colorSpace = ColorSpace::SRGB; in HWTEST_F()
1910 pixelMap.SetImageInfo(imgInfo); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/platform/image_native/
H A Dpixel_map.h263 bool ReadImageInfo(Parcel &parcel, ImageInfo &imgInfo);

Completed in 20 milliseconds