Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/foundation/
DColorUtils.cpp232 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects) { in convertPlatformColorAspectsToCodecAspects() argument
233 status_t res1 = unwrapColorAspectsFromColorRange(range, &aspects.mRange); in convertPlatformColorAspectsToCodecAspects()
235 standard, &aspects.mPrimaries, &aspects.mMatrixCoeffs); in convertPlatformColorAspectsToCodecAspects()
236 status_t res3 = unwrapColorAspectsFromColorTransfer(transfer, &aspects.mTransfer); in convertPlatformColorAspectsToCodecAspects()
242 const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer) { in convertCodecColorAspectsToPlatformAspects() argument
243 *range = wrapColorAspectsIntoColorRange(aspects.mRange); in convertCodecColorAspectsToPlatformAspects()
244 *standard = wrapColorAspectsIntoColorStandard(aspects.mPrimaries, aspects.mMatrixCoeffs); in convertCodecColorAspectsToPlatformAspects()
245 *transfer = wrapColorAspectsIntoColorTransfer(aspects.mTransfer); in convertCodecColorAspectsToPlatformAspects()
246 if (isValid(aspects.mRange) && isValid(aspects.mPrimaries) in convertCodecColorAspectsToPlatformAspects()
247 && isValid(aspects.mMatrixCoeffs) && isValid(aspects.mTransfer)) { in convertCodecColorAspectsToPlatformAspects()
[all …]
/frameworks/av/media/libstagefright/foundation/tests/colorutils/
DColorUtilsTest.cpp184 CA aspects; in TEST_P() local
185 aspects.mRange = mRange; in TEST_P()
186 aspects.mPrimaries = mPrimaries; in TEST_P()
187 aspects.mTransfer = mTransfer; in TEST_P()
188 aspects.mMatrixCoeffs = mMatrixCoeffs; in TEST_P()
193 status_t status = ColorUtils::convertCodecColorAspectsToPlatformAspects(aspects, &range, in TEST_P()
201 EXPECT_EQ(returnedAspects.mRange, aspects.mRange) in TEST_P()
203 EXPECT_EQ(returnedAspects.mPrimaries, aspects.mPrimaries) in TEST_P()
205 EXPECT_EQ(returnedAspects.mTransfer, aspects.mTransfer) in TEST_P()
207 EXPECT_EQ(returnedAspects.mMatrixCoeffs, aspects.mMatrixCoeffs) in TEST_P()
[all …]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DColorUtils.h128 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);
148 static uint32_t packToU32(const ColorAspects &aspects);
152 ColorAspects &aspects, int32_t width, int32_t height);
157 static android_dataspace getDataSpaceForColorAspects(ColorAspects &aspects, bool mayExpand);
165 ColorAspects &aspects, const ColorAspects &orig, bool usePlatformAspects = false);
175 static void getColorAspectsFromFormat(const sp<AMessage> &format, ColorAspects &aspects);
180 const ColorAspects &aspects, sp<AMessage> &format, bool force = false);
/frameworks/av/media/libstagefright/omx/1.0/
DWGraphicBufferSource.cpp62 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
68 tMsg.data.eventData.data2 = aspects; in dispatchDataSpaceChanged()
75 static_cast<long>(aspects), in dispatchDataSpaceChanged()
229 const ColorAspects& aspects) { in setColorAspects() argument
230 return toStatus(mBase->setColorAspects(toCompactColorAspects(aspects))); in setColorAspects()
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp382 ColorAspects aspects; in VideoTrackEntry() local
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()
387 bool havePrimaries = meta->findInt32(kKeyColorPrimaries, (int32_t*)&aspects.mPrimaries); in VideoTrackEntry()
388 bool haveTransfer = meta->findInt32(kKeyTransferFunction, (int32_t*)&aspects.mTransfer); in VideoTrackEntry()
389 bool haveCoeffs = meta->findInt32(kKeyColorMatrix, (int32_t*)&aspects.mMatrixCoeffs); in VideoTrackEntry()
390 bool haveRange = meta->findInt32(kKeyColorRange, (int32_t*)&aspects.mRange); in VideoTrackEntry()
395 aspects, &primaries, &transfer, &coeffs, &fullRange); in VideoTrackEntry()
/frameworks/av/media/codec2/sfplugin/
DOmx2IGraphicBufferSource.cpp73 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
79 msg.u.event_data.data2 = aspects; in dispatchDataSpaceChanged()
129 int32_t aspects) { in setColorAspects() argument
130 return BnStatus::fromStatusT(mBase->setColorAspects(aspects)); in setColorAspects()
DOmx2IGraphicBufferSource.h39 BnStatus setColorAspects(int32_t aspects) override;
DCCodecConfig.cpp1192 ColorAspects aspects = { in getSdkFormatForDomain() local
1196 ColorUtils::getColorAspectsFromFormat(msg, aspects); in getSdkFormatForDomain()
1197 ColorAspects origAspects = aspects; in getSdkFormatForDomain()
1210 ColorUtils::setDefaultCodecColorAspectsIfNeeded(aspects, width, height); in getSdkFormatForDomain()
1211 ColorUtils::setColorAspectsIntoFormat(aspects, msg); in getSdkFormatForDomain()
1215 || aspects.mRange != origAspects.mRange in getSdkFormatForDomain()
1216 || aspects.mPrimaries != origAspects.mPrimaries in getSdkFormatForDomain()
1217 || aspects.mTransfer != origAspects.mTransfer in getSdkFormatForDomain()
1218 || aspects.mMatrixCoeffs != origAspects.mMatrixCoeffs) { in getSdkFormatForDomain()
1219 dataspace = ColorUtils::getDataSpaceForColorAspects(aspects, true /* mayExpand */); in getSdkFormatForDomain()
/frameworks/av/media/libstagefright/omx/
DOmxGraphicBufferSource.cpp49 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() argument
50 mOmxNode->dispatchDataSpaceChanged(dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
DOMXNodeInstance.cpp2149 ColorAspects aspects = requestedAspects; // initially requested aspects in handleDataSpaceChanged() local
2167 aspects = params.sAspects; in handleDataSpaceChanged()
2175 params.sAspects = aspects; in handleDataSpaceChanged()
2185 params.sAspects, aspects)) { in handleDataSpaceChanged()
2195 aspects.mRange, asString(aspects.mRange), in handleDataSpaceChanged()
2196 aspects.mPrimaries, asString(aspects.mPrimaries), in handleDataSpaceChanged()
2197 aspects.mMatrixCoeffs, asString(aspects.mMatrixCoeffs), in handleDataSpaceChanged()
2198 aspects.mTransfer, asString(aspects.mTransfer), in handleDataSpaceChanged()
2207 msg.u.event_data.data2 = (OMX_U32) ColorUtils::packToU32(aspects); in handleDataSpaceChanged()
/frameworks/av/media/libmedia/omx/1.0/
DWGraphicBufferSource.cpp79 int32_t aspects) { in setColorAspects() argument
81 toHardwareColorAspects(aspects))); in setColorAspects()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.cpp921 ColorAspects aspects; in map() local
922 if (!sColorRangesSf.map(range, &aspects.mRange)) { in map()
923 aspects.mRange = ColorAspects::RangeUnspecified; in map()
925 if (!sColorPrimariesSf.map(primaries, &aspects.mPrimaries)) { in map()
926 aspects.mPrimaries = ColorAspects::PrimariesUnspecified; in map()
928 if (!sColorMatricesSf.map(matrix, &aspects.mMatrixCoeffs)) { in map()
929 aspects.mMatrixCoeffs = ColorAspects::MatrixUnspecified; in map()
931 if (!sColorTransfersSf.map(transfer, &aspects.mTransfer)) { in map()
932 aspects.mTransfer = ColorAspects::TransferUnspecified; in map()
934 *dataSpace = ColorUtils::getDataSpaceForColorAspects(aspects, true /* mayExpand */); in map()
/frameworks/av/media/libmedia/aidl/android/
DIGraphicBufferSource.aidl35 void setColorAspects(int aspects); in setColorAspects() argument
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DIOmxNodeWrapper.h34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/
DComponentWrapper.h34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
/frameworks/av/media/libmedia/include/media/omx/1.0/
DWGraphicBufferSource.h78 BnStatus setColorAspects(int32_t aspects) override;
/frameworks/av/media/libstagefright/
DUtils.cpp1242 ColorAspects aspects; in convertMetaDataToMessage() local
1244 isoPrimaries, isoTransfer, isoMatrix, isoRange, 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()
1260 if (aspects.mMatrixCoeffs == ColorAspects::MatrixUnspecified) { in convertMetaDataToMessage()
1264 aspects.mMatrixCoeffs = static_cast<ColorAspects::MatrixCoeffs>(colorMatrix); in convertMetaDataToMessage()
1267 if (aspects.mRange == ColorAspects::RangeUnspecified) { in convertMetaDataToMessage()
1271 aspects.mRange = static_cast<ColorAspects::Range>(range); in convertMetaDataToMessage()
[all …]
DACodec.cpp3723 ColorAspects &aspects = params.sAspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace() local
3726 getColorAspectsFromFormat(mConfigFormat, aspects); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3729 setDefaultCodecColorAspectsIfNeeded(aspects, width, height); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3731 setColorAspectsIntoFormat(aspects, mInputFormat); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3732 setColorAspectsIntoFormat(aspects, mOutputFormat); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3735 ColorAspects origAspects = aspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3739 if (err != OK || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem(aspects, origAspects)) { in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3747 aspects = origAspects; // restore desired color aspects in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3755 "android._color-aspects", ABuffer::CreateAsCopy(&aspects, sizeof(aspects))); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
5520 void ACodec::onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects) { in onDataSpaceChanged() argument
[all …]
DMPEG4Writer.cpp3835 ColorAspects aspects; in writeColrBox() local
3836 memset(&aspects, 0, sizeof(aspects)); in writeColrBox()
3838 if (mMeta->findInt32(kKeyColorPrimaries, (int32_t*)&aspects.mPrimaries) in writeColrBox()
3839 | mMeta->findInt32(kKeyTransferFunction, (int32_t*)&aspects.mTransfer) in writeColrBox()
3840 | mMeta->findInt32(kKeyColorMatrix, (int32_t*)&aspects.mMatrixCoeffs) in writeColrBox()
3841 | mMeta->findInt32(kKeyColorRange, (int32_t*)&aspects.mRange)) { in writeColrBox()
3845 aspects, &primaries, &transfer, &coeffs, &fullRange); in writeColrBox()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DWGraphicBufferSource.h85 Return<Status> setColorAspects(const ColorAspects& aspects) override;
/frameworks/av/media/codec2/hidl/1.0/utils/
DInputSurfaceConnection.cpp255 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
258 (void)aspects; in dispatchDataSpaceChanged()
/frameworks/av/media/libstagefright/include/media/stagefright/
DACodec.h428 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
/frameworks/av/media/codec2/docs/
Ddoxygen.config1136 # created by doxygen. Using this option one can overrule certain style aspects.
1705 # by doxygen. Using this option one can overrule certain style aspects. Doxygen
/frameworks/base/media/native/midi/include/
DDoxyfile.orig1186 # created by doxygen. Using this option one can overrule certain style aspects.
1755 # by doxygen. Using this option one can overrule certain style aspects. Doxygen
DDoxyfile1186 # created by doxygen. Using this option one can overrule certain style aspects.
1755 # by doxygen. Using this option one can overrule certain style aspects. Doxygen

12