/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2Mapper.h | 59 static bool map(C2Color::range_t, int32_t*); 60 static bool map(int32_t, C2Color::range_t*); 61 static bool map(C2Color::primaries_t, C2Color::matrix_t, int32_t*); 62 static bool map(int32_t, C2Color::primaries_t*, C2Color::matrix_t*); 63 static bool map(C2Color::transfer_t, int32_t*); 64 static bool map(int32_t, C2Color::transfer_t*); 67 C2Color::range_t, C2Color::primaries_t, C2Color::matrix_t, C2Color::transfer_t, 70 static bool map(C2Color::range_t, ColorAspects::Range*); 71 static bool map(ColorAspects::Range, C2Color::range_t*); 72 static bool map(C2Color::primaries_t, ColorAspects::Primaries*); [all …]
|
D | Codec2Mapper.cpp | 100 ALookup<C2Color::matrix_t, ColorAspects::MatrixCoeffs> sColorMatricesSf = { 101 { C2Color::MATRIX_UNSPECIFIED, ColorAspects::MatrixUnspecified }, 102 { C2Color::MATRIX_BT709, ColorAspects::MatrixBT709_5 }, 103 { C2Color::MATRIX_FCC47_73_682, ColorAspects::MatrixBT470_6M }, 104 { C2Color::MATRIX_BT601, ColorAspects::MatrixBT601_6 }, 105 { C2Color::MATRIX_240M, ColorAspects::MatrixSMPTE240M }, 106 { C2Color::MATRIX_BT2020, ColorAspects::MatrixBT2020 }, 107 { C2Color::MATRIX_BT2020_CONSTANT, ColorAspects::MatrixBT2020Constant }, 108 { C2Color::MATRIX_OTHER, ColorAspects::MatrixOther }, 111 ALookup<C2Color::primaries_t, ColorAspects::Primaries> sColorPrimariesSf = { [all …]
|
D | Codec2BufferUtils.h | 43 const C2GraphicView &src, C2Color::matrix_t colorMatrix = C2Color::MATRIX_BT601, 44 C2Color::range_t colorRange = C2Color::RANGE_LIMITED);
|
D | Codec2BufferUtils.cpp | 524 const C2GraphicView &src, C2Color::matrix_t colorMatrix, C2Color::range_t colorRange) { in ConvertRGBToPlanarYUV() 543 if (colorRange != C2Color::RANGE_FULL && colorRange != C2Color::RANGE_LIMITED) { in ConvertRGBToPlanarYUV() 544 colorRange = C2Color::RANGE_LIMITED; in ConvertRGBToPlanarYUV() 547 (colorMatrix == C2Color::MATRIX_BT709) ? in ConvertRGBToPlanarYUV() 549 uint8_t zeroLvl = colorRange == C2Color::RANGE_FULL ? 0 : 16; in ConvertRGBToPlanarYUV() 550 uint8_t maxLvlLuma = colorRange == C2Color::RANGE_FULL ? 255 : 235; in ConvertRGBToPlanarYUV() 551 uint8_t maxLvlChroma = colorRange == C2Color::RANGE_FULL ? 255 : 240; in ConvertRGBToPlanarYUV()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.h | 352 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 353 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 356 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 358 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 360 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 362 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 370 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 371 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 374 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 376 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() [all …]
|
D | C2SoftVpxDec.cpp | 179 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 185 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 196 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 197 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 200 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 202 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 204 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 206 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 254 if (me.v.range > C2Color::RANGE_OTHER) { in DefaultColorAspectsSetter() 255 me.set().range = C2Color::RANGE_OTHER; in DefaultColorAspectsSetter() [all …]
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcDec.cpp | 131 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 137 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 148 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 149 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 152 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 154 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 156 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 158 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 166 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 167 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() [all …]
|
D | C2SoftAvcEnc.cpp | 221 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 222 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 225 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 227 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 229 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 231 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 239 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 240 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 243 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 245 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() [all …]
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcDec.cpp | 121 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 126 C2Color::YUV_420); in IntfImpl() 137 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 138 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 141 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 143 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 145 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 147 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 155 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 156 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() [all …]
|
D | C2SoftHevcEnc.cpp | 216 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 217 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 220 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 222 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 224 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 226 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 234 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 235 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 238 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 240 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() [all …]
|
/frameworks/av/media/codec2/components/mpeg2/ |
D | C2SoftMpeg2Dec.cpp | 113 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 119 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 130 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 131 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 134 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 136 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 138 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 140 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 148 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 149 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() [all …]
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 128 C2Color::YUV_420); in IntfImpl() 133 C2Color::YUV_420); in IntfImpl() 143 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 144 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 147 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 149 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 151 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 153 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 203 if (me.v.range > C2Color::RANGE_OTHER) { in DefaultColorAspectsSetter() 204 me.set().range = C2Color::RANGE_OTHER; in DefaultColorAspectsSetter() [all …]
|
/frameworks/av/media/codec2/components/gav1/ |
D | C2SoftGav1Dec.cpp | 127 C2Color::YUV_420); in IntfImpl() 132 C2Color::YUV_420); in IntfImpl() 142 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 143 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 146 .inRange(C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 148 .inRange(C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 149 C2Color::PRIMARIES_OTHER), in IntfImpl() 151 .inRange(C2Color::TRANSFER_UNSPECIFIED, in IntfImpl() 152 C2Color::TRANSFER_OTHER), in IntfImpl() 154 .inRange(C2Color::MATRIX_UNSPECIFIED, in IntfImpl() [all …]
|
/frameworks/av/media/codec2/core/include/ |
D | C2Config.h | 1383 struct C2Color { struct 1393 C2ENUM(C2Color::subsampling_t, uint32_t, argument 1425 : bitDepth(8), subsampling(C2Color::YUV_420) { } in C2ColorInfoStruct() 1428 C2Color::subsampling_t subsampling; 1432 size_t /* flexCount */, uint32_t bitDepth_, C2Color::subsampling_t subsampling_) in C2ColorInfoStruct() 1436 size_t flexCount, uint32_t bitDepth_, C2Color::subsampling_t subsampling_, in C2ColorInfoStruct() 1466 C2ENUM(C2Color::range_t, uint32_t, 1476 C2ENUM(C2Color::primaries_t, uint32_t, 1493 C2ENUM(C2Color::transfer_t, uint32_t, 1513 C2ENUM(C2Color::matrix_t, uint32_t, [all …]
|
/frameworks/av/media/codec2/hidl/plugin/samples/ |
D | SampleFilterPlugin.cpp | 115 return info && info.transfer == C2Color::TRANSFER_170M; in IsFilteringEnabled() 260 C2Color::TRANSFER_UNSPECIFIED, in Helper() 261 C2Color::TRANSFER_170M, in Helper() 313 if (request.v.transfer == C2Color::TRANSFER_170M) { in OutputColorAspectsSetter() 314 me.set().transfer = C2Color::TRANSFER_170M; in OutputColorAspectsSetter() 324 if (me.v.range != C2Color::RANGE_UNSPECIFIED) { in ColorAspectsRequestSetter() 325 me.set().range = C2Color::RANGE_UNSPECIFIED; in ColorAspectsRequestSetter() 327 if (me.v.primaries != C2Color::PRIMARIES_UNSPECIFIED) { in ColorAspectsRequestSetter() 328 me.set().primaries = C2Color::PRIMARIES_UNSPECIFIED; in ColorAspectsRequestSetter() 330 if (me.v.transfer != C2Color::TRANSFER_170M) { in ColorAspectsRequestSetter() [all …]
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecConfig.cpp | 415 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() 418 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 429 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() 432 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 443 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() 446 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 455 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 461 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() 464 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 474 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() [all …]
|
D | CCodec.cpp | 1029 || desc.subsampling != C2Color::YUV_420 in configure() 1033 || desc.layout == C2Color::UNKNOWN_LAYOUT) { in configure() 1039 if (desc.layout == C2Color::PLANAR_PACKED && !flexPlanarPixelFormat) { in configure() 1042 if (desc.layout == C2Color::SEMIPLANAR_PACKED && !flexSemiPlanarPixelFormat) { in configure()
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Dec.cpp | 150 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 156 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 148 || desc.subsampling != C2Color::YUV_420 in TEST() 152 || desc.layout == C2Color::UNKNOWN_LAYOUT) { in TEST()
|