/frameworks/av/media/libstagefright/foundation/ |
H A D | ColorUtils.cpp | 231 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects) { 232 status_t res1 = unwrapColorAspectsFromColorRange(range, &aspects.mRange); 234 standard, &aspects.mPrimaries, &aspects.mMatrixCoeffs); 235 status_t res3 = unwrapColorAspectsFromColorTransfer(transfer, &aspects.mTransfer); 241 const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer) { 242 *range = wrapColorAspectsIntoColorRange(aspects.mRange); 243 *standard = wrapColorAspectsIntoColorStandard(aspects.mPrimaries, aspects.mMatrixCoeffs); 244 *transfer = wrapColorAspectsIntoColorTransfer(aspects 230 convertPlatformColorAspectsToCodecAspects( int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects) argument 240 convertCodecColorAspectsToPlatformAspects( const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer) argument 311 convertCodecColorAspectsToIsoAspects( const ColorAspects &aspects, int32_t *primaries, int32_t *transfer, int32_t *coeffs, bool *fullRange) argument 330 convertIsoColorAspectsToCodecAspects( int32_t primaries, int32_t transfer, int32_t coeffs, bool fullRange, ColorAspects &aspects) argument 347 ColorAspects aspects; local 357 packToU32(const ColorAspects &aspects) argument 363 setDefaultCodecColorAspectsIfNeeded( ColorAspects &aspects, int32_t width, int32_t height) argument 449 checkIfAspectsChangedAndUnspecifyThem( ColorAspects &aspects, const ColorAspects &orig, bool usePlatformAspects) argument 479 getDataSpaceForColorAspects(ColorAspects &aspects, bool mayExpand) argument 552 getColorAspectsFromFormat(const sp<AMessage> &format, ColorAspects &aspects) argument 577 setColorAspectsIntoFormat( const ColorAspects &aspects, sp<AMessage> &format, bool force) argument [all...] |
/frameworks/av/media/libmedia/aidl/android/ |
H A D | IGraphicBufferSource.aidl | 34 void setColorAspects(int aspects);
|
/frameworks/av/media/libstagefright/omx/ |
H A D | IOmxNodeWrapper.h | 34 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) = 0;
|
H A D | BWGraphicBufferSource.cpp | 47 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { 53 msg.u.event_data.data2 = aspects; 164 int32_t aspects) { 165 return Status::fromStatusT(mBase->setColorAspects(aspects)); 163 setColorAspects( int32_t aspects) argument
|
H A D | BWGraphicBufferSource.h | 56 Status setColorAspects(int32_t aspects) override;
|
H A D | OMXNodeInstance.cpp | 1992 ColorAspects aspects = requestedAspects; // initially requested aspects local 1994 // request color aspects to encode 2010 aspects = params.sAspects; 2018 params.sAspects = aspects; 2028 params.sAspects, aspects)) { 2029 // if we can't set or get color aspects, still communicate dataspace to client 2037 ALOGV("Set color aspects to (R:%d(%s), P:%d(%s), M:%d(%s), T:%d(%s)) err=%d(%s)", 2038 aspects.mRange, asString(aspects [all...] |
/frameworks/av/include/media/stagefright/foundation/ |
H A D | ColorUtils.h | 112 // wrap methods change invalid aspects to the Unspecified value 118 // unwrap methods change invalid aspects to the Other value 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); 145 static uint32_t packToU32(const ColorAspects &aspects); 147 // updates Unspecified color aspects to their defaults based on the video size 149 ColorAspects &aspects, int32_t width, int32_t height); 151 // it returns the closest dataSpace for given color |aspects| [all...] |
/frameworks/av/media/libstagefright/foundation/include/foundation/ |
H A D | ColorUtils.h | 112 // wrap methods change invalid aspects to the Unspecified value 118 // unwrap methods change invalid aspects to the Other value 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); 145 static uint32_t packToU32(const ColorAspects &aspects); 147 // updates Unspecified color aspects to their defaults based on the video size 149 ColorAspects &aspects, int32_t width, int32_t height); 151 // it returns the closest dataSpace for given color |aspects| [all...] |
/frameworks/av/media/libstagefright/include/foundation/ |
H A D | ColorUtils.h | 112 // wrap methods change invalid aspects to the Unspecified value 118 // unwrap methods change invalid aspects to the Other value 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); 145 static uint32_t packToU32(const ColorAspects &aspects); 147 // updates Unspecified color aspects to their defaults based on the video size 149 ColorAspects &aspects, int32_t width, int32_t height); 151 // it returns the closest dataSpace for given color |aspects| [all...] |
/frameworks/av/media/libmedia/omx/1.0/ |
H A D | WGraphicBufferSource.cpp | 71 int32_t aspects) { 73 toHardwareColorAspects(aspects))); 70 setColorAspects( int32_t aspects) argument
|
/frameworks/av/media/libstagefright/omx/1.0/ |
H A D | WGraphicBufferSource.cpp | 63 int32_t dataSpace, int32_t aspects, int32_t pixelFormat) override { 69 tMsg.data.eventData.data2 = aspects; 215 const ColorAspects& aspects) { 216 return toStatus(mBase->setColorAspects(toCompactColorAspects(aspects))); 214 setColorAspects( const ColorAspects& aspects) argument
|
H A D | WGraphicBufferSource.h | 85 Return<Status> setColorAspects(const ColorAspects& aspects) override;
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmElement.cpp | 377 // Color aspects 381 ColorAspects aspects; local 382 aspects.mPrimaries = ColorAspects::PrimariesUnspecified; 383 aspects.mTransfer = ColorAspects::TransferUnspecified; 384 aspects.mMatrixCoeffs = ColorAspects::MatrixUnspecified; 385 aspects.mRange = ColorAspects::RangeUnspecified; 386 bool havePrimaries = meta->findInt32(kKeyColorPrimaries, (int32_t*)&aspects.mPrimaries); 387 bool haveTransfer = meta->findInt32(kKeyTransferFunction, (int32_t*)&aspects.mTransfer); 388 bool haveCoeffs = meta->findInt32(kKeyColorMatrix, (int32_t*)&aspects.mMatrixCoeffs); 389 bool haveRange = meta->findInt32(kKeyColorRange, (int32_t*)&aspects [all...] |
/frameworks/av/include/media/omx/1.0/ |
H A D | WGraphicBufferSource.h | 77 BnStatus setColorAspects(int32_t aspects) override;
|
/frameworks/av/media/libstagefright/matroska/ |
H A D | MatroskaExtractor.cpp | 1132 ColorAspects aspects; local 1134 primaries, transfer, coeffs, fullRange, aspects); 1135 meta->setInt32(kKeyColorPrimaries, aspects.mPrimaries); 1136 meta->setInt32(kKeyTransferFunction, aspects.mTransfer); 1137 meta->setInt32(kKeyColorMatrix, aspects.mMatrixCoeffs); 1139 kKeyColorRange, rangeSpecified ? aspects.mRange : ColorAspects::RangeUnspecified);
|
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 3404 ALOGV("[%s] setting color aspects (R:%d(%s), P:%d(%s), M:%d(%s), T:%d(%s)) err=%d(%s)", 3417 "[%s] setting color aspects failed even though codec advertises support", 3432 // The default aspects will be set back to the output format during the 3440 // communicate color aspects to codec 3449 ALOGV("[%s] got color aspects (R:%d(%s), P:%d(%s), M:%d(%s), T:%d(%s)) err=%d(%s)", 3461 ALOGW("[%s] getting color aspects failed even though codec advertises support", 3473 // we only set encoder input aspects if codec supports them 3499 ALOGV("[%s] using color aspects (R:%d(%s), P:%d(%s), M:%d(%s), T:%d(%s)) " 3525 // we always set specified aspects for decoders 3568 // communicate color aspects t 3608 ColorAspects &aspects = params.sAspects; local 5210 onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects) argument 5582 ColorAspects aspects = ColorUtils::unpackToColorAspects(data2); local [all...] |
H A D | MPEG4Writer.cpp | 3306 ColorAspects aspects; local 3307 memset(&aspects, 0, sizeof(aspects)); 3309 if (mMeta->findInt32(kKeyColorPrimaries, (int32_t*)&aspects.mPrimaries) 3310 | mMeta->findInt32(kKeyTransferFunction, (int32_t*)&aspects.mTransfer) 3311 | mMeta->findInt32(kKeyColorMatrix, (int32_t*)&aspects.mMatrixCoeffs) 3312 | mMeta->findInt32(kKeyColorRange, (int32_t*)&aspects.mRange)) { 3316 aspects, &primaries, &transfer, &coeffs, &fullRange);
|
H A D | MPEG4Extractor.cpp | 3056 ColorAspects aspects; local 3058 primaries, transfer, coeffs, fullRange, aspects); 3062 mLastTrack->meta->setInt32(kKeyColorPrimaries, aspects.mPrimaries); 3063 mLastTrack->meta->setInt32(kKeyTransferFunction, aspects.mTransfer); 3064 mLastTrack->meta->setInt32(kKeyColorMatrix, aspects.mMatrixCoeffs); 3065 mLastTrack->meta->setInt32(kKeyColorRange, aspects.mRange);
|
/frameworks/av/include/media/stagefright/ |
H A D | ACodec.h | 396 // aspects to use. If |tryCodec| is true, the codec is queried first. If it succeeds, we 403 // sets color aspects for the encoder for certain |width/height| based on |configFormat|, and 410 // gets color aspects for the encoder for certain |width/height| based on |configFormat|, and 418 // sets color aspects for the video encoder assuming bytebuffer mode for certain |configFormat| 425 // sets color aspects for the video encoder in surface mode. This basically sets the default 426 // video values for unspecified aspects and sets the dataspace to use in the input format. 432 // gets color aspects for the video encoder input port and sets them into the |format|. 436 // updates the encoder output format with |aspects| defaulting to |dataSpace| for 438 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
|
/frameworks/av/media/libstagefright/foundation/include/ |
H A D | ACodec.h | 396 // aspects to use. If |tryCodec| is true, the codec is queried first. If it succeeds, we 403 // sets color aspects for the encoder for certain |width/height| based on |configFormat|, and 410 // gets color aspects for the encoder for certain |width/height| based on |configFormat|, and 418 // sets color aspects for the video encoder assuming bytebuffer mode for certain |configFormat| 425 // sets color aspects for the video encoder in surface mode. This basically sets the default 426 // video values for unspecified aspects and sets the dataspace to use in the input format. 432 // gets color aspects for the video encoder input port and sets them into the |format|. 436 // updates the encoder output format with |aspects| defaulting to |dataSpace| for 438 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
|
/frameworks/av/media/libstagefright/include/ |
H A D | ACodec.h | 396 // aspects to use. If |tryCodec| is true, the codec is queried first. If it succeeds, we 403 // sets color aspects for the encoder for certain |width/height| based on |configFormat|, and 410 // gets color aspects for the encoder for certain |width/height| based on |configFormat|, and 418 // sets color aspects for the video encoder assuming bytebuffer mode for certain |configFormat| 425 // sets color aspects for the video encoder in surface mode. This basically sets the default 426 // video values for unspecified aspects and sets the dataspace to use in the input format. 432 // gets color aspects for the video encoder input port and sets them into the |format|. 436 // updates the encoder output format with |aspects| defaulting to |dataSpace| for 438 void onDataSpaceChanged(android_dataspace dataSpace, const ColorAspects &aspects);
|