Home
last modified time | relevance | path

Searched refs:mSampleReader (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/libmediatranscoding/transcoder/
DMediaTranscoder.cpp185 mSampleReader->setEnforceSequentialAccess(true); in onTrackFormatAvailable()
264 mSampleReader = MediaSampleReaderNDK::createFromFd(fd, 0 /* offset */, fileSize); in configureSource()
265 if (mSampleReader == nullptr) { in configureSource()
270 const size_t trackCount = mSampleReader->getTrackCount(); in configureSource()
272 AMediaFormat* trackFormat = mSampleReader->getTrackFormat(static_cast<int>(trackIndex)); in configureSource()
297 if (mSampleReader == nullptr) { in configureTrackFormat()
345 media_status_t status = mSampleReader->selectTrack(trackIndex); in configureTrackFormat()
351 status = transcoder->configure(mSampleReader, trackIndex, trackFormat); in configureTrackFormat()
355 mSampleReader->unselectTrack(trackIndex); in configureTrackFormat()
431 mSampleReader->setEnforceSequentialAccess(false); in requestStop()
/frameworks/av/media/libmediatranscoding/transcoder/tests/
DMediaSampleReaderNDKTests.cpp88 mSampleReader = MediaSampleReaderNDK::createFromFd(sourceFd, 0, fileSize); in SampleAccessTester()
89 EXPECT_TRUE(mSampleReader); in SampleAccessTester()
91 mTrackCount = mSampleReader->getTrackCount(); in SampleAccessTester()
94 EXPECT_EQ(mSampleReader->selectTrack(trackIndex), AMEDIA_OK); in SampleAccessTester()
103 media_status_t status = mSampleReader->getSampleInfoForTrack(trackIndex, &info); in getSampleInfo()
112 media_status_t status = mSampleReader->getSampleInfoForTrack(trackIndex, &info); in readSamplesAsync()
121 status = mSampleReader->readSampleDataForTrack(trackIndex, buffer.get(), info.size); in readSamplesAsync()
152 media_status_t status = mSampleReader->setEnforceSequentialAccess(enforce); in setEnforceSequentialAccess()
158 std::shared_ptr<MediaSampleReader> mSampleReader; member in android::SampleAccessTester
/frameworks/av/media/libmediatranscoding/transcoder/include/media/
DMediaTranscoder.h149 std::shared_ptr<MediaSampleReader> mSampleReader; variable