Lines Matching refs:bufferIndex
412 bool CodecTestBase::enqueueEOS(size_t bufferIndex) { in enqueueEOS() argument
414 CHECK_STATUS(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, 0, 0, in enqueueEOS()
430 if (element.bufferIndex >= 0) { in doWork()
432 isOk = enqueueInput(element.bufferIndex); in doWork()
435 isOk = dequeueOutput(element.bufferIndex, &element.bufferInfo); in doWork()
478 if (element.bufferIndex >= 0) { in queueEOS()
479 isOk = enqueueEOS(element.bufferIndex); in queueEOS()
484 int bufferIndex = AMediaCodec_dequeueInputBuffer(mCodec, -1); in queueEOS() local
485 if (bufferIndex >= 0) { in queueEOS()
486 isOk = enqueueEOS(bufferIndex); in queueEOS()
488 ALOGE("unexpected return value from *_dequeueInputBuffer: %d", (int)bufferIndex); in queueEOS()
501 if (element.bufferIndex >= 0) { in waitForAllOutputs()
502 isOk = dequeueOutput(element.bufferIndex, &element.bufferInfo); in waitForAllOutputs()