/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | image_format_convert.cpp | 226 {PixelFormat::NV12, PixelFormat::RGBA_1010102}, 227 {PixelFormat::NV21, PixelFormat::RGBA_1010102}, 228 {PixelFormat::RGB_565, PixelFormat::YCBCR_P010}, 229 {PixelFormat::RGBA_8888, PixelFormat::YCBCR_P010}, 230 {PixelFormat::BGRA_8888, PixelFormat::YCBCR_P010}, 231 {PixelFormat::RGB_888, PixelFormat::YCBCR_P010}, 232 {PixelFormat::RGBA_F16, PixelFormat::YCBCR_P010}, 233 {PixelFormat::RGB_565, PixelFormat::YCRCB_P010}, 234 {PixelFormat::RGBA_8888, PixelFormat::YCRCB_P010}, 236 {PixelFormat::RGB_888, PixelFormat::YCRCB_P010}, [all …]
|
H A D | image_format_convert_utils.cpp | 1209 return YuvToRGB(srcBuffer, yDInfo, PixelFormat::NV12, destInfo, PixelFormat::RGB_565); 1216 return YuvToRGB(srcBuffer, yDInfo, PixelFormat::NV21, destInfo, PixelFormat::RGB_565); 1223 return YuvToRGB(srcBuffer, yDInfo, PixelFormat::NV21, destInfo, PixelFormat::RGB_888); 1230 return YuvToRGB(srcBuffer, yDInfo, PixelFormat::NV12, destInfo, PixelFormat::RGB_888); 1265 return YuvToRGB(srcBuffer, yDInfo, PixelFormat::NV21, destInfo, PixelFormat::RGBA_F16); 1272 return YuvToRGB(srcBuffer, yDInfo, PixelFormat::NV12, destInfo, PixelFormat::RGBA_F16); 1279 return YuvToYuv(srcBuffer, yDInfo, PixelFormat::NV12, destInfo, PixelFormat::NV21); 1286 return YuvToYuv(srcBuffer, yDInfo, PixelFormat::NV21, destInfo, PixelFormat::NV12); 1293 return RGBToYuv(srcBuffer, rgbInfo, PixelFormat::RGB_888, destInfo, PixelFormat::NV21); 1300 return RGBToYuv(srcBuffer, rgbInfo, PixelFormat::RGB_888, destInfo, PixelFormat::NV12); [all …]
|
H A D | image_format_convert_ext_utils.cpp | 82 case PixelFormat::RGB_888: in RGBToI420() 86 case PixelFormat::RGB_565: in RGBToI420() 108 case PixelFormat::NV12: in I420ToYuv() 113 case PixelFormat::NV21: in I420ToYuv() 147 case PixelFormat::NV12: in YuvToI420() 152 case PixelFormat::NV21: in YuvToI420() 471 case PixelFormat::NV12: in RGB10ToI420ToYuv() 480 case PixelFormat::NV21: in RGB10ToI420ToYuv() 1343 return YuvToRGB(srcBuffer, yDInfo, PixelFormat::NV21, destInfo, PixelFormat::RGB_888); 1350 return YuvToRGB(srcBuffer, yDInfo, PixelFormat::NV12, destInfo, PixelFormat::RGB_888); [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | image_format_convert_test.cpp | 576 PixelFormat tempFormat = PixelFormat::NV12; 578 PixelFormat destFormat = PixelFormat::NV21; 788 PixelFormat srcFormat = PixelFormat::NV21; 799 PixelFormat srcFormat = PixelFormat::NV21; 810 PixelFormat srcFormat = PixelFormat::NV21; 821 PixelFormat srcFormat = PixelFormat::NV21; 832 PixelFormat srcFormat = PixelFormat::NV21; 843 PixelFormat srcFormat = PixelFormat::NV21; 854 PixelFormat srcFormat = PixelFormat::NV21; 865 PixelFormat srcFormat = PixelFormat::NV21; [all …]
|
H A D | image_format_convert_fail_test.cpp | 65 PixelFormat srcFormat = PixelFormat::RGB_565; 66 PixelFormat destFormat = PixelFormat::NV21; 97 PixelFormat srcFormat = PixelFormat::NV21; 140 PixelFormat destFormat = PixelFormat::NV21; 159 PixelFormat srcFormat = PixelFormat::NV21; 179 PixelFormat srcFormat = PixelFormat::NV21; 202 PixelFormat destFormat = PixelFormat::NV21; 266 PixelFormat srcFormat = PixelFormat::NV12; 285 PixelFormat destFormat = PixelFormat::NV12; 302 PixelFormat srcFormat = PixelFormat::NV12; [all …]
|
H A D | pixel_convert_test.cpp | 53 srcImageInfo.pixelFormat = PixelFormat::ARGB_8888; 57 dstImageInfo.pixelFormat = PixelFormat::BGRA_8888; 74 srcImageInfo.pixelFormat = PixelFormat::UNKNOWN; 78 dstImageInfo.pixelFormat = PixelFormat::BGRA_8888; 95 srcImageInfo.pixelFormat = PixelFormat::ARGB_8888; 99 dstImageInfo.pixelFormat = PixelFormat::UNKNOWN; 116 srcImageInfo.pixelFormat = PixelFormat::RGB_565; 140 srcImageInfo.pixelFormat = PixelFormat::RGB_565; 164 srcImageInfo.pixelFormat = PixelFormat::RGB_565; 192 dstImageInfo.pixelFormat = PixelFormat::UNKNOWN; [all …]
|
H A D | color_converter_test.cpp | 48 srcImageInfo.pixelFormat = PixelFormat::ARGB_8888; 52 dstImageInfo.pixelFormat = PixelFormat::BGRA_8888; 74 srcImageInfo.pixelFormat = PixelFormat::RGB_565; 78 dstImageInfo.pixelFormat = PixelFormat::ARGB_8888; 111 srcImageInfo.pixelFormat = PixelFormat::RGB_565; 115 dstImageInfo.pixelFormat = PixelFormat::RGBA_8888; 147 srcImageInfo.pixelFormat = PixelFormat::RGB_565; 151 dstImageInfo.pixelFormat = PixelFormat::BGRA_8888; 422 dstImageInfo.pixelFormat = PixelFormat::RGB_565; 461 dstImageInfo.pixelFormat = PixelFormat::RGB_565; [all …]
|
H A D | jpg_yuv_test.cpp | 117 PixelFormat outfmt[] = { PixelFormat::NV12, PixelFormat::NV21}; in TestDecodeToSize() 1311 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; 1331 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; 1346 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; 1361 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; 1400 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; 1419 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; 1492 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; 1535 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; 1555 PixelFormat outfmt[] = {PixelFormat::NV12, PixelFormat::NV21}; [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imageyuvconvert_fuzzer/src/ |
H A D | image_yuv_convert_fuzzer.cpp | 199 PixelFormat destFormat = PixelFormat::NV12; in RGB565ToNV12FuzzTest001() 210 PixelFormat destFormat = PixelFormat::NV12; in RGB565ToNV12FuzzTest002() 221 PixelFormat destFormat = PixelFormat::NV21; in RGB565ToNV21FuzzTest001() 232 PixelFormat destFormat = PixelFormat::NV21; in RGB565ToNV21FuzzTest002() 243 PixelFormat destFormat = PixelFormat::NV21; in BGRAToNV21FuzzTest001() 254 PixelFormat destFormat = PixelFormat::NV21; in BGRAToNV21FuzzTest002() 300 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToRGBFuzzTest001() 312 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToRGBFuzzTest002() 324 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToRGBAFuzzTest001() 336 PixelFormat srcFormat = PixelFormat::NV21; in NV21ToRGBAFuzzTest002() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/ |
H A D | image_converter.cpp | 32 case Media::PixelFormat::ALPHA_8: in PixelFormatToSkColorType() 34 case Media::PixelFormat::RGB_565: in PixelFormatToSkColorType() 35 case Media::PixelFormat::RGB_888: in PixelFormatToSkColorType() 36 case Media::PixelFormat::RGBA_F16: in PixelFormatToSkColorType() 37 case Media::PixelFormat::NV21: in PixelFormatToSkColorType() 38 case Media::PixelFormat::NV12: in PixelFormatToSkColorType() 39 case Media::PixelFormat::CMYK: in PixelFormatToSkColorType() 40 case Media::PixelFormat::UNKNOWN: in PixelFormatToSkColorType() 96 case Media::PixelFormat::NV21: 97 case Media::PixelFormat::NV12: [all …]
|
/ohos5.0/foundation/multimedia/image_framework/interfaces/innerkits/include/ |
H A D | image_format_convert.h | 40 PixelFormat pixelFormat = PixelFormat::UNKNOWN; 48 …static uint32_t ConvertImageFormat(std::shared_ptr<PixelMap> &srcPiexlMap, PixelFormat destFormat); 52 const PixelFormat &srcFormat, PixelFormat destFormat); 57 …t YUVConvertImageFormatOption(std::shared_ptr<PixelMap> &srcPiexlMap, const PixelFormat &srcFormat, 58 PixelFormat destFormat); 59 static size_t GetBufferSizeByFormat(PixelFormat format, const Size &size); 60 static ConvertFunction GetConvertFuncByFormat(PixelFormat srcFormat, PixelFormat destFormat); 61 …static YUVConvertFunction YUVGetConvertFuncByFormat(PixelFormat srcFormat, PixelFormat destFormat); 64 static bool IsSupport(PixelFormat format); 65 static std::unique_ptr<AbsMemory> CreateMemory(PixelFormat pixelFormat, [all …]
|
H A D | image_type.h | 123 enum class PixelFormat : int32_t { enum 212 PixelFormat pixelFormat = PixelFormat::UNKNOWN; 236 PixelFormat srcPixelFormat = PixelFormat::UNKNOWN; 238 PixelFormat dstPixelFormat = PixelFormat::UNKNOWN; 258 PixelFormat format = PixelFormat::UNKNOWN; 273 PixelFormat format = PixelFormat::UNKNOWN; 284 PixelFormat format = PixelFormat::UNKNOWN; 316 PixelFormat desiredPixelFormat = PixelFormat::UNKNOWN; 317 PixelFormat photoDesiredPixelFormat = PixelFormat::UNKNOWN; 372 PixelFormat pixelFormat = PixelFormat::UNKNOWN; [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/pixelconverter/src/ |
H A D | pixel_convert_adapter.cpp | 50 {PixelFormat::UNKNOWN, AV_PIX_FMT_NONE}, 51 {PixelFormat::NV12, AV_PIX_FMT_NV12}, 52 {PixelFormat::NV21, AV_PIX_FMT_NV21}, 53 {PixelFormat::RGB_565, AV_PIX_FMT_RGB565}, 54 {PixelFormat::RGBA_8888, AV_PIX_FMT_RGBA}, 55 {PixelFormat::BGRA_8888, AV_PIX_FMT_BGRA}, 56 {PixelFormat::ARGB_8888, AV_PIX_FMT_ARGB}, 57 {PixelFormat::RGBA_F16, AV_PIX_FMT_RGBA64}, 58 {PixelFormat::RGB_888, AV_PIX_FMT_RGB24}, 59 {PixelFormat::YCRCB_P010, AV_PIX_FMT_P010LE}, [all …]
|
/ohos5.0/foundation/multimedia/player_framework/test/fuzztest/avmetadata_fuzztest/avmetadatafetchframeattime_fuzzer/ |
H A D | avmetadatafetchframeattime_fuzzer.cpp | 66 PixelFormat::UNKNOWN, in FuzzAVMetadataFetchFrameAtTime() 67 PixelFormat::ARGB_8888, in FuzzAVMetadataFetchFrameAtTime() 68 PixelFormat::RGB_565, in FuzzAVMetadataFetchFrameAtTime() 69 PixelFormat::RGBA_8888, in FuzzAVMetadataFetchFrameAtTime() 70 PixelFormat::BGRA_8888, in FuzzAVMetadataFetchFrameAtTime() 71 PixelFormat::RGB_888, in FuzzAVMetadataFetchFrameAtTime() 72 PixelFormat::ALPHA_8, in FuzzAVMetadataFetchFrameAtTime() 73 PixelFormat::RGBA_F16, in FuzzAVMetadataFetchFrameAtTime() 74 PixelFormat::NV21, in FuzzAVMetadataFetchFrameAtTime() 75 PixelFormat::NV12, in FuzzAVMetadataFetchFrameAtTime() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | pixel_map_ohos.cpp | 29 PixelFormat PixelMapOhos::PixelFormatConverter(Media::PixelFormat pixelFormat) in PixelFormatConverter() 32 case Media::PixelFormat::RGB_565: in PixelFormatConverter() 33 return PixelFormat::RGB_565; in PixelFormatConverter() 41 return PixelFormat::ALPHA_8; in PixelFormatConverter() 45 return PixelFormat::UNKNOWN; in PixelFormatConverter() 50 case Media::PixelFormat::NV21: in PixelFormatConverter() 51 return PixelFormat::NV21; in PixelFormatConverter() 52 case Media::PixelFormat::NV12: in PixelFormatConverter() 53 return PixelFormat::NV12; in PixelFormatConverter() 54 case Media::PixelFormat::CMYK: in PixelFormatConverter() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
H A D | pixel_map_test.cpp | 1276 PixelFormat pixelFormat = PixelFormat::UNKNOWN; 1284 PixelFormat pixelFormat2 = PixelFormat::RGB_888; 1307 PixelFormat pixelFormat = PixelFormat::UNKNOWN; 1315 PixelFormat pixelFormat2 = PixelFormat::RGB_888; 1905 PixelFormat format = PixelFormat::RGBA_8888; 1914 format = PixelFormat::ALPHA_8; 1920 format = PixelFormat::RGB_565; 1923 format =PixelFormat::RGB_888; 1926 format =PixelFormat::NV12; 1929 format = PixelFormat::CMYK; [all …]
|
H A D | image_pixel_map_switch_test.cpp | 55 opts.pixelFormat = PixelFormat::ARGB_8888; 83 opts.pixelFormat = PixelFormat::ARGB_8888; 111 opts.pixelFormat = PixelFormat::ARGB_8888; 184 info.pixelFormat = PixelFormat::RGB_888; 217 info.pixelFormat = PixelFormat::RGB_888; 242 info.pixelFormat = PixelFormat::UNKNOWN; 267 info.pixelFormat = PixelFormat::RGB_888; 293 info.pixelFormat = PixelFormat::RGB_888; 319 info.pixelFormat = PixelFormat::RGB_888; 814 info.pixelFormat = PixelFormat::NV21; [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | image_utils.cpp | 159 case PixelFormat::CMYK: in GetPixelBytes() 162 case PixelFormat::ALPHA_8: in GetPixelBytes() 165 case PixelFormat::RGB_888: in GetPixelBytes() 175 case PixelFormat::NV21: in GetPixelBytes() 176 case PixelFormat::NV12: in GetPixelBytes() 314 case PixelFormat::NV21: in GetValidAlphaTypeByFormat() 315 case PixelFormat::NV12: in GetValidAlphaTypeByFormat() 323 case PixelFormat::CMYK: in GetValidAlphaTypeByFormat() 378 …return format == PixelFormat::ASTC_4x4 || format == PixelFormat::ASTC_6x6 || format == PixelFormat… in IsAstc() 473 if (pixelFormat == PixelFormat::NV12 || pixelFormat == PixelFormat::NV21 || in DumpPixelMap() [all …]
|
H A D | image_type_converter.cpp | 23 PixelFormat pixelFormat; 36 {SkColorType::kUnknown_SkColorType, PixelFormat::UNKNOWN, 38 {SkColorType::kRGBA_8888_SkColorType, PixelFormat::ARGB_8888, 40 {SkColorType::kRGBA_1010102_SkColorType, PixelFormat::RGBA_1010102, 42 {SkColorType::kAlpha_8_SkColorType, PixelFormat::ALPHA_8, 44 {SkColorType::kRGB_565_SkColorType, PixelFormat::RGB_565, 46 {SkColorType::kRGBA_F16_SkColorType, PixelFormat::RGBA_F16, 48 {SkColorType::kRGBA_8888_SkColorType, PixelFormat::RGBA_8888, 50 {SkColorType::kBGRA_8888_SkColorType, PixelFormat::BGRA_8888, 52 {SkColorType::kRGB_888x_SkColorType, PixelFormat::RGB_888, [all …]
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libwebpplugin/src/ |
H A D | webp_encoder.cpp | 153 PixelFormat pixelFormat = GetPixelFormat(pixelMap); in CheckEncodeFormat() 157 case PixelFormat::RGBA_8888: { in CheckEncodeFormat() 161 case PixelFormat::BGRA_8888: { in CheckEncodeFormat() 165 case PixelFormat::RGBA_F16: { in CheckEncodeFormat() 169 case PixelFormat::ARGB_8888: { in CheckEncodeFormat() 173 case PixelFormat::RGB_888: { in CheckEncodeFormat() 177 case PixelFormat::RGB_565: { in CheckEncodeFormat() 182 case PixelFormat::ALPHA_8: { in CheckEncodeFormat() 197 PixelFormat pixelFormat = GetPixelFormat(pixelMap); in DoTransform() 226 } else if (pixelFormat == PixelFormat::RGB_888) { in DoTransform() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_pixel_map_util.cpp | 52 case PixelFormat::RGB_565: in PixelFormatToDrawingColorType() 54 case PixelFormat::RGBA_8888: in PixelFormatToDrawingColorType() 56 case PixelFormat::BGRA_8888: in PixelFormatToDrawingColorType() 58 case PixelFormat::ALPHA_8: in PixelFormatToDrawingColorType() 60 case PixelFormat::RGBA_F16: in PixelFormatToDrawingColorType() 64 case PixelFormat::UNKNOWN: in PixelFormatToDrawingColorType() 65 case PixelFormat::ARGB_8888: in PixelFormatToDrawingColorType() 66 case PixelFormat::RGB_888: in PixelFormatToDrawingColorType() 67 case PixelFormat::NV21: in PixelFormatToDrawingColorType() 68 case PixelFormat::NV12: in PixelFormatToDrawingColorType() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/test_case/ |
H A D | test_common.cpp | 93 case OHOS::Media::PixelFormat::RGB_565: in PixelFormatToDrawingColorType() 95 case OHOS::Media::PixelFormat::RGBA_8888: in PixelFormatToDrawingColorType() 97 case OHOS::Media::PixelFormat::BGRA_8888: in PixelFormatToDrawingColorType() 99 case OHOS::Media::PixelFormat::ALPHA_8: in PixelFormatToDrawingColorType() 101 case OHOS::Media::PixelFormat::RGBA_F16: in PixelFormatToDrawingColorType() 103 case OHOS::Media::PixelFormat::UNKNOWN: in PixelFormatToDrawingColorType() 104 case OHOS::Media::PixelFormat::ARGB_8888: in PixelFormatToDrawingColorType() 105 case OHOS::Media::PixelFormat::RGB_888: in PixelFormatToDrawingColorType() 106 case OHOS::Media::PixelFormat::NV21: in PixelFormatToDrawingColorType() 107 case OHOS::Media::PixelFormat::NV12: in PixelFormatToDrawingColorType() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_format_convert_mdk_kits.cpp | 36 static bool IsMatchType(int32_t type, PixelFormat format) in IsMatchType() 40 case PixelFormat::NV21: in IsMatchType() 41 case PixelFormat::NV12:{ in IsMatchType() 50 case PixelFormat::ARGB_8888: in IsMatchType() 51 case PixelFormat::RGB_565: in IsMatchType() 52 case PixelFormat::RGBA_8888: in IsMatchType() 53 case PixelFormat::BGRA_8888: in IsMatchType() 54 case PixelFormat::RGB_888: in IsMatchType() 55 case PixelFormat::RGBA_F16:{ in IsMatchType() 74 PixelFormat srcPixelFormat = args->srcPixelMap->GetPixelFormat(); in ImageConvertExec()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libjpegplugin/src/ |
H A D | jpeg_encoder.cpp | 95 case PixelFormat::RGBA_F16: in GetEncodeFormat() 96 case PixelFormat::RGBA_8888: { in GetEncodeFormat() 101 case PixelFormat::BGRA_8888: { in GetEncodeFormat() 106 case PixelFormat::ARGB_8888: { in GetEncodeFormat() 111 case PixelFormat::ALPHA_8: { in GetEncodeFormat() 116 case PixelFormat::RGB_565: in GetEncodeFormat() 117 case PixelFormat::RGB_888: { in GetEncodeFormat() 122 case PixelFormat::NV12: in GetEncodeFormat() 123 case PixelFormat::NV21: { in GetEncodeFormat() 128 case PixelFormat::CMYK: { in GetEncodeFormat() [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/ |
H A D | picture.cpp | 45 { GRAPHIC_PIXEL_FMT_RGB_888, PixelFormat::RGB_888 }, 127 static bool IsYuvFormat(PixelFormat format) in IsYuvFormat() 129 return format == PixelFormat::NV21 || format == PixelFormat::NV12 || in IsYuvFormat() 130 format == PixelFormat::YCRCB_P010 || format == PixelFormat::YCBCR_P010; in IsYuvFormat() 133 static bool IsAlphaFormat(PixelFormat format) in IsAlphaFormat() 135 return format == PixelFormat::RGBA_8888 || format == PixelFormat::BGRA_8888 || in IsAlphaFormat() 136 format == PixelFormat::RGBA_1010102 || format == PixelFormat::RGBA_F16; in IsAlphaFormat() 143 return PixelFormat::UNKNOWN; in SbFormat2PixelFormat() 310 case PixelFormat::RGBA_8888: in GetHdrAllocFormat() 313 case PixelFormat::NV21: in GetHdrAllocFormat() [all …]
|