Home
last modified time | relevance | path

Searched refs:aspects (Results 1 – 25 of 27) 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/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.cpp67 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
73 tMsg.data.eventData.data2 = aspects; in dispatchDataSpaceChanged()
80 static_cast<long>(aspects), in dispatchDataSpaceChanged()
234 const ColorAspects& aspects) { in setColorAspects() argument
235 return toStatus(mBase->setColorAspects(toCompactColorAspects(aspects))); in setColorAspects()
/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.cpp1323 ColorAspects aspects = { in getFormatForDomain() local
1327 ColorUtils::getColorAspectsFromFormat(msg, aspects); in getFormatForDomain()
1328 ColorAspects origAspects = aspects; in getFormatForDomain()
1341 ColorUtils::setDefaultCodecColorAspectsIfNeeded(aspects, width, height); in getFormatForDomain()
1342 ColorUtils::setColorAspectsIntoFormat(aspects, msg); in getFormatForDomain()
1346 || aspects.mRange != origAspects.mRange in getFormatForDomain()
1347 || aspects.mPrimaries != origAspects.mPrimaries in getFormatForDomain()
1348 || aspects.mTransfer != origAspects.mTransfer in getFormatForDomain()
1349 || aspects.mMatrixCoeffs != origAspects.mMatrixCoeffs) { in getFormatForDomain()
1350 dataspace = ColorUtils::getDataSpaceForColorAspects(aspects, true /* mayExpand */); in getFormatForDomain()
/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/libstagefright/omx/
DOmxGraphicBufferSource.cpp55 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() argument
56 mOmxNode->dispatchDataSpaceChanged(dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
DOMXNodeInstance.cpp2238 ColorAspects aspects = requestedAspects; // initially requested aspects in handleDataSpaceChanged() local
2256 aspects = params.sAspects; in handleDataSpaceChanged()
2264 params.sAspects = aspects; in handleDataSpaceChanged()
2274 params.sAspects, aspects)) { in handleDataSpaceChanged()
2284 aspects.mRange, asString(aspects.mRange), in handleDataSpaceChanged()
2285 aspects.mPrimaries, asString(aspects.mPrimaries), in handleDataSpaceChanged()
2286 aspects.mMatrixCoeffs, asString(aspects.mMatrixCoeffs), in handleDataSpaceChanged()
2287 aspects.mTransfer, asString(aspects.mTransfer), in handleDataSpaceChanged()
2296 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/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/codec2/sfplugin/utils/
DCodec2Mapper.cpp925 ColorAspects aspects; in map() local
926 if (!sColorRangesSf.map(range, &aspects.mRange)) { in map()
927 aspects.mRange = ColorAspects::RangeUnspecified; in map()
929 if (!sColorPrimariesSf.map(primaries, &aspects.mPrimaries)) { in map()
930 aspects.mPrimaries = ColorAspects::PrimariesUnspecified; in map()
932 if (!sColorMatricesSf.map(matrix, &aspects.mMatrixCoeffs)) { in map()
933 aspects.mMatrixCoeffs = ColorAspects::MatrixUnspecified; in map()
935 if (!sColorTransfersSf.map(transfer, &aspects.mTransfer)) { in map()
936 aspects.mTransfer = ColorAspects::TransferUnspecified; in map()
938 *dataSpace = ColorUtils::getDataSpaceForColorAspects(aspects, true /* mayExpand */); in map()
/frameworks/av/media/libmedia/include/media/omx/1.0/
DWGraphicBufferSource.h78 BnStatus setColorAspects(int32_t aspects) override;
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DWGraphicBufferSource.h81 Return<Status> setColorAspects(const ColorAspects& aspects) override;
/frameworks/av/media/libstagefright/
DUtils.cpp1304 ColorAspects aspects; in convertMetaDataToMessage() local
1306 isoPrimaries, isoTransfer, isoMatrix, isoRange, aspects); in convertMetaDataToMessage()
1308 if (aspects.mPrimaries == ColorAspects::PrimariesUnspecified) { in convertMetaDataToMessage()
1312 aspects.mPrimaries = static_cast<ColorAspects::Primaries>(primaries); in convertMetaDataToMessage()
1315 if (aspects.mTransfer == ColorAspects::TransferUnspecified) { in convertMetaDataToMessage()
1319 aspects.mTransfer = static_cast<ColorAspects::Transfer>(transferFunction); in convertMetaDataToMessage()
1322 if (aspects.mMatrixCoeffs == ColorAspects::MatrixUnspecified) { in convertMetaDataToMessage()
1326 aspects.mMatrixCoeffs = static_cast<ColorAspects::MatrixCoeffs>(colorMatrix); in convertMetaDataToMessage()
1329 if (aspects.mRange == ColorAspects::RangeUnspecified) { in convertMetaDataToMessage()
1333 aspects.mRange = static_cast<ColorAspects::Range>(range); in convertMetaDataToMessage()
[all …]
DACodec.cpp3789 ColorAspects &aspects = params.sAspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace() local
3792 getColorAspectsFromFormat(mConfigFormat, aspects); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3795 setDefaultCodecColorAspectsIfNeeded(aspects, width, height); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3797 setColorAspectsIntoFormat(aspects, mInputFormat); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3798 setColorAspectsIntoFormat(aspects, mOutputFormat); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3801 ColorAspects origAspects = aspects; in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3805 if (err != OK || !ColorUtils::checkIfAspectsChangedAndUnspecifyThem(aspects, origAspects)) { in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3813 aspects = origAspects; // restore desired color aspects in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
3821 "android._color-aspects", ABuffer::CreateAsCopy(&aspects, sizeof(aspects))); in setInitialColorAspectsForVideoEncoderSurfaceAndGetDataSpace()
5586 void ACodec::onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects) { in onDataSpaceChanged() argument
[all …]
DMPEG4Writer.cpp4218 ColorAspects aspects; in writeColrBox() local
4219 memset(&aspects, 0, sizeof(aspects)); in writeColrBox()
4221 if (mMeta->findInt32(kKeyColorPrimaries, (int32_t*)&aspects.mPrimaries) in writeColrBox()
4222 | mMeta->findInt32(kKeyTransferFunction, (int32_t*)&aspects.mTransfer) in writeColrBox()
4223 | mMeta->findInt32(kKeyColorMatrix, (int32_t*)&aspects.mMatrixCoeffs) in writeColrBox()
4224 | mMeta->findInt32(kKeyColorRange, (int32_t*)&aspects.mRange)) { in writeColrBox()
4228 aspects, &primaries, &transfer, &coeffs, &fullRange); in writeColrBox()
/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.h438 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/
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
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
/frameworks/native/docs/
DDoxyfile965 # certain style aspects. This is preferred over using HTML_STYLESHEET

12