Lines Matching refs:sample
153 return [self = shared_from_this(), trackIndex](const std::shared_ptr<MediaSample>& sample) { in addTrack() argument
154 self->addSampleToTrack(trackIndex, sample); in addTrack()
159 const std::shared_ptr<MediaSample>& sample) { in addSampleToTrack() argument
160 if (sample == nullptr) return; in addSampleToTrack()
166 mSampleQueue.push(std::make_pair(trackIndex, sample)); in addSampleToTrack()
263 std::shared_ptr<MediaSample> sample; in runWriterLoop() local
291 sample = topEntry.second; in runWriterLoop()
297 if (sample->info.flags & SAMPLE_FLAG_END_OF_STREAM) { in runWriterLoop()
309 sample->info.presentationTimeUs = track.mDurationUs + track.mFirstSampleTimeUs; in runWriterLoop()
313 track.mPrevSampleTimeUs = sample->info.presentationTimeUs; in runWriterLoop()
317 track.mFirstSampleTimeUs = sample->info.presentationTimeUs; in runWriterLoop()
321 bufferInfo.offset = sample->dataOffset; in runWriterLoop()
322 bufferInfo.size = sample->info.size; in runWriterLoop()
323 bufferInfo.flags = sample->info.flags; in runWriterLoop()
324 bufferInfo.presentationTimeUs = sample->info.presentationTimeUs; in runWriterLoop()
326 media_status_t status = mMuxer->writeSampleData(trackIndex, sample->buffer, &bufferInfo); in runWriterLoop()
331 sample.reset(); in runWriterLoop()