Lines Matching refs:transcoder
145 void MediaTranscoder::onTrackFormatAvailable(const MediaTrackTranscoder* transcoder) { in onTrackFormatAvailable() argument
146 LOG(DEBUG) << "TrackTranscoder " << transcoder << " format available."; in onTrackFormatAvailable()
152 if (mTracksAdded.count(transcoder) > 0) { in onTrackFormatAvailable()
157 auto consumer = mSampleWriter->addTrack(transcoder->getOutputFormat()); in onTrackFormatAvailable()
169 MediaTrackTranscoder* mutableTranscoder = const_cast<MediaTrackTranscoder*>(transcoder); in onTrackFormatAvailable()
172 mTracksAdded.insert(transcoder); in onTrackFormatAvailable()
201 void MediaTranscoder::onTrackFinished(const MediaTrackTranscoder* transcoder) { in onTrackFinished() argument
202 LOG(DEBUG) << "TrackTranscoder " << transcoder << " finished"; in onTrackFinished()
203 onThreadFinished(static_cast<const void*>(transcoder), AMEDIA_OK, false /* stopped */); in onTrackFinished()
206 void MediaTranscoder::onTrackStopped(const MediaTrackTranscoder* transcoder) { in onTrackStopped() argument
207 LOG(DEBUG) << "TrackTranscoder " << transcoder << " stopped"; in onTrackStopped()
208 onThreadFinished(static_cast<const void*>(transcoder), AMEDIA_OK, true /* stopped */); in onTrackStopped()
211 void MediaTranscoder::onTrackError(const MediaTrackTranscoder* transcoder, media_status_t status) { in onTrackError() argument
212 LOG(ERROR) << "TrackTranscoder " << transcoder << " returned error " << status; in onTrackError()
213 onThreadFinished(static_cast<const void*>(transcoder), status, false /* stopped */); in onTrackError()
306 std::shared_ptr<MediaTrackTranscoder> transcoder; in configureTrackFormat() local
310 transcoder = std::make_shared<PassthroughTrackTranscoder>(shared_from_this()); in configureTrackFormat()
336 transcoder = VideoTrackTranscoder::create(shared_from_this(), mPid, mUid); in configureTrackFormat()
351 status = transcoder->configure(mSampleReader, trackIndex, trackFormat); in configureTrackFormat()
360 mThreadStates[static_cast<const void*>(transcoder.get())] = PENDING; in configureTrackFormat()
362 mTrackTranscoders.emplace_back(std::move(transcoder)); in configureTrackFormat()
404 for (auto& transcoder : mTrackTranscoders) { in start() local
405 if (!(started = transcoder->start())) { in start()
408 mThreadStates[static_cast<const void*>(transcoder.get())] = RUNNING; in start()
432 for (auto& transcoder : mTrackTranscoders) { in requestStop() local
433 transcoder->stop(stopOnSync); in requestStop()