Home
last modified time | relevance | path

Searched refs:ColorAspects (Results 1 – 23 of 23) sorted by relevance

/frameworks/native/include/media/hardware/
DVideoAPI.h113 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 …]
DHardwareAPI.h421 ColorAspects sAspects; // IN/OUT
/frameworks/av/media/libstagefright/foundation/
DColorUtils.cpp30 typedef ColorAspects CA;
79 static bool isValid(ColorAspects::Primaries p) { in isValid()
80 return p <= ColorAspects::PrimariesOther; in isValid()
83 static bool isDefined(ColorAspects::Primaries p) { in isDefined()
84 return p <= ColorAspects::PrimariesBT2020; in isDefined()
87 static bool isValid(ColorAspects::MatrixCoeffs c) { in isValid()
88 return c <= ColorAspects::MatrixOther; in isValid()
91 static bool isDefined(ColorAspects::MatrixCoeffs c) { in isDefined()
92 return c <= ColorAspects::MatrixBT2020Constant; in isDefined()
97 ColorAspects::Primaries primaries, ColorAspects::MatrixCoeffs coeffs) { in wrapColorAspectsIntoColorStandard()
[all …]
/frameworks/av/media/libstagefright/include/foundation/
DColorUtils.h114 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/libstagefright/include/
DSoftVideoDecoderOMXComponent.h143 ColorAspects mDefaultColorAspects;
145 ColorAspects mBitstreamColorAspects;
147 ColorAspects mFinalColorAspects;
149 bool colorAspectsDiffer(const ColorAspects &a, const ColorAspects &b);
154 const ColorAspects &otherAspects, const ColorAspects &preferredAspects);
160 void dumpColorAspects(const ColorAspects &colorAspects);
DACodec.h438 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
/frameworks/av/include/media/omx/1.0/
DConversion.h71 using ::android::hardware::media::omx::V1_0::ColorAspects;
461 inline ColorAspects toHardwareColorAspects(::android::ColorAspects const& l) { in toHardwareColorAspects()
462 return ColorAspects{ in toHardwareColorAspects()
463 static_cast<ColorAspects::Range>(l.mRange), in toHardwareColorAspects()
464 static_cast<ColorAspects::Primaries>(l.mPrimaries), in toHardwareColorAspects()
465 static_cast<ColorAspects::Transfer>(l.mTransfer), in toHardwareColorAspects()
466 static_cast<ColorAspects::MatrixCoeffs>(l.mMatrixCoeffs)}; in toHardwareColorAspects()
476 inline ColorAspects toHardwareColorAspects(int32_t l) { in toHardwareColorAspects()
477 return ColorAspects{ in toHardwareColorAspects()
478 static_cast<ColorAspects::Range>((l >> 24) & 0xFF), in toHardwareColorAspects()
[all …]
DWGraphicBufferSource.h40 using ::android::hardware::media::omx::V1_0::ColorAspects;
/frameworks/av/media/libstagefright/omx/
DSoftVideoDecoderOMXComponent.cpp74 memset(&mDefaultColorAspects, 0, sizeof(ColorAspects)); in SoftVideoDecoderOMXComponent()
75 memset(&mBitstreamColorAspects, 0, sizeof(ColorAspects)); in SoftVideoDecoderOMXComponent()
76 memset(&mFinalColorAspects, 0, sizeof(ColorAspects)); in SoftVideoDecoderOMXComponent()
252 void SoftVideoDecoderOMXComponent::dumpColorAspects(const ColorAspects &colorAspects) { in dumpColorAspects()
261 const ColorAspects &a, const ColorAspects &b) { in colorAspectsDiffer()
272 const ColorAspects &otherAspects, const ColorAspects &preferredAspects) { in updateFinalColorAspects()
274 ColorAspects newAspects; in updateFinalColorAspects()
275 newAspects.mRange = preferredAspects.mRange != ColorAspects::RangeUnspecified ? in updateFinalColorAspects()
277 newAspects.mPrimaries = preferredAspects.mPrimaries != ColorAspects::PrimariesUnspecified ? in updateFinalColorAspects()
279 newAspects.mTransfer = preferredAspects.mTransfer != ColorAspects::TransferUnspecified ? in updateFinalColorAspects()
[all …]
DGraphicBufferSource.cpp1242 ColorAspects colorAspects = ColorUtils::unpackToColorAspects(aspectsPacked); in setColorAspects()
DOMXNodeInstance.cpp1991 ColorAspects requestedAspects = ColorUtils::unpackToColorAspects(msg.u.event_data.data2); in handleDataSpaceChanged()
1992 ColorAspects aspects = requestedAspects; // initially requested aspects in handleDataSpaceChanged()
/frameworks/av/media/libstagefright/omx/1.0/
DWGraphicBufferSource.h42 using ::android::hardware::media::omx::V1_0::ColorAspects;
85 Return<Status> setColorAspects(const ColorAspects& aspects) override;
DConversion.h72 using ::android::hardware::media::omx::V1_0::ColorAspects;
454 inline ColorAspects toHardwareColorAspects(::android::ColorAspects const& l) { in toHardwareColorAspects()
455 return ColorAspects{ in toHardwareColorAspects()
456 static_cast<ColorAspects::Range>(l.mRange), in toHardwareColorAspects()
457 static_cast<ColorAspects::Primaries>(l.mPrimaries), in toHardwareColorAspects()
458 static_cast<ColorAspects::Transfer>(l.mTransfer), in toHardwareColorAspects()
459 static_cast<ColorAspects::MatrixCoeffs>(l.mMatrixCoeffs)}; in toHardwareColorAspects()
469 inline ColorAspects toHardwareColorAspects(int32_t l) { in toHardwareColorAspects()
470 return ColorAspects{ in toHardwareColorAspects()
471 static_cast<ColorAspects::Range>((l >> 24) & 0xFF), in toHardwareColorAspects()
[all …]
DWGraphicBufferSource.cpp215 const ColorAspects& aspects) { in setColorAspects()
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp381 ColorAspects aspects; in VideoTrackEntry()
382 aspects.mPrimaries = ColorAspects::PrimariesUnspecified; in VideoTrackEntry()
383 aspects.mTransfer = ColorAspects::TransferUnspecified; in VideoTrackEntry()
384 aspects.mMatrixCoeffs = ColorAspects::MatrixUnspecified; in VideoTrackEntry()
385 aspects.mRange = ColorAspects::RangeUnspecified; in VideoTrackEntry()
/frameworks/av/media/libstagefright/
DUtils.cpp120 ColorAspects colorAspects; in convertMetaDataToMessageColorAspects()
122 colorAspects.mRange = (ColorAspects::Range)range; in convertMetaDataToMessageColorAspects()
123 colorAspects.mPrimaries = (ColorAspects::Primaries)primaries; in convertMetaDataToMessageColorAspects()
124 colorAspects.mTransfer = (ColorAspects::Transfer)transferFunction; in convertMetaDataToMessageColorAspects()
125 colorAspects.mMatrixCoeffs = (ColorAspects::MatrixCoeffs)colorMatrix; in convertMetaDataToMessageColorAspects()
1261 ColorAspects colorAspects; in convertMessageToMetaDataColorAspects()
DACodec.cpp3569 ColorAspects origAspects = params.sAspects; in setColorAspectsForVideoEncoder()
3608 ColorAspects &aspects = params.sAspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3620 ColorAspects origAspects = aspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
5210 void ACodec::onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects) { in onDataSpaceChanged()
5582 ColorAspects aspects = ColorUtils::unpackToColorAspects(data2); in onOMXEvent()
6677 if (colorAspectsBuffer->size() != sizeof(ColorAspects)) { in setupInputSurface()
6683 *(ColorAspects *)colorAspectsBuffer->base()))); in setupInputSurface()
DMPEG4Writer.cpp3306 ColorAspects aspects; in writeColrBox()
DMPEG4Extractor.cpp3056 ColorAspects aspects; in parseColorInfo()
/frameworks/av/media/libstagefright/codecs/avcdec/
DSoftAVCDec.cpp366 ColorAspects colorAspects; in getVUIParams()
/frameworks/av/media/libstagefright/codecs/hevcdec/
DSoftHEVC.cpp206 ColorAspects colorAspects; in getVUIParams()
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp1132 ColorAspects aspects; in getColorInformation()
1139 kKeyColorRange, rangeSpecified ? aspects.mRange : ColorAspects::RangeUnspecified); in getColorInformation()
/frameworks/av/media/libstagefright/codecs/mpeg2dec/
DSoftMPEG2.cpp493 ColorAspects colorAspects; in getSeqInfo()