Home
last modified time | relevance | path

Searched refs:inputBuffer (Results 1 – 22 of 22) sorted by relevance

/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecDecoderMultiAccessUnitDrmTestBase.java110 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
111 Assert.assertNotNull("error, getInputBuffer returned null.\n", inputBuffer); in enqueueInput()
127 if (offset + size <= inputBuffer.capacity()) { in enqueueInput()
128 mExtractor.readSampleData(inputBuffer, offset); in enqueueInput()
133 + "queue input", size, inputBuffer.capacity())); in enqueueInput()
DCodecDecoderMultiAccessUnitTestBase.java93 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
95 inputBuffer); in enqueueInput()
108 if (offset + size <= inputBuffer.capacity()) { in enqueueInput()
109 mExtractor.readSampleData(inputBuffer, offset); in enqueueInput()
114 + "queue input", size, inputBuffer.capacity())); in enqueueInput()
DCodecDecoderTestBase.java193 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueCodecConfig() local
195 inputBuffer.put((ByteBuffer) csdBuffer.rewind()); in enqueueCodecConfig()
207 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
208 mExtractor.readSampleData(inputBuffer, 0); in enqueueInput()
237 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
240 inputBuffer.put(buffer.get()); in enqueueInput()
DCodecEncoderTestBase.java422 void fillByteBuffer(ByteBuffer inputBuffer) { in fillByteBuffer() argument
440 inputBuffer.position( in fillByteBuffer()
443 inputBuffer.put(mInputData, in fillByteBuffer()
458 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
468 size = Math.min(inputBuffer.capacity(), mInputData.length - mInputBufferReadOffset); in enqueueInput()
471 inputBuffer.put(mInputData, mInputBufferReadOffset, size); in enqueueInput()
DCodecDecoderDrmTestBase.java206 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
207 mExtractor.readSampleData(inputBuffer, 0); in enqueueInput()
DCodecEncoderSurfaceTestBase.java284 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput() local
285 mExtractor.readSampleData(inputBuffer, 0); in enqueueDecoderInput()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DVideoDecoderCallback.java53 ByteBuffer inputBuffer = codec.getInputBuffer(index); in onInputBufferAvailable() local
54 int sampleSize = mVideoExtractor.readSampleData(inputBuffer, 0); in onInputBufferAvailable()
DDecodeOnlyTest.java255 ByteBuffer inputBuffer = videoCodec.getInputBuffer(index); in testNonTunneledTrickPlay()
256 int sampleSize = videoExtractor.readSampleData(inputBuffer, 0); in testNonTunneledTrickPlay()
370 ByteBuffer inputBuffer = videoCodec.getInputBuffer(index); in testTunneledTrickPlay()
371 int sampleSize = videoExtractor.readSampleData(inputBuffer, 0); in testTunneledTrickPlay()
510 ByteBuffer inputBuffer = codec.getInputBuffer(index); in testTunneledPerfectSeek()
511 int sampleSize = videoExtractor.readSampleData(inputBuffer, 0); in testTunneledPerfectSeek()
DHDRDecoderTest.java349 ByteBuffer inputBuffer = codec.getInputBuffer(index); in testHdrMetadata()
356 int size = mExtractor.readSampleData(inputBuffer, 0); in testHdrMetadata()
525 ByteBuffer inputBuffer = codec.getInputBuffer(index); in testHdrToSdr()
532 int size = mExtractor.readSampleData(inputBuffer, 0); in testHdrToSdr()
DDecoderRenderTest.java398 ByteBuffer inputBuffer = videoCodec.getInputBuffer(ipBufferId); in primeVideoPipeline() local
399 int sampleSize = videoExtractor.readSampleData(inputBuffer, 0); in primeVideoPipeline()
DDecodeAccuracyTestBase.java305 ByteBuffer inputBuffer; in queueDecoderInputBuffer() local
310 inputBuffer = inputBufferArray[inputBufferIndex]; in queueDecoderInputBuffer()
312 inputBuffer = decoder.getInputBuffer(inputBufferIndex); in queueDecoderInputBuffer()
314 final int sampleSize = extractor.readSampleData(inputBuffer, 0); in queueDecoderInputBuffer()
/cts/tests/mediapc/src/android/mediapc/cts/
DAudioPlaybackLoad.java108 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
109 int size = mExtractor.readSampleData(inputBuffer, 0); in enqueueInput()
DCodecTestBase.java699 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
700 int size = mExtractor.readSampleData(inputBuffer, 0); in enqueueInput()
836 void fillByteBuffer(ByteBuffer inputBuffer) { in fillByteBuffer() argument
854 inputBuffer.position(offset + (k + j) * width + i); in fillByteBuffer()
855 inputBuffer.put(mInputData, frmOffset + j * tileWidth, colsToCopy); in fillByteBuffer()
865 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
874 size = Math.min(inputBuffer.capacity(), mInputData.length - mNumBytesSubmitted); in enqueueInput()
875 inputBuffer.put(mInputData, mNumBytesSubmitted, size); in enqueueInput()
893 inputBuffer.put(mInputData, mNumBytesSubmitted, size); in enqueueInput()
895 fillByteBuffer(inputBuffer); in enqueueInput()
DCodecTranscoderTestBase.java158 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput() local
159 int size = mExtractor.readSampleData(inputBuffer, 0); in enqueueDecoderInput()
658 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput() local
659 int size = mExtractor.readSampleData(inputBuffer, 0); in enqueueDecoderInput()
/cts/tests/media/jni/
DNativeCodecEncoderTest.cpp63 void fillByteBuffer(uint8_t* inputBuffer);
170 void CodecEncoderTest::fillByteBuffer(uint8_t* inputBuffer) { in fillByteBuffer() argument
201 memcpy(inputBuffer + (offset + (k + j) * width + i), in fillByteBuffer()
221 uint8_t* inputBuffer = AMediaCodec_getInputBuffer(mCodec, bufferIndex, &buffSize); in enqueueInput() local
222 RETURN_IF_NULL(inputBuffer, std::string{"AMediaCodec_getInputBuffer returned nullptr"}) in enqueueInput()
226 memcpy(inputBuffer, mInputData + mInputBufferReadOffset, size); in enqueueInput()
245 memcpy(inputBuffer, mInputData + mInputBufferReadOffset, size); in enqueueInput()
247 fillByteBuffer(inputBuffer); in enqueueInput()
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DVideoDecodingWrapper.java184 ByteBuffer inputBuffer = checkNotNull(mediaCodec.getInputBuffer(inputBufferIndex)); in queueOneFrameToDecoder() local
185 int sampleSize = mediaExtractor.readSampleData(inputBuffer, /* offset= */ 0); in queueOneFrameToDecoder()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecTest.java1101 ByteBuffer inputBuffer = encoder.getInputBuffer(inputIndex);; in feedEncoder() local
1102 for (int i = 0; i < inputBuffer.capacity() / 2; i++) { in feedEncoder()
1103 inputBuffer.putShort((short)i); in feedEncoder()
1105 encoder.queueInputBuffer(inputIndex, 0, inputBuffer.limit(), 0, 0); in feedEncoder()
1913 ByteBuffer inputBuffer = inputBuffers[inputIndex]; in runAudioEncoding() local
1914 inputBuffer.rewind(); in runAudioEncoding()
1915 inputBuffer.put(source); in runAudioEncoding()
1918 encoder.queueInputBuffer(inputIndex, 0, inputBuffer.limit(), 0, 0); in runAudioEncoding()
2474 ByteBuffer inputBuffer = codec.getInputBuffer(inputIndex); in doFlushAfterFirstBuffer() local
2476 inputBuffer.clear(); in doFlushAfterFirstBuffer()
[all …]
DEncodeVirtualDisplayWithCompositionTestImpl.java232 ByteBuffer inputBuffer = mDecoderInputBuffers[inputBufferIndex]; in doTestRenderingOutput()
233 inputBuffer.clear(); in doTestRenderingOutput()
234 inputBuffer.put(data); in doTestRenderingOutput()
DVideoCodecTestBase.java1205 ByteBuffer inputBuffer = mCodec.getInputBuffer(mInputBufIndex); in feedInputInternal() local
1206 inputBuffer.clear(); in feedInputInternal()
1207 inputBuffer.put(encFrame); in feedInputInternal()
1208 inputBuffer.rewind(); in feedInputInternal()
/cts/tests/tests/media/extractor/src/android/media/extractor/cts/
DMediaExtractorTest.java694 final ByteBuffer inputBuffer = ByteBuffer.allocate((int)size); in read() local
695 final int red = mExtractor.readSampleData(inputBuffer, 0 /* offset */); // sic in read()
697 assertEquals("position must be zero", 0, inputBuffer.position()); in read()
698 assertEquals("limit must be read bytes", red, inputBuffer.limit()); in read()
700 return inputBuffer; in read()
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java765 ByteBuffer inputBuffer = ByteBuffer.wrap( in assertKatOneShotTransformUsingDoFinal() local
771 assertEquals(expectedOutput.length, doFinal(inputBuffer, actualOutputBuffer)); in assertKatOneShotTransformUsingDoFinal()
772 assertEquals(0, inputBuffer.remaining()); in assertKatOneShotTransformUsingDoFinal()
1343 ByteBuffer inputBuffer = ByteBuffer.wrap(buffer, inputOffsetInBuffer, input.length); in assertUpdateCopySafe() local
1348 outputLength = update(inputBuffer, outputBuffer); in assertUpdateCopySafe()
1421 ByteBuffer inputBuffer = ByteBuffer.wrap(buffer, inputOffsetInBuffer, input.length); in assertDoFinalCopySafe() local
1426 assertEquals(expectedOutput.length, doFinal(inputBuffer, outputBuffer)); in assertDoFinalCopySafe()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecCryptoAsyncHelper.java108 ByteBuffer inputBuffer = codec.getInputBuffer(index); in onInputSlot()
109 final int sampleSize = mExtractor.readSampleData(inputBuffer, 0); in onInputSlot()