Searched refs:bufferIndex (Results 1 – 1 of 1) sorted by relevance
87 val bufferIndex = encoder.dequeueOutputBuffer(bufferInfo, TIMEOUT_MS) in run() constant88 if (bufferIndex == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { in run()90 } else if (bufferIndex >= 0) { in run()91 val timestampMonotonicUs = writeSample(bufferIndex, bufferInfo) in run()117 private fun writeSample(bufferIndex: Int, bufferInfo: MediaCodec.BufferInfo): Long { in writeSample()118 val data = encoder.getOutputBuffer(bufferIndex) in writeSample()124 encoder.getOutputBuffer(bufferIndex) ?: error("Unable to acquire next frame") in writeSample()129 encoder.releaseOutputBuffer(bufferIndex, false) in writeSample()