Home
last modified time | relevance | path

Searched refs:outIdx (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.cpp199 ssize_t outIdx = AMediaCodec_dequeueOutputBuffer(mCodec, &info, kQueueDequeueTimeoutUs); in decode() local
200 if (outIdx == AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED) { in decode()
204 } else if (outIdx >= 0) { in decode()
206 onOutputAvailable(mCodec, outIdx, &info); in decode()
207 } else if (!(outIdx == AMEDIACODEC_INFO_TRY_AGAIN_LATER || in decode()
208 outIdx == AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED)) { in decode()
209 ALOGE("AMediaCodec_dequeueOutputBuffer returned invalid index %zd\n", outIdx); in decode()
210 mErrorCode = (media_status_t)outIdx; in decode()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.cpp273 ssize_t outIdx = AMediaCodec_dequeueOutputBuffer(mCodec, &info, kQueueDequeueTimeoutUs); in encode() local
274 if (outIdx == AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED) { in encode()
278 } else if (outIdx >= 0) { in encode()
280 onOutputAvailable(mCodec, outIdx, &info); in encode()
281 } else if (!(outIdx == AMEDIACODEC_INFO_TRY_AGAIN_LATER || in encode()
282 outIdx == AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED)) { in encode()
283 ALOGE("AMediaCodec_dequeueOutputBuffer returned invalid index %zd\n", outIdx); in encode()
284 mErrorCode = (media_status_t)outIdx; in encode()
/frameworks/base/core/java/com/android/internal/util/
DRingBuffer.java104 int outIdx = out.length - 1; in toArray() local
105 while (outIdx >= 0) { in toArray()
106 out[outIdx--] = (T) mBuffer[indexOf(inCursor--)]; in toArray()
DArrayUtils.java886 int outIdx = 0; in filterNotNull() local
889 result[outIdx++] = val[i]; in filterNotNull()
922 int outIdx = 0; in filter() local
925 result[outIdx++] = items[i]; in filter()