Home
last modified time | relevance | path

Searched refs:mTranscoder (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DMediaTrackTranscoderTests.cpp56 mTranscoder = VideoTrackTranscoder::create(mCallback); in SetUp()
59 mTranscoder = std::make_shared<PassthroughTrackTranscoder>(mCallback); in SetUp()
62 ASSERT_NE(mTranscoder, nullptr); in SetUp()
115 mTranscoder->setSampleConsumer( in drainOutputSamples()
136 std::shared_ptr<MediaTrackTranscoder> mTranscoder; member in android::MediaTrackTranscoderTests
152 EXPECT_EQ(mTranscoder->configure(mMediaSampleReader, mTrackIndex, mDestinationFormat), in TEST_P()
154 ASSERT_TRUE(mTranscoder->start()); in TEST_P()
167 EXPECT_EQ(mTranscoder->configure(mMediaSampleReader, mTrackIndex, mDestinationFormat), in TEST_P()
169 EXPECT_TRUE(mTranscoder->start()); in TEST_P()
171 mTranscoder->stop(); in TEST_P()
[all …]
/frameworks/av/media/module/libmediatranscoding/tests/
DTranscodingSessionController_tests.cpp296 mTranscoder.reset(new TestTranscoder()); in SetUp()
310 EXPECT_EQ(mTranscoder.use_count(), 1); in SetUp()
311 mTranscoder->onCreated(); in SetUp()
312 return mTranscoder; in SetUp()
320 mClientCallback0 = ::ndk::SharedRefBase::make<TestClientCallback>(mTranscoder.get(), in SetUp()
322 mClientCallback1 = ::ndk::SharedRefBase::make<TestClientCallback>(mTranscoder.get(), in SetUp()
324 mClientCallback2 = ::ndk::SharedRefBase::make<TestClientCallback>(mTranscoder.get(), in SetUp()
326 mClientCallback3 = ::ndk::SharedRefBase::make<TestClientCallback>(mTranscoder.get(), in SetUp()
333 EXPECT_EQ(mTranscoder->popEvent(2900000), TestTranscoder::NoEvent); in expectTimeout()
334 EXPECT_EQ(mTranscoder->popEvent(200000), TestTranscoder::Abandon(clientId, sessionId)); in expectTimeout()
[all …]
/frameworks/av/media/module/libmediatranscoding/
DTranscoderWrapper.cpp280 if (mTranscoder != nullptr && clientId == mCurrentClientId && in stop()
283 media_status_t err = mTranscoder->cancel(); in stop()
305 if (mTranscoder != nullptr && clientId == mCurrentClientId && in onFinish()
323 if (mTranscoder != nullptr && clientId == mCurrentClientId && in onError()
365 if (mTranscoder != nullptr) { in setupTranscoder()
411 mTranscoder = MediaTranscoder::create(mTranscoderCb, mHeartBeatIntervalUs, request.clientPid, in setupTranscoder()
413 if (mTranscoder == nullptr) { in setupTranscoder()
421 media_status_t err = mTranscoder->configureSource(srcFdInt); in setupTranscoder()
430 std::vector<std::shared_ptr<AMediaFormat>> trackFormats = mTranscoder->getTrackFormats(); in setupTranscoder()
451 err = mTranscoder->configureTrackFormat(i, format.get()); in setupTranscoder()
[all …]
DTranscodingSessionController.cpp509 if (mTranscoder == nullptr) { in updateCurrentSession_l()
510 mTranscoder = mTranscoderFactory(shared_from_this()); in updateCurrentSession_l()
526 mTranscoder->pause(curSession->key.first, curSession->key.second); in updateCurrentSession_l()
559 mTranscoder->start(topSession->key.first, topSession->key.second, topSession->request, in updateCurrentSession_l()
563 mTranscoder->resume(topSession->key.first, topSession->key.second, topSession->request, in updateCurrentSession_l()
804 mTranscoder->stop(it->first, it->second); in cancel()
964 mTranscoder->stop(clientId, sessionId, true /*abandon*/); in onError()
966 mTranscoder = nullptr; in onError()
967 mTranscoder = mTranscoderFactory(shared_from_this()); in onError()
1085 mTranscoder->stop(it->first, it->second); in onUidGone()
/frameworks/av/media/module/libmediatranscoding/transcoder/
DVideoTrackTranscoder.cpp99 : mCodec(codec), mTranscoder(transcoder), mCodecStarted(false) {} in CodecWrapper()
108 std::shared_ptr<VideoTrackTranscoder> getTranscoder() const { return mTranscoder.lock(); }; in getTranscoder()
113 std::weak_ptr<VideoTrackTranscoder> mTranscoder; member in android::VideoTrackTranscoder::CodecWrapper
/frameworks/av/media/module/libmediatranscoding/include/media/
DTranscoderWrapper.h81 std::shared_ptr<MediaTranscoder> mTranscoder; variable
DTranscodingSessionController.h169 std::shared_ptr<TranscoderInterface> mTranscoder; variable