Home
last modified time | relevance | path

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

12

/frameworks/native/headers/media_plugin/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.h423 ColorAspects sAspects; // IN/OUT
/frameworks/av/media/libstagefright/foundation/
DColorUtils.cpp31 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/
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/codec2/sfplugin/utils/
DCodec2Mapper.cpp99 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 …]
DCodec2Mapper.h70 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/
DSoftVideoDecoderOMXComponent.h158 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/
DConversion.h75 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 …]
DWGraphicBufferSource.h42 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/
DConversion.h72 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 …]
DWGraphicBufferSource.h40 using ::android::hardware::media::omx::V1_0::ColorAspects;
/frameworks/av/media/libstagefright/omx/
DSoftVideoDecoderOMXComponent.cpp75 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 …]
DOMXNodeInstance.cpp2148 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/
DC2SoftHevcDec.h87 bool colorAspectsDiffer(const ColorAspects &a, const ColorAspects &b);
89 const ColorAspects &otherAspects, const ColorAspects &preferredAspects);
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp382 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/
DUtils.cpp89 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()
1247 ColorAspects aspects; in convertMetaDataToMessage()
1251 if (aspects.mPrimaries == ColorAspects::PrimariesUnspecified) { in convertMetaDataToMessage()
1255 aspects.mPrimaries = static_cast<ColorAspects::Primaries>(primaries); in convertMetaDataToMessage()
1258 if (aspects.mTransfer == ColorAspects::TransferUnspecified) { in convertMetaDataToMessage()
1262 aspects.mTransfer = static_cast<ColorAspects::Transfer>(transferFunction); in convertMetaDataToMessage()
[all …]
DACodec.cpp3676 ColorAspects origAspects = params.sAspects; in setColorAspectsForVideoEncoder()
3715 ColorAspects &aspects = params.sAspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3727 ColorAspects origAspects = aspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
5489 void ACodec::onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects) { in onDataSpaceChanged()
5867 ColorAspects aspects = ColorUtils::unpackToColorAspects(data2); in onOMXEvent()
6935 if (colorAspectsBuffer->size() != sizeof(ColorAspects)) { in setupInputSurface()
6941 *(ColorAspects *)colorAspectsBuffer->base()))); in setupInputSurface()
/frameworks/av/media/libstagefright/omx/1.0/
DWGraphicBufferSource.cpp229 const ColorAspects& aspects) { in setColorAspects()
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.cpp1175 ColorAspects aspects = { in getSdkFormatForDomain()
1176 ColorAspects::RangeUnspecified, ColorAspects::PrimariesUnspecified, in getSdkFormatForDomain()
1177 ColorAspects::TransferUnspecified, ColorAspects::MatrixUnspecified in getSdkFormatForDomain()
1180 ColorAspects origAspects = aspects; in getSdkFormatForDomain()
/frameworks/av/media/libstagefright/include/media/stagefright/
DACodec.h428 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
/frameworks/av/media/libstagefright/codecs/avcdec/
DSoftAVCDec.cpp370 ColorAspects colorAspects; in getVUIParams()
/frameworks/av/media/libstagefright/codecs/hevcdec/
DSoftHEVC.cpp207 ColorAspects colorAspects; in getVUIParams()
/frameworks/av/media/libstagefright/codecs/mpeg2dec/
DSoftMPEG2.cpp493 ColorAspects colorAspects; in getSeqInfo()
/frameworks/av/media/libstagefright/bqhelper/
DGraphicBufferSource.cpp1369 ColorAspects colorAspects = ColorUtils::unpackToColorAspects(aspectsPacked); in setColorAspects()
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcDec.cpp582 ColorAspects sfAspects; in getVuiParams()

12