Lines Matching refs:bufferIndex

48     bool enqueueInput(size_t bufferIndex) override;
49 bool dequeueOutput(size_t bufferIndex, AMediaCodecBufferInfo* bufferInfo) override;
51 bool enqueueCodecConfig(int32_t bufferIndex);
162 bool CodecDecoderTest::enqueueCodecConfig(int32_t bufferIndex) { in enqueueCodecConfig() argument
164 uint8_t* buf = AMediaCodec_getInputBuffer(mCodec, bufferIndex, &bufSize); in enqueueCodecConfig()
177 CHECK_STATUS(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, csdSize, 0, flags), in enqueueCodecConfig()
182 bool CodecDecoderTest::enqueueInput(size_t bufferIndex) { in enqueueInput() argument
184 return enqueueEOS(bufferIndex); in enqueueInput()
188 uint8_t* buf = AMediaCodec_getInputBuffer(mCodec, bufferIndex, &bufSize); in enqueueInput()
207 CHECK_STATUS(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, size, pts, flags), in enqueueInput()
209 ALOGV("input: id: %zu size: %zu pts: %d flags: %d", bufferIndex, size, (int)pts, flags); in enqueueInput()
218 bool CodecDecoderTest::dequeueOutput(size_t bufferIndex, AMediaCodecBufferInfo* info) { in dequeueOutput() argument
225 uint8_t* buf = AMediaCodec_getOutputBuffer(mCodec, bufferIndex, &buffSize); in dequeueOutput()
232 ALOGV("output: id: %zu size: %d pts: %d flags: %d", bufferIndex, info->size, in dequeueOutput()
234 CHECK_STATUS(AMediaCodec_releaseOutputBuffer(mCodec, bufferIndex, mWindow != nullptr), in dequeueOutput()
245 if (element.bufferIndex >= 0) { in queueCodecConfig()
246 isOk = enqueueCodecConfig(element.bufferIndex); in queueCodecConfig()
250 int bufferIndex; in queueCodecConfig() local
252 bufferIndex = AMediaCodec_dequeueInputBuffer(mCodec, -1); in queueCodecConfig()
253 if (bufferIndex >= 0) { in queueCodecConfig()
254 isOk = enqueueCodecConfig(bufferIndex); in queueCodecConfig()
256 ALOGE("unexpected return value from *_dequeueInputBuffer: %d", (int)bufferIndex); in queueCodecConfig()