Searched refs:bufIdx (Results 1 – 3 of 3) sorted by relevance
/frameworks/av/media/tests/benchmark/src/native/decoder/ |
D | Decoder.cpp | 44 void Decoder::onInputAvailable(AMediaCodec *mediaCodec, int32_t bufIdx) { in onInputAvailable() argument 47 if (mSawInputEOS || bufIdx < 0) return; in onInputAvailable() 55 uint8_t *buf = AMediaCodec_getInputBuffer(mCodec, bufIdx, &bufSize); in onInputAvailable() 79 media_status_t status = AMediaCodec_queueInputBuffer(mCodec, bufIdx, 0 /* offset */, in onInputAvailable() 92 void Decoder::onOutputAvailable(AMediaCodec *mediaCodec, int32_t bufIdx, in onOutputAvailable() argument 96 if (mSawOutputEOS || bufIdx < 0) return; in onOutputAvailable() 105 uint8_t *buf = AMediaCodec_getOutputBuffer(mCodec, bufIdx, &bufSize); in onOutputAvailable() 112 AMediaCodec_releaseOutputBuffer(mCodec, bufIdx, false); in onOutputAvailable() 115 ALOGV("%s index : %d mSawOutputEOS : %s count : %u", __FUNCTION__, bufIdx, in onOutputAvailable()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | Encoder.cpp | 24 void Encoder::onInputAvailable(AMediaCodec *mediaCodec, int32_t bufIdx) { in onInputAvailable() argument 27 if (mSawInputEOS || bufIdx < 0) return; in onInputAvailable() 35 char *buf = (char *)AMediaCodec_getInputBuffer(mCodec, bufIdx, &bufSize); in onInputAvailable() 104 media_status_t status = AMediaCodec_queueInputBuffer(mCodec, bufIdx, 0 /* offset */, in onInputAvailable() 117 void Encoder::onOutputAvailable(AMediaCodec *mediaCodec, int32_t bufIdx, in onOutputAvailable() argument 121 if (mSawOutputEOS || bufIdx < 0) return; in onOutputAvailable() 129 AMediaCodec_releaseOutputBuffer(mCodec, bufIdx, false); in onOutputAvailable() 132 ALOGV("%s index : %d mSawOutputEOS : %s count : %u", __FUNCTION__, bufIdx, in onOutputAvailable()
|
/frameworks/av/media/codec2/hal/common/ |
D | MultiAccessUnitHelper.cpp | 639 for (int bufIdx = 0; bufIdx < (*worklet)->output.buffers.size(); ++bufIdx) { in processWorklets() local 640 std::shared_ptr<C2Buffer>& buffer = (*worklet)->output.buffers[bufIdx]; in processWorklets()
|