Home
last modified time | relevance | path

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

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_format_convert_test.cpp161 decodeOpts.desiredPixelFormat = srcFormat; in RgbConvertToYuv()
217 decodeOpts.desiredPixelFormat = srcFormat; in YuvConvertToRgb()
279 opts.srcPixelFormat = srcFormat; in YuvP010ConvertToRgb()
280 opts.pixelFormat = srcFormat; in YuvP010ConvertToRgb()
319 opts.srcPixelFormat = srcFormat; in Rgba1010102ConvertToYuvP010()
320 opts.pixelFormat = srcFormat; in Rgba1010102ConvertToYuvP010()
458 decodeOpts.desiredPixelFormat = srcFormat; in RgbConvertToYuvP010()
517 decodeOpts.desiredPixelFormat = srcFormat; in PixelMapFormatConvert()
527 opts.srcPixelFormat = srcFormat; in PixelMapFormatConvert()
553 opts.srcPixelFormat = srcFormat; in PixelMap10bitConvert()
[all …]
H A Dimage_format_convert_fail_test.cpp65 PixelFormat srcFormat = PixelFormat::RGB_565; variable
97 PixelFormat srcFormat = PixelFormat::NV21; variable
139 PixelFormat srcFormat = PixelFormat::BGRA_8888; variable
159 PixelFormat srcFormat = PixelFormat::NV21; variable
179 PixelFormat srcFormat = PixelFormat::NV21; variable
201 PixelFormat srcFormat = PixelFormat::RGB_565; variable
230 PixelFormat srcFormat = PixelFormat::YCBCR_P010; variable
248 PixelFormat srcFormat = PixelFormat::RGB_888; variable
266 PixelFormat srcFormat = PixelFormat::NV12; variable
284 PixelFormat srcFormat = PixelFormat::YCBCR_P010; variable
[all …]
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imageyuvconvert_fuzzer/src/
H A Dimage_yuv_convert_fuzzer.cpp83 decodeOpts.desiredPixelFormat = srcFormat; in RgbConvertToYuv()
116 decodeOpts.desiredPixelFormat = srcFormat; in YuvConvertToRgb()
172 opts.srcPixelFormat = srcFormat; in YuvP010ConvertToRgb()
173 opts.pixelFormat = srcFormat; in YuvP010ConvertToRgb()
300 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToRGBFuzzTest001() local
312 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToRGBFuzzTest002() local
324 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToRGBAFuzzTest001() local
336 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToRGBAFuzzTest002() local
348 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToBGRAFuzzTest001() local
360 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToBGRAFuzzTest002() local
[all …]
/ohos5.0/foundation/multimedia/image_framework/interfaces/innerkits/include/
H A Dimage_format_convert.h52 const PixelFormat &srcFormat, PixelFormat destFormat);
57 …t YUVConvertImageFormatOption(std::shared_ptr<PixelMap> &srcPiexlMap, const PixelFormat &srcFormat,
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/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dimage_format_convert.cpp302 static bool IsYUVConvert(PixelFormat srcFormat) in IsYUVConvert() argument
304 bool ret = srcFormat == PixelFormat::NV21 || srcFormat == PixelFormat::NV12 || in IsYUVConvert()
305 srcFormat == PixelFormat::YCBCR_P010 || srcFormat == PixelFormat::YCRCB_P010; in IsYUVConvert()
319 PixelFormat srcFormat = srcPiexlMap->GetPixelFormat(); in ConvertImageFormat() local
320 if (IsYUVConvert(srcFormat)) { 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()
588 ConvertFunction cvtFunc = GetConvertFuncByFormat(srcFormat, destFormat); in RGBConvertImageFormatOptionUnique()
658 if ((srcFormat == PixelFormat::NV21 || srcFormat == PixelFormat::YCBCR_P010 || in YUVConvertImageFormatOption()
[all …]
H A Dimage_format_convert_utils.cpp298 srcParam.format = srcFormat; in YuvP010ToRGB10()
404 srcParam.format = srcFormat; in RGBToYuvP010()
436 srcParam.format = srcFormat; in RGB10ToYuv()
531 srcParam.format = srcFormat; in RGB10ToYuvP010()
595 srcParam.format = srcFormat; in YUVToRGB10()
648 srcParam.format = srcFormat; in YuvToYuvP010()
706 srcParam.format = srcFormat; in YuvP010ToYuv()
814 srcParam.format = srcFormat; in YuvP010ToRGB()
1138 srcParam.format = srcFormat; in YuvToYuv()
1163 srcParam.format = srcFormat; in YuvToRGB()
[all …]
H A Dimage_format_convert_ext_utils.cpp281 srcParam.format = srcFormat;
341 srcParam.format = srcFormat; in YuvToRGB()
424 srcParam.format = srcFormat; in RGBToI420ToI010ToP010()
544 srcParam.format = srcFormat; in RGB10ToRGBToI420ToYuv()
592 srcParam.format = srcFormat;
695 srcParam.format = srcFormat;
829 srcParam.format = srcFormat;
924 srcParam.format = srcFormat;
998 srcParam.format = srcFormat;
1222 srcParam.format = srcFormat; in RGBToI420ToYuv()
[all …]
H A Dpixel_convert.cpp958 static string MakeKey(uint32_t srcFormat, uint32_t dstFormat) in MakeKey() argument
960 return to_string(srcFormat) + ("_") + to_string(dstFormat); in MakeKey()
1584 uint32_t srcFormat = static_cast<uint32_t>(srcInfo.pixelFormat); in Create() local
1586 ProcFuncType funcPtr = GetProcFuncType(srcFormat, dstFormat); in Create()
1588 …IMAGE_LOGE("not found convert function. pixelFormat %{public}u -> %{public}u", srcFormat, dstForma… in Create()
/ohos5.0/foundation/graphic/surface_lite/frameworks/
H A Dbuffer_manager.h92 bool ConvertFormat(PixelFormat& destFormat, uint32_t srcFormat) const;
H A Dbuffer_manager.cpp61 bool BufferManager::ConvertFormat(PixelFormat& destFormat, uint32_t srcFormat) const in ConvertFormat()
63 switch (srcFormat) { in ConvertFormat()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_builder.cpp624 const auto srcFormat = GetFormatSpec(srcData.format); in Fill() local
625 if (srcFormat.format == BASE_FORMAT_UNDEFINED) { in Fill()
629 const auto srcElementSize = srcFormat.componentCount * srcFormat.componentByteSize; in Fill()
650 } else if (!srcFormat.toIntermediate || !dstFormat.fromIntermediate) { in Fill()
651 CORE_LOG_E("missing conversion from %u to %u", srcFormat.format, dstFormat.format); in Fill()
850 const auto components = Math::min(srcFormat.componentCount, dstFormat.componentCount); in Fill()
854 srcFormat.toIntermediate(srcPtr + i * srcFormat.componentByteSize)); in Fill()
856 auto intermediate = srcFormat.toIntermediate(srcPtr); in Fill()