/frameworks/av/media/libstagefright/foundation/ |
D | ColorUtils.cpp | 232 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/ |
D | ColorUtilsTest.cpp | 184 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/ |
D | ColorUtils.h | 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); 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/ |
D | WGraphicBufferSource.cpp | 62 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/ |
D | WebmElement.cpp | 382 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/ |
D | Omx2IGraphicBufferSource.cpp | 73 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()
|
D | Omx2IGraphicBufferSource.h | 39 BnStatus setColorAspects(int32_t aspects) override;
|
D | CCodecConfig.cpp | 1192 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/ |
D | OmxGraphicBufferSource.cpp | 49 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() argument 50 mOmxNode->dispatchDataSpaceChanged(dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
|
D | OMXNodeInstance.cpp | 2149 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/ |
D | WGraphicBufferSource.cpp | 79 int32_t aspects) { in setColorAspects() argument 81 toHardwareColorAspects(aspects))); in setColorAspects()
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2Mapper.cpp | 921 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/ |
D | IGraphicBufferSource.aidl | 35 void setColorAspects(int aspects); in setColorAspects() argument
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/ |
D | IOmxNodeWrapper.h | 34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
|
/frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/ |
D | ComponentWrapper.h | 34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | WGraphicBufferSource.h | 78 BnStatus setColorAspects(int32_t aspects) override;
|
/frameworks/av/media/libstagefright/ |
D | Utils.cpp | 1242 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 …]
|
D | ACodec.cpp | 3723 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 …]
|
D | MPEG4Writer.cpp | 3835 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/ |
D | WGraphicBufferSource.h | 85 Return<Status> setColorAspects(const ColorAspects& aspects) override;
|
/frameworks/av/media/codec2/hidl/1.0/utils/ |
D | InputSurfaceConnection.cpp | 255 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() 258 (void)aspects; in dispatchDataSpaceChanged()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | ACodec.h | 428 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
|
/frameworks/av/media/codec2/docs/ |
D | doxygen.config | 1136 # 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/ |
D | Doxyfile.orig | 1186 # 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
|
D | Doxyfile | 1186 # 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
|