Home
last modified time | relevance | path

Searched refs:destFormat (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_format_convert_test.cpp84 PixelFormat &destFormat, Size &srcSize);
86 PixelFormat &destFormat, Size &srcSize);
345 PixelFormat &destFormat, Size &srcSize) in RgbConvertToYuvByPixelMap() argument
406 PixelFormat &destFormat, Size &srcSize) in RgbConvertToYuvP010ByPixelMap() argument
528 opts.pixelFormat = destFormat; in PixelMapFormatConvert()
554 opts.pixelFormat = destFormat; in PixelMap10bitConvert()
578 PixelFormat destFormat = PixelFormat::NV21; variable
589 PixelFormat destFormat = PixelFormat::NV21; variable
600 PixelFormat destFormat = PixelFormat::NV12; variable
1768 destFormat = PixelFormat::RGB_888;
[all …]
H A Dimage_format_convert_fail_test.cpp66 PixelFormat destFormat = PixelFormat::NV21; variable
98 PixelFormat destFormat = PixelFormat::RGBA_8888; variable
140 PixelFormat destFormat = PixelFormat::NV21; variable
160 PixelFormat destFormat = PixelFormat::RGBA_8888; variable
180 PixelFormat destFormat = PixelFormat::RGB_888; variable
202 PixelFormat destFormat = PixelFormat::NV21; variable
231 PixelFormat destFormat = PixelFormat::RGB_888; variable
249 PixelFormat destFormat = PixelFormat::YCBCR_P010; variable
267 PixelFormat destFormat = PixelFormat::YCBCR_P010; variable
285 PixelFormat destFormat = PixelFormat::NV12; variable
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imageyuvconvert_fuzzer/src/
H A Dimage_yuv_convert_fuzzer.cpp199 PixelFormat destFormat = PixelFormat::NV12; in RGB565ToNV12FuzzTest001() local
210 PixelFormat destFormat = PixelFormat::NV12; in RGB565ToNV12FuzzTest002() local
221 PixelFormat destFormat = PixelFormat::NV21; in RGB565ToNV21FuzzTest001() local
232 PixelFormat destFormat = PixelFormat::NV21; in RGB565ToNV21FuzzTest002() local
243 PixelFormat destFormat = PixelFormat::NV21; in BGRAToNV21FuzzTest001() local
254 PixelFormat destFormat = PixelFormat::NV21; in BGRAToNV21FuzzTest002() local
265 PixelFormat destFormat = PixelFormat::NV12; in BGRAToNV12FuzzTest001() local
276 PixelFormat destFormat = PixelFormat::NV12; in BGRAToNV12FuzzTest002() local
397 PixelFormat destFormat = PixelFormat::NV12; in NV21ToNV12FuzzTest001() local
410 PixelFormat destFormat = PixelFormat::NV12; in NV21ToNV12FuzzTest002() local
[all …]
/ohos5.0/foundation/multimedia/image_framework/interfaces/innerkits/include/
H A Dimage_format_convert.h48 …static uint32_t ConvertImageFormat(std::shared_ptr<PixelMap> &srcPiexlMap, PixelFormat destFormat);
52 const PixelFormat &srcFormat, PixelFormat destFormat);
58 PixelFormat destFormat);
60 static ConvertFunction GetConvertFuncByFormat(PixelFormat srcFormat, PixelFormat destFormat);
61 …static YUVConvertFunction YUVGetConvertFuncByFormat(PixelFormat srcFormat, PixelFormat destFormat);
69 … const PixelFormat &srcFormat, PixelFormat destFormat);
/ohos5.0/foundation/graphic/surface_lite/frameworks/
H A Dbuffer_manager.cpp61 bool BufferManager::ConvertFormat(PixelFormat& destFormat, uint32_t srcFormat) const in ConvertFormat() argument
65 destFormat = PIXEL_FMT_BUTT; in ConvertFormat()
68 destFormat = PIXEL_FMT_RGB_565; in ConvertFormat()
71 destFormat = PIXEL_FMT_RGBA_5551; in ConvertFormat()
74 destFormat = PIXEL_FMT_RGB_888; in ConvertFormat()
77 destFormat = PIXEL_FMT_RGBA_8888; in ConvertFormat()
80 destFormat = PIXEL_FMT_YCBCR_420_SP; in ConvertFormat()
83 destFormat = PIXEL_FMT_YCRCB_420_SP; in ConvertFormat()
86 destFormat = PIXEL_FMT_YCBCR_420_P; in ConvertFormat()
89 destFormat = PIXEL_FMT_YCRCB_420_P; in ConvertFormat()
H A Dbuffer_manager.h92 bool ConvertFormat(PixelFormat& destFormat, uint32_t srcFormat) const;
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert.cpp315 if (!IsSupport(destFormat)) { in ConvertImageFormat()
419 auto iter = g_cvtFuncMap.find(std::make_pair(srcFormat, destFormat)); in GetConvertFuncByFormat()
429 auto iter = g_yuvCvtFuncMap.find(std::make_pair(srcFormat, destFormat)); in YUVGetConvertFuncByFormat()
537 ConvertFunction cvtFunc = GetConvertFuncByFormat(srcFormat, destFormat); in RGBConvertImageFormatOption()
550 auto m = CreateMemory(destFormat, allocType, width, height, dstStrides); in RGBConvertImageFormatOption()
566 DestConvertInfo destInfo = {width, height, destFormat, allocType}; in RGBConvertImageFormatOption()
588 ConvertFunction cvtFunc = GetConvertFuncByFormat(srcFormat, destFormat); in RGBConvertImageFormatOptionUnique()
617 DestConvertInfo destInfo = {width, height, destFormat, allocType}; in RGBConvertImageFormatOptionUnique()
639 if (destFormat == PixelFormat::RGB_888 || destFormat == PixelFormat::RGB_565 || in GetAllocatorType()
640 destFormat == PixelFormat::RGBA_F16) { in GetAllocatorType()
[all …]
H A Dimage_format_convert_utils.cpp1131 DestConvertInfo &destInfo, PixelFormat destFormat) in YuvToYuv() argument
1142 destParam.format = destFormat; in YuvToYuv()
1156 DestConvertInfo &destInfo, PixelFormat destFormat) in YuvToRGB() argument
1167 destParam.format = destFormat; in YuvToRGB()
1181 DestConvertInfo &destInfo, PixelFormat destFormat) in RGBToYuv() argument
1192 destParam.format = destFormat; in RGBToYuv()
H A Dimage_format_convert_ext_utils.cpp333 DestConvertInfo &destInfo, PixelFormat destFormat) in YuvToRGB() argument
344 destParam.format = destFormat; in YuvToRGB()
1214 DestConvertInfo &destInfo, PixelFormat destFormat) in RGBToI420ToYuv() argument
1225 destParam.format = destFormat; in RGBToI420ToYuv()
1266 DestConvertInfo &destInfo, PixelFormat destFormat) in RGBToYuv() argument
1277 destParam.format = destFormat; in RGBToYuv()
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/pixelmap_ndk/
H A Dpixelmap_native.cpp648 PixelFormat destFormat = static_cast<PixelFormat>(destPixelFormat); in ImageConvert_YuvToRgb() local
650 !IsMatchType(IMAGE_FORMAT::IMAGE_FORMAT_RGB_TYPE, destFormat)) { in ImageConvert_YuvToRgb()
656 uint32_t ret = ImageFormatConvert::ConvertImageFormat(pixelMap, destFormat); in ImageConvert_YuvToRgb()
670 PixelFormat destFormat = static_cast<PixelFormat>(destPixelFormat); in ImageConvert_RgbToYuv() local
672 !IsMatchType(IMAGE_FORMAT::IMAGE_FORMAT_YUV_TYPE, destFormat)) { in ImageConvert_RgbToYuv()
678 uint32_t ret = ImageFormatConvert::ConvertImageFormat(pixelMap, destFormat); in ImageConvert_RgbToYuv()
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dpixel_map_napi.cpp139 PixelFormat destFormat = PixelFormat::UNKNOWN; member
3751 PixelFormat destPixelFormat = context->destFormat; in GetNativePixelMapInfo()
3788 if (context->destFormat == PixelFormat::UNKNOWN) { in GetNativeConvertInfo()
3828 … context->status = ImageFormatConvert::ConvertImageFormat(context->rPixelMap, context->destFormat); in Convert()
3855 PixelFormat dstFormat = context->destFormat; in PixelFormatConvert()
3904 nVal.context->destFormat = static_cast<PixelFormat>(pixelFormatInt); in ConvertPixelMapFormat()
3906 if (TypeFormat(nVal.context->destFormat) == FormatType::UNKNOWN) { in ConvertPixelMapFormat()