Lines Matching refs:index

195             int index = mAvailableInputBuffers.remove();  in writeSample()  local
196 ByteBuffer buffer = mInputBuffers[index]; in writeSample()
213 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample()
215 mDecoder.queueSecureInputBuffer(index, 0, crypto, presentationTimeUs, flags); in writeSample()
250 int index = mAvailableInputBuffers.remove(); in writeSample() local
251 ByteBuffer buffer = mInputBuffers[index]; in writeSample()
262 mDecoder.queueInputBuffer(index, 0, size, presentationTimeUs, flags); in writeSample()
265 mDecoder.queueSecureInputBuffer(index, 0, cryptoInfo, presentationTimeUs, flags); in writeSample()
286 int index = mAvailableOutputBuffers.peek(); in peekSample() local
287 MediaCodec.BufferInfo info = mOutputBufferInfo[index]; in peekSample()
312 int index = mAvailableOutputBuffers.remove(); in popSample() local
315 ByteBuffer buffer = mOutputBuffers[index]; in popSample()
316 MediaCodec.BufferInfo info = mOutputBufferInfo[index]; in popSample()
321 mDecoder.releaseOutputBuffer(index, render); in popSample()
331 int index; in update() local
335 while ((index = mDecoder.dequeueInputBuffer(0)) != MediaCodec.INFO_TRY_AGAIN_LATER) { in update()
336 mAvailableInputBuffers.add(index); in update()
343 … while ((index = mDecoder.dequeueOutputBuffer(info, 0)) != MediaCodec.INFO_TRY_AGAIN_LATER) { in update()
344 switch (index) { in update()
368 if(index >= 0) { in update()
369 mOutputBufferInfo[index] = info; in update()
370 mAvailableOutputBuffers.add(index); in update()