Home
last modified time | relevance | path

Searched refs:trackMeta (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/libmediaplayerservice/
DStagefrightMetadataRetriever.cpp193 sp<MetaData> trackMeta = mExtractor->getTrackMetaData(i); in getImageInternal() local
194 if (!trackMeta) { in getImageInternal()
200 if (!trackMeta->findCString(kKeyMIMEType, &mime)) { in getImageInternal()
207 trackMeta = new MetaData(*trackMeta); in getImageInternal()
208 trackMeta->setCString(kKeyMIMEType, mime); in getImageInternal()
212 trackMeta = new MetaData(*trackMeta); in getImageInternal()
213 trackMeta->setCString(kKeyMIMEType, mime); in getImageInternal()
217 status_t err = convertMetaDataToMessage(trackMeta, &format); in getImageInternal()
243 return FrameDecoder::getMetadataOnly(trackMeta, colorFormat, thumbnail, bitDepth); in getImageInternal()
261 && trackMeta->findInt32(kKeyThumbnailHeight, &thumbHeight) in getImageInternal()
[all …]
/frameworks/av/media/libstagefright/
DFrameDecoder.cpp51 sp<IMemory> allocVideoFrame(const sp<MetaData>& trackMeta, in allocVideoFrame() argument
55 if (!trackMeta->findInt32(kKeyRotation, &rotationAngle)) { in allocVideoFrame()
61 if (!trackMeta->findData(kKeyIccProfile, &type, &iccData, &iccSize)){ in allocVideoFrame()
68 if (trackMeta->findInt32(kKeySARWidth, &sarWidth) in allocVideoFrame()
69 && trackMeta->findInt32(kKeySARHeight, &sarHeight) in allocVideoFrame()
79 } else if (trackMeta->findInt32(kKeyDisplayWidth, &displayWidth) in allocVideoFrame()
80 && trackMeta->findInt32(kKeyDisplayHeight, &displayHeight) in allocVideoFrame()
130 sp<IMemory> allocVideoFrame(const sp<MetaData>& trackMeta, in allocVideoFrame() argument
133 return allocVideoFrame(trackMeta, width, height, tileWidth, tileHeight, dstBpp, bitDepth, in allocVideoFrame()
137 sp<IMemory> allocMetaFrame(const sp<MetaData>& trackMeta, in allocMetaFrame() argument
[all …]
DMediaMuxer.cpp95 sp<MetaData> trackMeta = new MetaData; in addTrack() local
96 if (convertMessageToMetaData(format, trackMeta) != OK) { in addTrack()
100 sp<MediaAdapter> newTrack = new MediaAdapter(trackMeta); in addTrack()
/frameworks/av/media/libstagefright/tests/fuzzers/
DFrameDecoderFuzzer.cpp36 sp<MetaData> trackMeta = generateMetaData(&fdp); in LLVMFuzzerTestOneInput() local
43 decoder = new VideoFrameDecoder(componentName, trackMeta, source); in LLVMFuzzerTestOneInput()
45 decoder = new MediaImageDecoder(componentName, trackMeta, source); in LLVMFuzzerTestOneInput()
71 sp<MetaData> trackMeta = generateMetaData(&fdp); in LLVMFuzzerTestOneInput() local
72 decoder->getMetadataOnly(trackMeta, in LLVMFuzzerTestOneInput()
/frameworks/av/media/libstagefright/include/
DFrameDecoder.h45 const sp<MetaData> &trackMeta,
53 const sp<MetaData> &trackMeta, int colorFormat,
79 sp<MetaData> trackMeta() const { return mTrackMeta; } in trackMeta() function
109 const sp<MetaData> &trackMeta,
153 const sp<MetaData> &trackMeta,
/frameworks/av/media/libstagefright/tests/ESDS/
DESDSTest.cpp108 sp<MetaData> trackMeta = extractor->getTrackMetaData(i); in esdsDataPresent() local
109 if (trackMeta != nullptr && in esdsDataPresent()
110 trackMeta->findData(kKeyESDS, &type, &mESDSData, &mESDSSize)) { in esdsDataPresent()
111 trackMeta->clear(); in esdsDataPresent()
/frameworks/av/media/libstagefright/webm/tests/
DWebmFrameThreadUnitTest.cpp159 sp<MetaData> trackMeta = new MetaData; in addTrack() local
160 convertMessageToMetaData(format, trackMeta); in addTrack()
163 mSource[kVideoIdx] = new MediaAdapter(trackMeta); in addTrack()
166 mSource[kAudioIdx] = new MediaAdapter(trackMeta); in addTrack()
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp618 AMediaFormat *trackMeta = AMediaFormat_new(); in TEST_P() local
619 ASSERT_NE(trackMeta, nullptr) << "AMediaFormat_new returned null AMediaformat"; in TEST_P()
621 status = mExtractor->getTrackMetaData(trackMeta, idx, 1); in TEST_P()
625 AMediaFormat_getInt64(trackMeta, AMEDIAFORMAT_KEY_DURATION, &clipDuration); in TEST_P()
628 AMediaFormat_delete(trackMeta); in TEST_P()
782 AMediaFormat *trackMeta = AMediaFormat_new(); in TEST_P() local
783 ASSERT_NE(trackMeta, nullptr) << "AMediaFormat_new returned null AMediaformat"; in TEST_P()
786 trackMeta, idx, MediaExtractorPluginHelper::kIncludeExtensiveMetaData); in TEST_P()
790 ASSERT_TRUE(AMediaFormat_getString(trackMeta, AMEDIAFORMAT_KEY_MIME, &mime)) in TEST_P()
794 AMediaFormat_getInt64(trackMeta, AMEDIAFORMAT_KEY_DURATION, &clipDuration); in TEST_P()
[all …]
/frameworks/av/media/libstagefright/writer_fuzzers/
DWriterFuzzerBase.cpp192 sp<MetaData> trackMeta = new MetaData; in addWriterSource() local
193 convertMessageToMetaData(format, trackMeta); in addWriterSource()
194 mCurrentTrack[trackIndex] = new MediaAdapter(trackMeta); in addWriterSource()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp292 sp<MetaData> trackMeta = new MetaData; in addWriterSource() local
293 convertMessageToMetaData(format, trackMeta); in addWriterSource()
294 mCurrentTrack[idx] = new MediaAdapter(trackMeta); in addWriterSource()
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp670 AMediaFormat *trackMeta = mExtractor->mTracks.itemAt(mTrackIndex).mMeta; in setWebmBlockCryptoInfo() local
671 AMediaFormat_getBuffer(trackMeta, AMEDIAFORMAT_KEY_CRYPTO_KEY, in setWebmBlockCryptoInfo()