/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 …]
|
/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 | 99 ALookup<C2Color::matrix_t, ColorAspects::MatrixCoeffs> sColorMatricesSf = { 100 { C2Color::MATRIX_UNSPECIFIED, ColorAspects::MatrixUnspecified }, 101 { C2Color::MATRIX_BT709, ColorAspects::MatrixBT709_5 }, 102 { C2Color::MATRIX_FCC47_73_682, ColorAspects::MatrixBT470_6M }, 103 { C2Color::MATRIX_BT601, ColorAspects::MatrixBT601_6 }, 104 { C2Color::MATRIX_240M, ColorAspects::MatrixSMPTE240M }, 105 { C2Color::MATRIX_BT2020, ColorAspects::MatrixBT2020 }, 106 { C2Color::MATRIX_BT2020_CONSTANT, ColorAspects::MatrixBT2020Constant }, 107 { C2Color::MATRIX_OTHER, ColorAspects::MatrixOther }, 110 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 | 75 using ::android::hardware::media::omx::V1_0::ColorAspects; 366 inline ColorAspects toHardwareColorAspects(::android::ColorAspects const& l) { in toHardwareColorAspects() 367 return ColorAspects{ in toHardwareColorAspects() 368 static_cast<ColorAspects::Range>(l.mRange), in toHardwareColorAspects() 369 static_cast<ColorAspects::Primaries>(l.mPrimaries), in toHardwareColorAspects() 370 static_cast<ColorAspects::Transfer>(l.mTransfer), in toHardwareColorAspects() 371 static_cast<ColorAspects::MatrixCoeffs>(l.mMatrixCoeffs)}; in toHardwareColorAspects() 381 inline ColorAspects toHardwareColorAspects(int32_t l) { in toHardwareColorAspects() 382 return ColorAspects{ in toHardwareColorAspects() 383 static_cast<ColorAspects::Range>((l >> 24) & 0xFF), in toHardwareColorAspects() [all …]
|
D | WGraphicBufferSource.h | 42 using ::android::hardware::media::omx::V1_0::ColorAspects; 85 Return<Status> setColorAspects(const ColorAspects& aspects) override;
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | Conversion.h | 72 using ::android::hardware::media::omx::V1_0::ColorAspects; 508 inline ColorAspects toHardwareColorAspects(::android::ColorAspects const& l) { in toHardwareColorAspects() 509 return ColorAspects{ in toHardwareColorAspects() 510 static_cast<ColorAspects::Range>(l.mRange), in toHardwareColorAspects() 511 static_cast<ColorAspects::Primaries>(l.mPrimaries), in toHardwareColorAspects() 512 static_cast<ColorAspects::Transfer>(l.mTransfer), in toHardwareColorAspects() 513 static_cast<ColorAspects::MatrixCoeffs>(l.mMatrixCoeffs)}; in toHardwareColorAspects() 523 inline ColorAspects toHardwareColorAspects(int32_t l) { in toHardwareColorAspects() 524 return ColorAspects{ in toHardwareColorAspects() 525 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/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 …]
|
D | OMXNodeInstance.cpp | 2148 ColorAspects requestedAspects = ColorUtils::unpackToColorAspects(msg.u.event_data.data2); in handleDataSpaceChanged() 2149 ColorAspects aspects = requestedAspects; // initially requested aspects in handleDataSpaceChanged()
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcDec.h | 87 bool colorAspectsDiffer(const ColorAspects &a, const ColorAspects &b); 89 const ColorAspects &otherAspects, const ColorAspects &preferredAspects);
|
D | C2SoftHevcDec.cpp | 593 ColorAspects sfAspects; in getVuiParams()
|
/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 | 89 ColorAspects colorAspects; in convertMetaDataToMessageColorAspects() 91 colorAspects.mRange = (ColorAspects::Range)range; in convertMetaDataToMessageColorAspects() 92 colorAspects.mPrimaries = (ColorAspects::Primaries)primaries; in convertMetaDataToMessageColorAspects() 93 colorAspects.mTransfer = (ColorAspects::Transfer)transferFunction; in convertMetaDataToMessageColorAspects() 94 colorAspects.mMatrixCoeffs = (ColorAspects::MatrixCoeffs)colorMatrix; in convertMetaDataToMessageColorAspects() 1242 ColorAspects aspects; in convertMetaDataToMessage() 1246 if (aspects.mPrimaries == ColorAspects::PrimariesUnspecified) { in convertMetaDataToMessage() 1250 aspects.mPrimaries = static_cast<ColorAspects::Primaries>(primaries); in convertMetaDataToMessage() 1253 if (aspects.mTransfer == ColorAspects::TransferUnspecified) { in convertMetaDataToMessage() 1257 aspects.mTransfer = static_cast<ColorAspects::Transfer>(transferFunction); in convertMetaDataToMessage() [all …]
|
D | ACodec.cpp | 3684 ColorAspects origAspects = params.sAspects; in setColorAspectsForVideoEncoder() 3723 ColorAspects &aspects = params.sAspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace() 3735 ColorAspects origAspects = aspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace() 5520 void ACodec::onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects) { in onDataSpaceChanged() 5898 ColorAspects aspects = ColorUtils::unpackToColorAspects(data2); in onOMXEvent() 6966 if (colorAspectsBuffer->size() != sizeof(ColorAspects)) { in setupInputSurface() 6972 *(ColorAspects *)colorAspectsBuffer->base()))); in setupInputSurface()
|
/frameworks/av/media/libstagefright/omx/1.0/ |
D | WGraphicBufferSource.cpp | 229 const ColorAspects& aspects) { in setColorAspects()
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecConfig.cpp | 1192 ColorAspects aspects = { in getSdkFormatForDomain() 1193 ColorAspects::RangeUnspecified, ColorAspects::PrimariesUnspecified, in getSdkFormatForDomain() 1194 ColorAspects::TransferUnspecified, ColorAspects::MatrixUnspecified in getSdkFormatForDomain() 1197 ColorAspects origAspects = aspects; in getSdkFormatForDomain()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | ACodec.h | 428 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
|
/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/codecs/mpeg2dec/ |
D | SoftMPEG2.cpp | 493 ColorAspects colorAspects; in getSeqInfo()
|
/frameworks/av/media/libstagefright/bqhelper/ |
D | GraphicBufferSource.cpp | 1369 ColorAspects colorAspects = ColorUtils::unpackToColorAspects(aspectsPacked); in setColorAspects()
|