Home
last modified time | relevance | path

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

/cts/tests/tests/media/decoder/jni/
Dnative-media-jni.cpp346 ssize_t bufidx; in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative() local
348 bufidx = callbackData[t].getInputBufferId(); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
350 bufidx = AMediaCodec_dequeueInputBuffer(codec[t], 5000); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
352 ALOGV("track %d, input buffer %zd", t, bufidx); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
353 if (bufidx >= 0) { in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
355 uint8_t *buf = AMediaCodec_getInputBuffer(codec[t], bufidx, &bufsize); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
366 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
376 int bufidx; in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative() local
378 bufidx = callbackData[tt].getInputBufferId(); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
380 bufidx = AMediaCodec_dequeueInputBuffer(codec[tt], 5000); in Java_android_media_decoder_cts_NativeDecoderTest_getDecodedDataNative()
[all …]
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DNativeDecoderTest.java229 int bufidx = codec[t].dequeueInputBuffer(5000); in getDecodedData() local
230 if (bufidx >= 0) { in getDecodedData()
231 Log.i("@@@@", "track " + t + " buffer " + bufidx); in getDecodedData()
232 ByteBuffer buf = inbuffers[t][bufidx]; in getDecodedData()
243 codec[t].queueInputBuffer(bufidx, 0, sampleSize, presentationTimeUs, in getDecodedData()
253 int bufidx = codec[tt].dequeueInputBuffer(5000); in getDecodedData() local
254 if (bufidx >= 0) { in getDecodedData()
255 codec[tt].queueInputBuffer(bufidx, 0, 0, 0, in getDecodedData()
DDecoderTest.java527 int bufidx = dec.dequeueInputBuffer(5000); in testBFrames() local
528 if (bufidx >= 0) { in testBFrames()
529 int n = ex.readSampleData(buf[bufidx], 0); in testBFrames()
535 dec.queueInputBuffer(bufidx, 0, n, time, flags); in testBFrames()
726 int bufidx = dec.dequeueInputBuffer(200 * 1000); in testColorAspects() local
727 if (bufidx >= 0) { in testColorAspects()
728 int n = ex.readSampleData(buf[bufidx], 0); in testColorAspects()
734 dec.queueInputBuffer(bufidx, 0, n, time, flags); in testColorAspects()
738 "codec.dequeueInputBuffer() unrecognized return value: " + bufidx, in testColorAspects()
739 MediaCodec.INFO_TRY_AGAIN_LATER, bufidx); in testColorAspects()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java2470 int bufidx = codec.dequeueInputBuffer(5000); in doStagefrightTestMediaCodec() local
2471 if (bufidx >= 0) { in doStagefrightTestMediaCodec()
2472 int n = ex.readSampleData(inputBuffers[bufidx], 0); in doStagefrightTestMediaCodec()
2478 codec.queueInputBuffer(bufidx, 0, n, time, flags); in doStagefrightTestMediaCodec()
2883 int bufidx = codec.dequeueInputBuffer(5000); in doStagefrightTestRawBlob() local
2884 if (bufidx >= 0) { in doStagefrightTestRawBlob()
2885 Log.i(TAG, "got input buffer of size " + inputBuffers[bufidx].capacity()); in doStagefrightTestRawBlob()
2886 inputBuffers[bufidx].rewind(); in doStagefrightTestRawBlob()
2887 inputBuffers[bufidx].put(blob, 0, numRead); in doStagefrightTestRawBlob()
2888 codec.queueInputBuffer(bufidx, 0, numRead, 0, 0); in doStagefrightTestRawBlob()
[all …]