Home
last modified time | relevance | path

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

12

/frameworks/av/media/module/foundation/
DColorUtils.cpp236 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects) { in convertPlatformColorAspectsToCodecAspects() argument
237 status_t res1 = unwrapColorAspectsFromColorRange(range, &aspects.mRange); in convertPlatformColorAspectsToCodecAspects()
239 standard, &aspects.mPrimaries, &aspects.mMatrixCoeffs); in convertPlatformColorAspectsToCodecAspects()
240 status_t res3 = unwrapColorAspectsFromColorTransfer(transfer, &aspects.mTransfer); in convertPlatformColorAspectsToCodecAspects()
246 const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer) { in convertCodecColorAspectsToPlatformAspects() argument
247 *range = wrapColorAspectsIntoColorRange(aspects.mRange); in convertCodecColorAspectsToPlatformAspects()
248 *standard = wrapColorAspectsIntoColorStandard(aspects.mPrimaries, aspects.mMatrixCoeffs); in convertCodecColorAspectsToPlatformAspects()
249 *transfer = wrapColorAspectsIntoColorTransfer(aspects.mTransfer); in convertCodecColorAspectsToPlatformAspects()
250 if (isValid(aspects.mRange) && isValid(aspects.mPrimaries) in convertCodecColorAspectsToPlatformAspects()
251 && isValid(aspects.mMatrixCoeffs) && isValid(aspects.mTransfer)) { in convertCodecColorAspectsToPlatformAspects()
[all …]
/frameworks/av/media/module/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/module/foundation/include/media/stagefright/foundation/
DColorUtils.h129 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects);
131 const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer);
135 const ColorAspects &aspects,
140 ColorAspects &aspects);
149 static uint32_t packToU32(const ColorAspects &aspects);
153 ColorAspects &aspects, int32_t width, int32_t height);
158 static android_dataspace getDataSpaceForColorAspects(ColorAspects &aspects, bool mayExpand);
170 ColorAspects &aspects, const ColorAspects &orig, bool usePlatformAspects = false);
180 static void getColorAspectsFromFormat(const sp<AMessage> &format, ColorAspects &aspects);
185 const ColorAspects &aspects, sp<AMessage> &format, bool force = false);
/frameworks/av/media/module/aidlpersistentsurface/wrapper/
DWAidlGraphicBufferSource.cpp78 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged()
80 dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
87 static_cast<long>(aspects), in dispatchDataSpaceChanged()
213 const AidlColorAspects& aspects) { in setColorAspects() argument
214 return toAidlStatus(mBase->setColorAspects(compactFromAidlColorAspects(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()
DC2AidlNode.cpp89 int32_t aspects, in onDataSpaceChanged() argument
92 (void)aspects; in onDataSpaceChanged()
DOmx2IGraphicBufferSource.h39 BnStatus setColorAspects(int32_t aspects) override;
DC2AidlNode.h58 int dataSpace, int aspects, int pixelFormat) override;
/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()
251 const ColorAspects& aspects) { in setColorAspects() argument
252 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/libmedia/omx/1.0/
DWGraphicBufferSource.cpp79 int32_t aspects) { in setColorAspects() argument
81 toHardwareColorAspects(aspects))); in setColorAspects()
/frameworks/av/media/module/aidlpersistentsurface/
DAidlGraphicBufferSource.cpp51 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { in dispatchDataSpaceChanged() argument
52 mAidlNode->dispatchDataSpaceChanged(dataSpace, aspects, pixelFormat); in dispatchDataSpaceChanged()
/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.cpp2284 ColorAspects aspects = requestedAspects; // initially requested aspects in handleDataSpaceChanged() local
2302 aspects = params.sAspects; in handleDataSpaceChanged()
2310 params.sAspects = aspects; in handleDataSpaceChanged()
2320 params.sAspects, aspects)) { in handleDataSpaceChanged()
2330 aspects.mRange, asString(aspects.mRange), in handleDataSpaceChanged()
2331 aspects.mPrimaries, asString(aspects.mPrimaries), in handleDataSpaceChanged()
2332 aspects.mMatrixCoeffs, asString(aspects.mMatrixCoeffs), in handleDataSpaceChanged()
2333 aspects.mTransfer, asString(aspects.mTransfer), in handleDataSpaceChanged()
2342 msg.u.event_data.data2 = (OMX_U32) ColorUtils::packToU32(aspects); in handleDataSpaceChanged()
/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/module/aidlpersistentsurface/include/media/stagefright/aidlpersistentsurface/
DIAidlNodeWrapper.h33 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
/frameworks/av/media/module/bqhelper/include/media/stagefright/bqhelper/
DComponentWrapper.h34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
/frameworks/av/media/module/aidlpersistentsurface/aidl/android/media/
DIAidlGraphicBufferSource.aidl38 void setColorAspects(in AidlColorAspects aspects); in setColorAspects() argument
DIAidlNode.aidl51 void onDataSpaceChanged(int dataSpace, int aspects, int pixelFormat); in onDataSpaceChanged() argument
/frameworks/av/media/codec2/components/base/
DSimpleC2Component.cpp151 std::shared_ptr<const C2ColorAspectsStruct> aspects, in FillMissingColorAspects() argument
154 if (aspects) { in FillMissingColorAspects()
155 _aspects = *aspects; in FillMissingColorAspects()
207 static const struct Coeffs GetCoeffsForAspects(const C2ColorAspectsStruct &aspects) { in GetCoeffsForAspects() argument
208 bool isFullRange = aspects.range == C2Color::RANGE_FULL; in GetCoeffsForAspects()
210 switch (aspects.matrix) { in GetCoeffsForAspects()
254 std::shared_ptr<const C2ColorAspectsStruct> aspects) { in convertYUV420Planar16ToRGBA1010102() argument
256 C2ColorAspectsStruct _aspects = FillMissingColorAspects(aspects, width, height); in convertYUV420Planar16ToRGBA1010102()
347 std::shared_ptr<const C2ColorAspectsStruct> aspects) { in convertYUV420Planar16ToY410OrRGBA1010102() argument
350 srcVStride, dstStride, width, height, aspects); in convertYUV420Planar16ToY410OrRGBA1010102()
[all …]
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2Mapper.cpp1038 ColorAspects aspects; in map() local
1039 if (!sColorRangesSf.map(range, &aspects.mRange)) { in map()
1040 aspects.mRange = ColorAspects::RangeUnspecified; in map()
1042 if (!sColorPrimariesSf.map(primaries, &aspects.mPrimaries)) { in map()
1043 aspects.mPrimaries = ColorAspects::PrimariesUnspecified; in map()
1045 if (!sColorMatricesSf.map(matrix, &aspects.mMatrixCoeffs)) { in map()
1046 aspects.mMatrixCoeffs = ColorAspects::MatrixUnspecified; in map()
1048 if (!sColorTransfersSf.map(transfer, &aspects.mTransfer)) { in map()
1049 aspects.mTransfer = ColorAspects::TransferUnspecified; in map()
1051 *dataSpace = ColorUtils::getDataSpaceForColorAspects(aspects, true /* mayExpand */); in map()
/frameworks/av/media/module/aidlpersistentsurface/include/media/stagefright/aidlpersistentsurface/wrapper/
DWAidlGraphicBufferSource.h55 const ::aidl::android::media::AidlColorAspects& aspects) override;
/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;

12