Home
last modified time | relevance | path

Searched refs:inputBufIndex (Results 1 – 16 of 16) sorted by relevance

/cts/tests/video/src/android/video/cts/
DCodecDecoderPerformanceTestBase.java67 int inputBufIndex = mDecoder.dequeueInputBuffer(Q_DEQ_TIMEOUT_US); in doWork() local
68 if (inputBufIndex >= 0) { in doWork()
69 enqueueDecoderInput(inputBufIndex); in doWork()
DCodecEncoderPerformanceTestBase.java173 int inputBufIndex = mDecoder.dequeueInputBuffer(Q_DEQ_TIMEOUT_US); in doWork() local
174 if (inputBufIndex >= 0) { in doWork()
175 enqueueDecoderInput(inputBufIndex); in doWork()
DVideoEncoderDecoderTest.java880 int inputBufIndex = codec.dequeueInputBuffer(VIDEO_CODEC_WAIT_TIME_US); in runDecoder() local
882 if (inputBufIndex >= 0) { in runDecoder()
883 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex]; in runDecoder()
896 inputBufIndex, in runDecoder()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderTestAacFormat.java208 int inputBufIndex = decoder.dequeueInputBuffer(kTimeOutUs); in decodeUpdateFormat() local
210 if (inputBufIndex >= 0) { in decodeUpdateFormat()
211 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex]; in decodeUpdateFormat()
227 inputBufIndex, in decodeUpdateFormat()
DVideoDecoderPerfTest.java318 int inputBufIndex = codec.dequeueInputBuffer(kTimeOutUs); in doDecode() local
320 if (inputBufIndex >= 0) { in doDecode()
321 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex]; in doDecode()
339 inputBufIndex, in doDecode()
346 … "codec.dequeueInputBuffer() unrecognized return value: " + inputBufIndex, in doDecode()
347 MediaCodec.INFO_TRY_AGAIN_LATER, inputBufIndex); in doDecode()
DDecoderTestAacDrc.java624 int inputBufIndex = codec.dequeueInputBuffer(kTimeOutUs); in decodeToMemory() local
626 if (inputBufIndex >= 0) { in decodeToMemory()
627 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex]; in decodeToMemory()
649 inputBufIndex, in decodeToMemory()
DImageReaderDecoderTest.java461 int inputBufIndex = decoder.dequeueInputBuffer(DEFAULT_TIMEOUT_US); in decodeFramesToImage() local
462 if (inputBufIndex >= 0) { in decodeFramesToImage()
463 ByteBuffer dstBuf = decoderInputBuffers[inputBufIndex]; in decodeFramesToImage()
468 + inputBufIndex + "/" + sampleSize); in decodeFramesToImage()
481 inputBufIndex, in decodeFramesToImage()
DDecoderTest.java1759 int inputBufIndex = codec.dequeueInputBuffer(kTimeOutUs);
1761 if (inputBufIndex >= 0) {
1762 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex];
1784 inputBufIndex,
1892 int inputBufIndex = codec.dequeueInputBuffer(-1);
1893 if (inputBufIndex < 0) {
1898 codecInputBuffers[inputBufIndex].put(csd);
1900 inputBufIndex,
2804 int inputBufIndex = codec.dequeueInputBuffer(kTimeOutUs);
2806 if (inputBufIndex >= 0) {
[all …]
DDecoderTestXheAac.java1392 int inputBufIndex = codec.dequeueInputBuffer(kTimeOutUs);
1394 if (inputBufIndex >= 0) {
1395 ByteBuffer dstBuf = codecInputBuffers[inputBufIndex];
1419 inputBufIndex,
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeDecodeTest.java570 int inputBufIndex = encoder.dequeueInputBuffer(TIMEOUT_USEC); in doEncodeDecodeVideoFromBuffer() local
571 if (VERBOSE) Log.d(TAG, "inputBufIndex=" + inputBufIndex); in doEncodeDecodeVideoFromBuffer()
572 if (inputBufIndex >= 0) { in doEncodeDecodeVideoFromBuffer()
578 encoder.queueInputBuffer(inputBufIndex, 0, 0, ptsUsec, in doEncodeDecodeVideoFromBuffer()
585 ByteBuffer inputBuf = encoder.getInputBuffer(inputBufIndex); in doEncodeDecodeVideoFromBuffer()
591 encoder.queueInputBuffer(inputBufIndex, 0, frameData.length, ptsUsec, 0); in doEncodeDecodeVideoFromBuffer()
659 int inputBufIndex = decoder.dequeueInputBuffer(TIMEOUT_USEC); in doEncodeDecodeVideoFromBuffer() local
660 if (inputBufIndex >= 0) { in doEncodeDecodeVideoFromBuffer()
661 ByteBuffer inputBuf = decoderInputBuffers[inputBufIndex]; in doEncodeDecodeVideoFromBuffer()
664 decoder.queueInputBuffer(inputBufIndex, 0, info.size, in doEncodeDecodeVideoFromBuffer()
[all …]
DDecodeEditEncodeTest.java656 int inputBufIndex = decoder.dequeueInputBuffer(TIMEOUT_USEC); in editVideoData() local
657 if (inputBufIndex >= 0) { in editVideoData()
660 decoder.queueInputBuffer(inputBufIndex, 0, 0, 0L, in editVideoData()
667 ByteBuffer inputBuf = decoderInputBuffers[inputBufIndex]; in editVideoData()
672 decoder.queueInputBuffer(inputBufIndex, 0, inputBuf.position(), in editVideoData()
851 int inputBufIndex = decoder.dequeueInputBuffer(TIMEOUT_USEC); in checkVideoData() local
852 if (inputBufIndex >= 0) { in checkVideoData()
855 decoder.queueInputBuffer(inputBufIndex, 0, 0, 0L, in checkVideoData()
862 ByteBuffer inputBuf = decoderInputBuffers[inputBufIndex]; in checkVideoData()
867 decoder.queueInputBuffer(inputBufIndex, 0, inputBuf.position(), in checkVideoData()
DEncodeVirtualDisplayTest.java467 int inputBufIndex = decoder.dequeueInputBuffer(-1); in doTestEncodeVirtual() local
468 ByteBuffer inputBuf = decoderInputBuffers[inputBufIndex]; in doTestEncodeVirtual()
471 decoder.queueInputBuffer(inputBufIndex, 0, info.size, in doTestEncodeVirtual()
DVideoCodecTestBase.java655 int inputBufIndex = decoder.dequeueInputBuffer(DEFAULT_DEQUEUE_TIMEOUT_US); in decode() local
656 if (inputBufIndex >= 0) { in decode()
664 inputBuffers[inputBufIndex].clear(); in decode()
665 inputBuffers[inputBufIndex].put(frame); in decode()
666 inputBuffers[inputBufIndex].rewind(); in decode()
670 inputBufIndex, in decode()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingTestUtil.java246 int inputBufIndex = codec.dequeueInputBuffer(kTimeOutUs); in decodeMp4ToYuv() local
248 if (inputBufIndex >= 0) { in decodeMp4ToYuv()
249 ByteBuffer dstBuf = inputBuffers[inputBufIndex]; in decodeMp4ToYuv()
262 inputBufIndex, in decodeMp4ToYuv()
267 } else if (inputBufIndex == MediaCodec.INFO_TRY_AGAIN_LATER) { in decodeMp4ToYuv()
272 "Unrecognized dequeueInputBuffer() return value: " + inputBufIndex); in decodeMp4ToYuv()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundPlayerObject.java152 final int inputBufIndex = mCodec.dequeueInputBuffer(TIME_OUT_US); in run() local
153 if (inputBufIndex >= 0) { in run()
154 ByteBuffer encodedBuf = mCodec.getInputBuffer(inputBufIndex); in run()
165 mCodec.queueInputBuffer(inputBufIndex, 0/*offset*/, in run()
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoDecodeEditEncodeTest.java514 int inputBufIndex = decoder.dequeueInputBuffer(Q_DEQ_TIMEOUT_US); in editVideoData() local
515 if (inputBufIndex >= 0) { in editVideoData()
518 decoder.queueInputBuffer(inputBufIndex, 0, 0, 0L, in editVideoData()
527 ByteBuffer inputBuf = decoderInputBuffers[inputBufIndex]; in editVideoData()
532 decoder.queueInputBuffer(inputBufIndex, 0, inputBuf.position(), in editVideoData()