Searched refs:sampleReader (Results 1 – 6 of 6) sorted by relevance
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/ |
D | MediaSampleReaderBenchmark.cpp | 59 auto sampleReader = MediaSampleReaderNDK::createFromFd(srcFd, 0, fileSize); in ReadMediaSamples() local 60 if (sampleReader->setEnforceSequentialAccess(sequentialAccess) != AMEDIA_OK) { in ReadMediaSamples() 67 for (int trackIndex = 0; trackIndex < sampleReader->getTrackCount(); ++trackIndex) { in ReadMediaSamples() 70 AMediaFormat* trackFormat = sampleReader->getTrackFormat(trackIndex); in ReadMediaSamples() 84 sampleReader->selectTrack(trackIndex); in ReadMediaSamples() 90 trackThreads.emplace_back([trackIndex, sampleReader, &state] { in ReadMediaSamples() 98 media_status_t status = sampleReader->getSampleInfoForTrack(trackIndex, &info); in ReadMediaSamples() 108 status = sampleReader->readSampleDataForTrack(trackIndex, buffer.get(), in ReadMediaSamples()
|
D | MediaTrackTranscoderBenchmark.cpp | 108 auto sampleReader = std::shared_ptr<MockSampleReader>(new MockSampleReader(extractor)); in createFromFd() local 109 return sampleReader; in createFromFd() 264 std::shared_ptr<MediaSampleReader> sampleReader; in GetSampleReader() local 267 sampleReader = MockSampleReader::createFromFd(srcFd, 0 /* offset */, fileSize); in GetSampleReader() 269 sampleReader = MediaSampleReaderNDK::createFromFd(srcFd, 0 /* offset */, fileSize); in GetSampleReader() 273 return sampleReader; in GetSampleReader() 300 const std::shared_ptr<MediaSampleReader>& sampleReader, in ConfigureSampleReader() argument 306 for (int trackIndex = 0; trackIndex < sampleReader->getTrackCount(); ++trackIndex) { in ConfigureSampleReader() 307 AMediaFormat* trackFormat = sampleReader->getTrackFormat(trackIndex); in ConfigureSampleReader() 326 media_status_t status = sampleReader->selectTrack(srcTrackIndex); in ConfigureSampleReader() [all …]
|
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/ |
D | MediaSampleReaderNDKTests.cpp | 388 auto sampleReader = MediaSampleReaderNDK::createFromFd(mSourceFd, 0, mFileSize); in TEST_F() local 389 ASSERT_TRUE(sampleReader); in TEST_F() 393 EXPECT_EQ(sampleReader->selectTrack(trackIndex), AMEDIA_OK); in TEST_F() 396 EXPECT_EQ(sampleReader->getEstimatedBitrateForTrack(trackIndex, &bitrate), AMEDIA_OK); in TEST_F() 408 std::shared_ptr<MediaSampleReader> sampleReader = in TEST_F() local 410 ASSERT_TRUE(sampleReader == nullptr); in TEST_F() 412 sampleReader = MediaSampleReaderNDK::createFromFd(-1, 0, mFileSize); in TEST_F() 413 ASSERT_TRUE(sampleReader == nullptr); in TEST_F() 417 std::shared_ptr<MediaSampleReader> sampleReader = in TEST_F() local 419 ASSERT_TRUE(sampleReader == nullptr); in TEST_F() [all …]
|
D | TranscoderTestUtils.h | 40 auto sampleReader = MediaSampleReaderNDK::createFromFd(fd, 0, fileSize); variable 41 EXPECT_NE(sampleReader, nullptr); 43 for (size_t i = 0; i < sampleReader->getTrackCount(); ++i) { 44 AMediaFormat* format = sampleReader->getTrackFormat(i);
|
D | MediaTranscoderTests.cpp | 226 std::shared_ptr<MediaSampleReader> sampleReader = in verifyOutputFormat() local 228 ASSERT_NE(sampleReader, nullptr); in verifyOutputFormat() 231 const size_t trackCount = sampleReader->getTrackCount(); in verifyOutputFormat() 233 AMediaFormat* trackFormat = sampleReader->getTrackFormat(static_cast<int>(trackIndex)); in verifyOutputFormat()
|
/frameworks/av/media/module/libmediatranscoding/transcoder/ |
D | MediaSampleReaderNDK.cpp | 48 auto sampleReader = std::shared_ptr<MediaSampleReaderNDK>(new MediaSampleReaderNDK(extractor)); in createFromFd() local 49 return sampleReader; in createFromFd()
|