Home
last modified time | relevance | path

Searched refs:inputBufferId (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DDecoder.java121 @NonNull MediaCodec mediaCodec, int inputBufferId) { in decode()
124 onInputAvailable(inputBufferId, mediaCodec); in decode()
180 int inputBufferId = mCodec.dequeueInputBuffer(kQueueDequeueTimeoutUs); in decode() local
181 if (inputBufferId < 0 && inputBufferId != MediaCodec.INFO_TRY_AGAIN_LATER) { in decode()
184 + " returned invalid index : " + inputBufferId); in decode()
188 onInputAvailable(inputBufferId, mCodec); in decode()
262 private void onInputAvailable(int inputBufferId, MediaCodec mediaCodec) { in onInputAvailable() argument
263 if ((inputBufferId >= 0) && !mSawInputEOS) { in onInputAvailable()
264 ByteBuffer inputCodecBuffer = mediaCodec.getInputBuffer(inputBufferId); in onInputAvailable()
273 mediaCodec.queueInputBuffer(inputBufferId, bufInfo.offset, bufInfo.size, in onInputAvailable()
DEncoder.java154 int inputBufferId) { in encode()
157 onInputAvailable(mediaCodec, inputBufferId); in encode()
208 int inputBufferId = mCodec.dequeueInputBuffer(kQueueDequeueTimeoutUs); in encode() local
209 if (inputBufferId < 0 && inputBufferId != MediaCodec.INFO_TRY_AGAIN_LATER) { in encode()
211 inputBufferId); in encode()
215 onInputAvailable(mCodec, inputBufferId); in encode()
268 private void onInputAvailable(MediaCodec mediaCodec, int inputBufferId) throws IOException { in onInputAvailable() argument
269 if (mSawInputEOS || inputBufferId < 0) { in onInputAvailable()
280 ByteBuffer inputBuffer = mCodec.getInputBuffer(inputBufferId); in onInputAvailable()
317 mediaCodec.queueInputBuffer(inputBufferId, 0, bytesToRead, presentationTimeUs, flag); in onInputAvailable()