/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2Mapper.h | 72 static bool map(C2Color::range_t, int32_t*); 73 static bool map(int32_t, C2Color::range_t*); 74 static bool map(C2Color::primaries_t, C2Color::matrix_t, int32_t*); 75 static bool map(int32_t, C2Color::primaries_t*, C2Color::matrix_t*); 76 static bool map(C2Color::transfer_t, int32_t*); 77 static bool map(int32_t, C2Color::transfer_t*); 80 C2Color::range_t, C2Color::primaries_t, C2Color::matrix_t, C2Color::transfer_t, 83 static bool map(C2Color::range_t, ColorAspects::Range*); 84 static bool map(ColorAspects::Range, C2Color::range_t*); 85 static bool map(C2Color::primaries_t, ColorAspects::Primaries*); [all …]
|
D | Codec2Mapper.cpp | 103 ALookup<C2Color::matrix_t, ColorAspects::MatrixCoeffs> sColorMatricesSf = { 104 { C2Color::MATRIX_UNSPECIFIED, ColorAspects::MatrixUnspecified }, 105 { C2Color::MATRIX_BT709, ColorAspects::MatrixBT709_5 }, 106 { C2Color::MATRIX_FCC47_73_682, ColorAspects::MatrixBT470_6M }, 107 { C2Color::MATRIX_BT601, ColorAspects::MatrixBT601_6 }, 108 { C2Color::MATRIX_240M, ColorAspects::MatrixSMPTE240M }, 109 { C2Color::MATRIX_BT2020, ColorAspects::MatrixBT2020 }, 110 { C2Color::MATRIX_BT2020_CONSTANT, ColorAspects::MatrixBT2020Constant }, 111 { C2Color::MATRIX_OTHER, ColorAspects::MatrixOther }, 114 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 | 594 const C2GraphicView &src, C2Color::matrix_t colorMatrix, C2Color::range_t colorRange) { in ConvertRGBToPlanarYUV() 611 if (colorRange != C2Color::RANGE_FULL && colorRange != C2Color::RANGE_LIMITED) { in ConvertRGBToPlanarYUV() 612 colorRange = C2Color::RANGE_LIMITED; in ConvertRGBToPlanarYUV() 615 (colorMatrix == C2Color::MATRIX_BT709) ? in ConvertRGBToPlanarYUV() 617 uint8_t zeroLvl = colorRange == C2Color::RANGE_FULL ? 0 : 16; in ConvertRGBToPlanarYUV() 618 uint8_t maxLvlLuma = colorRange == C2Color::RANGE_FULL ? 255 : 235; in ConvertRGBToPlanarYUV() 619 uint8_t maxLvlChroma = colorRange == C2Color::RANGE_FULL ? 255 : 240; in ConvertRGBToPlanarYUV()
|
/frameworks/av/media/codec2/components/mpeg2/ |
D | C2SoftMpeg2Dec.cpp | 116 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 122 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 133 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 134 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 137 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 139 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 141 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 143 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 151 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 152 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() [all …]
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcDec.cpp | 134 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 140 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 151 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 152 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 155 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 157 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 159 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 161 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 169 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 170 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() [all …]
|
D | C2SoftAvcEnc.cpp | 232 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 233 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 236 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 238 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 240 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 242 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 250 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 251 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 254 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 256 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() [all …]
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcDec.cpp | 125 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 130 C2Color::YUV_420); in IntfImpl() 141 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 142 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 145 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 147 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 149 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 151 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 159 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 160 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/dav1d/ |
D | C2SoftDav1dDec.cpp | 159 C2StreamColorInfo::output::AllocShared(1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 163 {C2ChromaOffsetStruct::ITU_YUV_420_0()}, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 172 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 173 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 175 .inRange(C2Color::RANGE_UNSPECIFIED, in IntfImpl() 176 C2Color::RANGE_OTHER), in IntfImpl() 178 .inRange(C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 179 C2Color::PRIMARIES_OTHER), in IntfImpl() 181 .inRange(C2Color::TRANSFER_UNSPECIFIED, in IntfImpl() 182 C2Color::TRANSFER_OTHER), in IntfImpl() [all …]
|
D | C2SoftDav1dDec.h | 89 : primaries(C2Color::PRIMARIES_UNSPECIFIED), in VuiColorAspects() 90 transfer(C2Color::TRANSFER_UNSPECIFIED), in VuiColorAspects() 91 coeffs(C2Color::MATRIX_UNSPECIFIED), in VuiColorAspects() 92 fullRange(C2Color::RANGE_UNSPECIFIED) {} in VuiColorAspects()
|
/frameworks/av/media/codec2/components/gav1/ |
D | C2SoftGav1Dec.cpp | 162 C2Color::YUV_420); in IntfImpl() 167 C2Color::YUV_420); in IntfImpl() 177 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 178 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 181 .inRange(C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 183 .inRange(C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 184 C2Color::PRIMARIES_OTHER), in IntfImpl() 186 .inRange(C2Color::TRANSFER_UNSPECIFIED, in IntfImpl() 187 C2Color::TRANSFER_OTHER), in IntfImpl() 189 .inRange(C2Color::MATRIX_UNSPECIFIED, in IntfImpl() [all …]
|
D | C2SoftGav1Dec.h | 82 : primaries(C2Color::PRIMARIES_UNSPECIFIED), in VuiColorAspects() 83 transfer(C2Color::TRANSFER_UNSPECIFIED), in VuiColorAspects() 84 coeffs(C2Color::MATRIX_UNSPECIFIED), in VuiColorAspects() 85 fullRange(C2Color::RANGE_UNSPECIFIED) { } in VuiColorAspects()
|
/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 …]
|
D | C2SoftAomEnc.cpp | 150 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 151 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 154 .inRange(C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 156 .inRange(C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 157 C2Color::PRIMARIES_OTHER), in IntfImpl() 159 .inRange(C2Color::TRANSFER_UNSPECIFIED, in IntfImpl() 160 C2Color::TRANSFER_OTHER), in IntfImpl() 162 .inRange(C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER)}) in IntfImpl() 169 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 170 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() [all …]
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 177 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 178 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 181 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 183 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 185 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 187 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 195 0u, C2Color::RANGE_LIMITED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 196 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 199 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 201 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() [all …]
|
D | C2SoftVpxDec.cpp | 188 1u, 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 194 0u, 8u /* bitDepth */, C2Color::YUV_420); in IntfImpl() 205 0u, C2Color::RANGE_UNSPECIFIED, C2Color::PRIMARIES_UNSPECIFIED, in IntfImpl() 206 C2Color::TRANSFER_UNSPECIFIED, C2Color::MATRIX_UNSPECIFIED)) in IntfImpl() 209 C2Color::RANGE_UNSPECIFIED, C2Color::RANGE_OTHER), in IntfImpl() 211 C2Color::PRIMARIES_UNSPECIFIED, C2Color::PRIMARIES_OTHER), in IntfImpl() 213 C2Color::TRANSFER_UNSPECIFIED, C2Color::TRANSFER_OTHER), in IntfImpl() 215 C2Color::MATRIX_UNSPECIFIED, C2Color::MATRIX_OTHER) in IntfImpl() 276 if (me.v.range > C2Color::RANGE_OTHER) { in DefaultColorAspectsSetter() 277 me.set().range = C2Color::RANGE_OTHER; in DefaultColorAspectsSetter() [all …]
|
/frameworks/av/media/codec2/components/base/ |
D | SimpleC2Component.cpp | 159 if (_aspects.matrix == C2Color::MATRIX_UNSPECIFIED) { in FillMissingColorAspects() 161 if (_aspects.primaries == C2Color::PRIMARIES_UNSPECIFIED) { in FillMissingColorAspects() 164 if (_aspects.transfer == C2Color::TRANSFER_ST2084 in FillMissingColorAspects() 165 || _aspects.transfer == C2Color::TRANSFER_HLG) { in FillMissingColorAspects() 166 _aspects.primaries = C2Color::PRIMARIES_BT2020; in FillMissingColorAspects() 171 _aspects.primaries = C2Color::PRIMARIES_BT2020; in FillMissingColorAspects() 176 _aspects.primaries = C2Color::PRIMARIES_BT601_625; in FillMissingColorAspects() 178 _aspects.primaries = C2Color::PRIMARIES_BT709; in FillMissingColorAspects() 183 case C2Color::PRIMARIES_BT601_525: in FillMissingColorAspects() 184 case C2Color::PRIMARIES_BT601_625: in FillMissingColorAspects() [all …]
|
/frameworks/av/media/codec2/core/include/ |
D | C2Config.h | 1483 struct C2Color { struct 1493 C2ENUM(C2Color::subsampling_t, uint32_t, argument 1525 : bitDepth(8), subsampling(C2Color::YUV_420) { } in C2ColorInfoStruct() 1528 C2Color::subsampling_t subsampling; 1532 size_t /* flexCount */, uint32_t bitDepth_, C2Color::subsampling_t subsampling_) in C2ColorInfoStruct() 1536 size_t flexCount, uint32_t bitDepth_, C2Color::subsampling_t subsampling_, in C2ColorInfoStruct() 1566 C2ENUM(C2Color::range_t, uint32_t, 1576 C2ENUM(C2Color::primaries_t, uint32_t, 1593 C2ENUM(C2Color::transfer_t, uint32_t, 1613 C2ENUM(C2Color::matrix_t, uint32_t, [all …]
|
/frameworks/av/media/codec2/hal/plugin/samples/ |
D | SampleFilterPlugin.cpp | 127 return info && info.transfer == C2Color::TRANSFER_170M; in IsFilteringEnabled() 271 C2Color::TRANSFER_UNSPECIFIED, in Helper() 272 C2Color::TRANSFER_170M, in Helper() 333 if (request.v.transfer == C2Color::TRANSFER_170M) { in OutputColorAspectsSetter() 334 me.set().transfer = C2Color::TRANSFER_170M; in OutputColorAspectsSetter() 344 if (me.v.range != C2Color::RANGE_UNSPECIFIED) { in ColorAspectsRequestSetter() 345 me.set().range = C2Color::RANGE_UNSPECIFIED; in ColorAspectsRequestSetter() 347 if (me.v.primaries != C2Color::PRIMARIES_UNSPECIFIED) { in ColorAspectsRequestSetter() 348 me.set().primaries = C2Color::PRIMARIES_UNSPECIFIED; in ColorAspectsRequestSetter() 350 if (me.v.transfer != C2Color::TRANSFER_170M) { in ColorAspectsRequestSetter() [all …]
|
/frameworks/av/media/codec2/components/base/include/ |
D | SimpleC2Component.h | 73 size_t height, C2Color::matrix_t colorMatrix, 74 C2Color::range_t colorRange);
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecConfig.cpp | 438 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() 441 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 452 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() 455 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 466 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() 469 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 478 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 484 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() 487 .withC2Mappers<C2Color::transfer_t>()); in initializeStandardParams() 497 .withC2Mappers<C2Color::range_t>()); in initializeStandardParams() [all …]
|
D | Codec2InfoBuilder.cpp | 81 if (desc.layout == C2Color::PLANAR_PACKED in findFrameworkColorFormat() 82 || desc.layout == C2Color::SEMIPLANAR_PACKED) { in findFrameworkColorFormat() 87 if (desc.layout == C2Color::SEMIPLANAR_PACKED) { in findFrameworkColorFormat()
|
/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()
|