Lines Matching refs:bufferInfo
134 AMediaCodecBufferInfo bufferInfo = *bufferInfoPtr; in onAsyncOutputAvailable() local
136 transcoder->mCodecMessageQueue.push([transcoder, index, codec, bufferInfo] { in onAsyncOutputAvailable()
138 transcoder->transferBuffer(index, bufferInfo); in onAsyncOutputAvailable()
140 transcoder->dequeueOutputSample(index, bufferInfo); in onAsyncOutputAvailable()
453 void VideoTrackTranscoder::transferBuffer(int32_t bufferIndex, AMediaCodecBufferInfo bufferInfo) { in transferBuffer() argument
455 bool needsRender = bufferInfo.size > 0; in transferBuffer()
459 if (bufferInfo.flags & AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM) { in transferBuffer()
470 AMediaCodecBufferInfo bufferInfo) { in dequeueOutputSample() argument
483 buffer, bufferInfo.offset, bufferIndex, bufferReleaseCallback); in dequeueOutputSample()
484 sample->info.size = bufferInfo.size; in dequeueOutputSample()
485 sample->info.flags = bufferInfo.flags; in dequeueOutputSample()
486 sample->info.presentationTimeUs = bufferInfo.presentationTimeUs; in dequeueOutputSample()
488 if (bufferInfo.size > 0 && (bufferInfo.flags & SAMPLE_FLAG_CODEC_CONFIG) == 0) { in dequeueOutputSample()
496 if (bufferInfo.flags & AMEDIACODEC_BUFFER_FLAG_END_OF_STREAM) { in dequeueOutputSample()