/frameworks/native/headers/media_plugin/media/hardware/ |
D | VideoAPI.h | 113 struct __attribute__ ((__packed__, aligned(alignof(uint32_t)))) ColorAspects { struct 185 static_assert(sizeof(ColorAspects) == 16, "wrong struct size"); argument 266 inline static const char *asString(ColorAspects::Range i, const char *def = "??") { 268 case ColorAspects::RangeUnspecified: return "Unspecified"; 269 case ColorAspects::RangeFull: return "Full"; 270 case ColorAspects::RangeLimited: return "Limited"; 271 case ColorAspects::RangeOther: return "Other"; 276 inline static const char *asString(ColorAspects::Primaries i, const char *def = "??") { 278 case ColorAspects::PrimariesUnspecified: return "Unspecified"; 279 case ColorAspects::PrimariesBT709_5: return "BT709_5"; [all …]
|
D | HardwareAPI.h | 423 ColorAspects sAspects; // IN/OUT
|
/frameworks/av/media/libstagefright/foundation/ |
D | ColorUtils.cpp | 31 typedef ColorAspects CA; 80 static bool isValid(ColorAspects::Primaries p) { in isValid() 81 return p <= ColorAspects::PrimariesOther; in isValid() 84 static bool isDefined(ColorAspects::Primaries p) { in isDefined() 85 return p <= ColorAspects::PrimariesBT2020; in isDefined() 88 static bool isValid(ColorAspects::MatrixCoeffs c) { in isValid() 89 return c <= ColorAspects::MatrixOther; in isValid() 92 static bool isDefined(ColorAspects::MatrixCoeffs c) { in isDefined() 93 return c <= ColorAspects::MatrixBT2020Constant; in isDefined() 98 ColorAspects::Primaries primaries, ColorAspects::MatrixCoeffs coeffs) { in wrapColorAspectsIntoColorStandard() [all …]
|
D | ColorUtils_fill.cpp | 27 typedef ColorAspects CA;
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | ColorUtils.h | 114 ColorAspects::Primaries primaries, ColorAspects::MatrixCoeffs coeffs); 115 static int32_t wrapColorAspectsIntoColorRange(ColorAspects::Range range); 116 static int32_t wrapColorAspectsIntoColorTransfer(ColorAspects::Transfer transfer); 120 int32_t range, ColorAspects::Range *aspect); 122 int32_t transfer, ColorAspects::Transfer *aspect); 125 ColorAspects::Primaries *primaries, ColorAspects::MatrixCoeffs *coeffs); 128 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects); 130 const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer); 134 const ColorAspects &aspects, 139 ColorAspects &aspects); [all …]
|
/frameworks/av/media/codec2/sfplugin/utils/ |
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 | Codec2Mapper.h | 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*); 73 static bool map(ColorAspects::Primaries, C2Color::primaries_t*); 74 static bool map(C2Color::matrix_t, ColorAspects::MatrixCoeffs*); 75 static bool map(ColorAspects::MatrixCoeffs, C2Color::matrix_t*); 76 static bool map(C2Color::transfer_t, ColorAspects::Transfer*); 77 static bool map(ColorAspects::Transfer, C2Color::transfer_t*);
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/ |
D | SoftVideoDecoderOMXComponent.h | 158 ColorAspects mDefaultColorAspects; 160 ColorAspects mBitstreamColorAspects; 162 ColorAspects mFinalColorAspects; 164 bool colorAspectsDiffer(const ColorAspects &a, const ColorAspects &b); 169 const ColorAspects &otherAspects, const ColorAspects &preferredAspects); 175 void dumpColorAspects(const ColorAspects &colorAspects);
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/ |
D | Conversion.h | 74 using ::android::hardware::media::omx::V1_0::ColorAspects; 365 inline ColorAspects toHardwareColorAspects(::android::ColorAspects const& l) { in toHardwareColorAspects() 366 return ColorAspects{ in toHardwareColorAspects() 367 static_cast<ColorAspects::Range>(l.mRange), in toHardwareColorAspects() 368 static_cast<ColorAspects::Primaries>(l.mPrimaries), in toHardwareColorAspects() 369 static_cast<ColorAspects::Transfer>(l.mTransfer), in toHardwareColorAspects() 370 static_cast<ColorAspects::MatrixCoeffs>(l.mMatrixCoeffs)}; in toHardwareColorAspects() 380 inline ColorAspects toHardwareColorAspects(int32_t l) { in toHardwareColorAspects() 381 return ColorAspects{ in toHardwareColorAspects() 382 static_cast<ColorAspects::Range>((l >> 24) & 0xFF), in toHardwareColorAspects() [all …]
|
D | WGraphicBufferSource.h | 40 using ::android::hardware::media::omx::V1_0::ColorAspects; 81 Return<Status> setColorAspects(const ColorAspects& aspects) override;
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | Conversion.h | 71 using ::android::hardware::media::omx::V1_0::ColorAspects; 507 inline ColorAspects toHardwareColorAspects(::android::ColorAspects const& l) { in toHardwareColorAspects() 508 return ColorAspects{ in toHardwareColorAspects() 509 static_cast<ColorAspects::Range>(l.mRange), in toHardwareColorAspects() 510 static_cast<ColorAspects::Primaries>(l.mPrimaries), in toHardwareColorAspects() 511 static_cast<ColorAspects::Transfer>(l.mTransfer), in toHardwareColorAspects() 512 static_cast<ColorAspects::MatrixCoeffs>(l.mMatrixCoeffs)}; in toHardwareColorAspects() 522 inline ColorAspects toHardwareColorAspects(int32_t l) { in toHardwareColorAspects() 523 return ColorAspects{ in toHardwareColorAspects() 524 static_cast<ColorAspects::Range>((l >> 24) & 0xFF), in toHardwareColorAspects() [all …]
|
D | WGraphicBufferSource.h | 40 using ::android::hardware::media::omx::V1_0::ColorAspects;
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcDec.h | 86 bool colorAspectsDiffer(const ColorAspects &a, const ColorAspects &b); 88 const ColorAspects &otherAspects, const ColorAspects &preferredAspects);
|
D | C2SoftHevcEnc.cpp | 603 ColorAspects sfAspects; in initEncParams() 605 sfAspects.mPrimaries = android::ColorAspects::PrimariesUnspecified; in initEncParams() 608 sfAspects.mRange = android::ColorAspects::RangeUnspecified; in initEncParams() 611 sfAspects.mMatrixCoeffs = android::ColorAspects::MatrixUnspecified; in initEncParams() 614 sfAspects.mTransfer = android::ColorAspects::TransferUnspecified; in initEncParams()
|
/frameworks/av/media/libstagefright/omx/ |
D | SoftVideoDecoderOMXComponent.cpp | 75 memset(&mDefaultColorAspects, 0, sizeof(ColorAspects)); in SoftVideoDecoderOMXComponent() 76 memset(&mBitstreamColorAspects, 0, sizeof(ColorAspects)); in SoftVideoDecoderOMXComponent() 77 memset(&mFinalColorAspects, 0, sizeof(ColorAspects)); in SoftVideoDecoderOMXComponent() 262 void SoftVideoDecoderOMXComponent::dumpColorAspects(const ColorAspects &colorAspects) { in dumpColorAspects() 271 const ColorAspects &a, const ColorAspects &b) { in colorAspectsDiffer() 282 const ColorAspects &otherAspects, const ColorAspects &preferredAspects) { in updateFinalColorAspects() 284 ColorAspects newAspects; in updateFinalColorAspects() 285 newAspects.mRange = preferredAspects.mRange != ColorAspects::RangeUnspecified ? in updateFinalColorAspects() 287 newAspects.mPrimaries = preferredAspects.mPrimaries != ColorAspects::PrimariesUnspecified ? in updateFinalColorAspects() 289 newAspects.mTransfer = preferredAspects.mTransfer != ColorAspects::TransferUnspecified ? in updateFinalColorAspects() [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmElement.cpp | 382 ColorAspects aspects; in VideoTrackEntry() 383 aspects.mPrimaries = ColorAspects::PrimariesUnspecified; in VideoTrackEntry() 384 aspects.mTransfer = ColorAspects::TransferUnspecified; in VideoTrackEntry() 385 aspects.mMatrixCoeffs = ColorAspects::MatrixUnspecified; in VideoTrackEntry() 386 aspects.mRange = ColorAspects::RangeUnspecified; in VideoTrackEntry()
|
/frameworks/av/media/libstagefright/ |
D | Utils.cpp | 99 ColorAspects colorAspects; in convertMetaDataToMessageColorAspects() 101 colorAspects.mRange = (ColorAspects::Range)range; in convertMetaDataToMessageColorAspects() 102 colorAspects.mPrimaries = (ColorAspects::Primaries)primaries; in convertMetaDataToMessageColorAspects() 103 colorAspects.mTransfer = (ColorAspects::Transfer)transferFunction; in convertMetaDataToMessageColorAspects() 104 colorAspects.mMatrixCoeffs = (ColorAspects::MatrixCoeffs)colorMatrix; in convertMetaDataToMessageColorAspects() 1340 ColorAspects aspects; in convertMetaDataToMessage() 1344 if (aspects.mPrimaries == ColorAspects::PrimariesUnspecified) { in convertMetaDataToMessage() 1348 aspects.mPrimaries = static_cast<ColorAspects::Primaries>(primaries); in convertMetaDataToMessage() 1351 if (aspects.mTransfer == ColorAspects::TransferUnspecified) { in convertMetaDataToMessage() 1355 aspects.mTransfer = static_cast<ColorAspects::Transfer>(transferFunction); in convertMetaDataToMessage() [all …]
|
/frameworks/av/media/libstagefright/omx/1.0/ |
D | WGraphicBufferSource.cpp | 234 const ColorAspects& aspects) { in setColorAspects()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcEnc.cpp | 1094 ColorAspects sfAspects; in setVuiParams() 1096 sfAspects.mPrimaries = android::ColorAspects::PrimariesUnspecified; in setVuiParams() 1099 sfAspects.mRange = android::ColorAspects::RangeUnspecified; in setVuiParams() 1102 sfAspects.mMatrixCoeffs = android::ColorAspects::MatrixUnspecified; in setVuiParams() 1105 sfAspects.mTransfer = android::ColorAspects::TransferUnspecified; in setVuiParams()
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecConfig.cpp | 1406 ColorAspects aspects = { in getFormatForDomain() 1407 ColorAspects::RangeUnspecified, ColorAspects::PrimariesUnspecified, in getFormatForDomain() 1408 ColorAspects::TransferUnspecified, ColorAspects::MatrixUnspecified in getFormatForDomain() 1411 ColorAspects origAspects = aspects; in getFormatForDomain()
|
/frameworks/av/media/libstagefright/codecs/avcdec/ |
D | SoftAVCDec.cpp | 370 ColorAspects colorAspects; in getVUIParams()
|
/frameworks/av/media/libstagefright/codecs/hevcdec/ |
D | SoftHEVC.cpp | 207 ColorAspects colorAspects; in getVUIParams()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | ACodec.h | 444 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
|
/frameworks/av/media/libstagefright/codecs/mpeg2dec/ |
D | SoftMPEG2.cpp | 493 ColorAspects colorAspects; in getSeqInfo()
|
/frameworks/av/media/libstagefright/bqhelper/ |
D | GraphicBufferSource.cpp | 1396 ColorAspects colorAspects = ColorUtils::unpackToColorAspects(aspectsPacked); in setColorAspects()
|