/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | image_format_convert_test.cpp | 161 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 D | image_format_convert_fail_test.cpp | 65 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 D | image_yuv_convert_fuzzer.cpp | 83 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 D | image_format_convert.h | 52 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 D | image_format_convert.cpp | 302 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 D | image_format_convert_utils.cpp | 298 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 D | image_format_convert_ext_utils.cpp | 281 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 D | pixel_convert.cpp | 958 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 D | buffer_manager.h | 92 bool ConvertFormat(PixelFormat& destFormat, uint32_t srcFormat) const;
|
H A D | buffer_manager.cpp | 61 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 D | mesh_builder.cpp | 624 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()
|