Home
last modified time | relevance | path

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

/cts/tests/media/src/android/mediav2/cts/
DCodecTestBase.java890 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueCodecConfig() local
892 inputBuffer.put((ByteBuffer) csdBuffer.rewind()); in enqueueCodecConfig()
904 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
905 mExtractor.readSampleData(inputBuffer, 0); in enqueueInput()
934 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
937 inputBuffer.put(buffer.get()); in enqueueInput()
1222 void fillByteBuffer(ByteBuffer inputBuffer) { in fillByteBuffer() argument
1240 inputBuffer.position(offset + (k + j) * width + i); in fillByteBuffer()
1241 inputBuffer.put(mInputData, frmOffset + j * tileWidth, colsToCopy); in fillByteBuffer()
1251 ByteBuffer inputBuffer = mCodec.getInputBuffer(bufferIndex); in enqueueInput() local
[all …]
DCodecEncoderSurfaceTest.java238 ByteBuffer inputBuffer = mDecoder.getInputBuffer(bufferIndex); in enqueueDecoderInput() local
239 mExtractor.readSampleData(inputBuffer, 0); in enqueueDecoderInput()
/cts/tests/tests/media/src/android/media/cts/
DMediaExtractorTest.java622 final ByteBuffer inputBuffer = ByteBuffer.allocate((int)size); in read() local
623 final int red = mExtractor.readSampleData(inputBuffer, 0 /* offset */); // sic in read()
625 assertEquals("position must be zero", 0, inputBuffer.position()); in read()
626 assertEquals("limit must be read bytes", red, inputBuffer.limit()); in read()
628 return inputBuffer; in read()
DMediaCodecTest.java866 ByteBuffer inputBuffer = encoder.getInputBuffer(inputIndex);; in feedEncoder() local
867 for (int i = 0; i < inputBuffer.capacity() / 2; i++) { in feedEncoder()
868 inputBuffer.putShort((short)i); in feedEncoder()
870 encoder.queueInputBuffer(inputIndex, 0, inputBuffer.limit(), 0, 0); in feedEncoder()
1644 ByteBuffer inputBuffer = inputBuffers[inputIndex]; in runAudioEncoding() local
1645 inputBuffer.rewind(); in runAudioEncoding()
1646 inputBuffer.put(source); in runAudioEncoding()
1649 encoder.queueInputBuffer(inputIndex, 0, inputBuffer.limit(), 0, 0); in runAudioEncoding()
DDecodeAccuracyTestBase.java300 ByteBuffer inputBuffer; in queueDecoderInputBuffer() local
305 inputBuffer = inputBufferArray[inputBufferIndex]; in queueDecoderInputBuffer()
307 inputBuffer = decoder.getInputBuffer(inputBufferIndex); in queueDecoderInputBuffer()
309 final int sampleSize = extractor.readSampleData(inputBuffer, 0); in queueDecoderInputBuffer()
DVpxCodecTestBase.java1090 ByteBuffer inputBuffer = mCodec.getInputBuffer(mInputBufIndex); in feedInputInternal() local
1091 inputBuffer.clear(); in feedInputInternal()
1092 inputBuffer.put(encFrame); in feedInputInternal()
1093 inputBuffer.rewind(); in feedInputInternal()
DEncodeVirtualDisplayWithCompositionTest.java317 ByteBuffer inputBuffer = mDecoderInputBuffers[inputBufferIndex]; in doTestRenderingOutput()
318 inputBuffer.clear(); in doTestRenderingOutput()
319 inputBuffer.put(data); in doTestRenderingOutput()
DDecoderTest.java953 ByteBuffer inputBuffer = codec.getInputBuffer(index); in testHdrStaticMetadata()
960 int size = finalExtractor.readSampleData(inputBuffer, 0); in testHdrStaticMetadata()
/cts/tests/media/jni/
DNativeCodecEncoderTest.cpp65 void fillByteBuffer(uint8_t* inputBuffer);
222 void CodecEncoderTest::fillByteBuffer(uint8_t* inputBuffer) { in fillByteBuffer() argument
253 memcpy(inputBuffer + (offset + (k + j) * width + i), in fillByteBuffer()
271 uint8_t* inputBuffer = AMediaCodec_getInputBuffer(mCodec, bufferIndex, &buffSize); in enqueueInput() local
275 memcpy(inputBuffer, mInputData + mNumBytesSubmitted, size); in enqueueInput()
293 memcpy(inputBuffer, mInputData + mNumBytesSubmitted, size); in enqueueInput()
295 fillByteBuffer(inputBuffer); in enqueueInput()
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java704 ByteBuffer inputBuffer = ByteBuffer.wrap( in assertKatOneShotTransformUsingDoFinal() local
710 assertEquals(expectedOutput.length, doFinal(inputBuffer, actualOutputBuffer)); in assertKatOneShotTransformUsingDoFinal()
711 assertEquals(0, inputBuffer.remaining()); in assertKatOneShotTransformUsingDoFinal()
1175 ByteBuffer inputBuffer = ByteBuffer.wrap(buffer, inputOffsetInBuffer, input.length); in assertUpdateCopySafe() local
1180 assertEquals(expectedOutput.length, update(inputBuffer, outputBuffer)); in assertUpdateCopySafe()
1244 ByteBuffer inputBuffer = ByteBuffer.wrap(buffer, inputOffsetInBuffer, input.length); in assertDoFinalCopySafe() local
1249 assertEquals(expectedOutput.length, doFinal(inputBuffer, outputBuffer)); in assertDoFinalCopySafe()