Home
last modified time | relevance | path

Searched refs:mMediaSampleReader (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/libmediatranscoding/transcoder/tests/
DMediaTrackTranscoderTests.cpp74 mMediaSampleReader = MediaSampleReaderNDK::createFromFd(sourceFd, 0 /* offset */, fileSize); in initSampleReader()
75 ASSERT_NE(mMediaSampleReader, nullptr); in initSampleReader()
78 for (size_t trackIndex = 0; trackIndex < mMediaSampleReader->getTrackCount(); in initSampleReader()
80 AMediaFormat* trackFormat = mMediaSampleReader->getTrackFormat(trackIndex); in initSampleReader()
110 EXPECT_EQ(mMediaSampleReader->selectTrack(mTrackIndex), AMEDIA_OK); in initSampleReader()
139 std::shared_ptr<MediaSampleReader> mMediaSampleReader; member in android::MediaTrackTranscoderTests
152 EXPECT_EQ(mTranscoder->configure(mMediaSampleReader, mTrackIndex, mDestinationFormat), in TEST_P()
167 EXPECT_EQ(mTranscoder->configure(mMediaSampleReader, mTrackIndex, mDestinationFormat), in TEST_P()
183 EXPECT_EQ(mTranscoder->configure(mMediaSampleReader, mTrackIndex, mDestinationFormat), in TEST_P()
194 EXPECT_EQ(mTranscoder->configure(mMediaSampleReader, mTrackIndex, mDestinationFormat), in TEST_P()
[all …]
DVideoTrackTranscoderTests.cpp54 mMediaSampleReader = MediaSampleReaderNDK::createFromFd(sourceFd, 0, fileSize); in SetUp()
55 ASSERT_NE(mMediaSampleReader, nullptr); in SetUp()
58 for (size_t trackIndex = 0; trackIndex < mMediaSampleReader->getTrackCount(); in SetUp()
60 AMediaFormat* trackFormat = mMediaSampleReader->getTrackFormat(trackIndex); in SetUp()
93 std::shared_ptr<MediaSampleReader> mMediaSampleReader; member in android::VideoTrackTranscoderTests
104 EXPECT_EQ(mMediaSampleReader->selectTrack(mTrackIndex), AMEDIA_OK); in TEST_F()
105 EXPECT_EQ(transcoder->configure(mMediaSampleReader, mTrackIndex, mDestinationFormat), in TEST_F()
153 EXPECT_EQ(mMediaSampleReader->selectTrack(mTrackIndex), AMEDIA_OK); in TEST_F()
156 EXPECT_EQ(mMediaSampleReader->getEstimatedBitrateForTrack(mTrackIndex, &srcBitrate), AMEDIA_OK); in TEST_F()
158 ASSERT_EQ(transcoder->configure(mMediaSampleReader, mTrackIndex, destFormat), AMEDIA_OK); in TEST_F()
[all …]
/frameworks/av/media/libmediatranscoding/transcoder/
DMediaTrackTranscoder.cpp46 mMediaSampleReader = mediaSampleReader; in configure()
49 mSourceFormat = std::shared_ptr<AMediaFormat>(mMediaSampleReader->getTrackFormat(mTrackIndex), in configure()
DPassthroughTrackTranscoder.cpp114 media_status_t status = mMediaSampleReader->getSampleInfoForTrack(mTrackIndex, &info); in runTranscodeLoop()
130 status = mMediaSampleReader->readSampleDataForTrack(mTrackIndex, buffer, info.size); in runTranscodeLoop()
DVideoTrackTranscoder.cpp226 status = mMediaSampleReader->getEstimatedBitrateForTrack(mTrackIndex, &mConfiguredBitrate); in configureDestinationFormat()
407 status = mMediaSampleReader->getSampleInfoForTrack(mTrackIndex, &mSampleInfo); in enqueueInputSample()
428 status = mMediaSampleReader->readSampleDataForTrack(mTrackIndex, sourceBuffer, in enqueueInputSample()
/frameworks/av/media/libmediatranscoding/transcoder/include/media/
DMediaTrackTranscoder.h124 std::shared_ptr<MediaSampleReader> mMediaSampleReader; variable