/cts/tests/tests/graphics/jni/ |
D | MediaTestHelpers.cpp | 144 ssize_t sampleSize = in processOneInputBuffer() local 146 ASSERT(sampleSize >= 0); in processOneInputBuffer() 149 MEDIA_CALL(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, sampleSize, in processOneInputBuffer()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecState.java | 210 int sampleSize = in feedInputBuffer() local 217 if (sampleSize <= 0) { in feedInputBuffer() 218 Log.d(TAG, "sampleSize: " + sampleSize + " trackIndex:" + trackIndex + in feedInputBuffer() 247 index, 0 /* offset */, sampleSize, sampleTime, 0 /* flags */); in feedInputBuffer()
|
D | DecoderTestAacDrc.java | 464 int sampleSize = in decodeToMemory() local 469 if (sampleSize < 0 && eossample > 0) { in decodeToMemory() 472 if (sampleSize < 0) { in decodeToMemory() 475 sampleSize = 0; in decodeToMemory() 486 sampleSize, in decodeToMemory()
|
D | VideoDecoderPerfTest.java | 140 int sampleSize = 0; in doDecode() local 144 while ((sampleSize = extractor.readSampleData(tmpBuf, 0 /* offset */)) > 0) { in doDecode() 145 if (totalMemory + sampleSize > MAX_SIZE_SAMPLES_IN_MEMORY_BYTES) { in doDecode() 151 ByteBuffer copied = ByteBuffer.allocate(sampleSize); in doDecode() 159 totalMemory += sampleSize; in doDecode() 206 int sampleSize = sample.first.remaining(); in doDecode() local 221 sampleSize, in doDecode()
|
D | DecoderTestXheAac.java | 865 int sampleSize = 870 if (sampleSize < 0 && eossample > 0) { 874 if (sampleSize < 0) { 877 sampleSize = 0; 889 sampleSize,
|
D | NativeDecoderTest.java | 331 int sampleSize = ex.readSampleData(buf, 0); in getDecodedData() local 332 Log.i("@@@@", "read " + sampleSize); in getDecodedData() 333 if (sampleSize < 0) { in getDecodedData() 334 sampleSize = 0; in getDecodedData() 341 codec[t].queueInputBuffer(bufidx, 0, sampleSize, presentationTimeUs, in getDecodedData()
|
D | ImageReaderDecoderTest.java | 498 int sampleSize = in decodeFramesToImage() local 502 + inputBufIndex + "/" + sampleSize); in decodeFramesToImage() 506 if (sampleSize < 0) { in decodeFramesToImage() 509 sampleSize = 0; in decodeFramesToImage() 517 sampleSize, in decodeFramesToImage()
|
D | AdaptivePlaybackTest.java | 1310 int sampleSize = extractor.readSampleData(readBuf, 0 /* offset */); 1312 if (sampleSize < 0) { 1315 readBuf.position(0).limit(sampleSize); 1317 sampleSize += csd.capacity(); 1319 ByteBuffer buf = ByteBuffer.allocate(sampleSize); 1326 Log.i(TAG, "frame-" + ix + "[" + sampleSize + "]");
|
D | DecodeAccuracyTestBase.java | 312 final int sampleSize = extractor.readSampleData(inputBuffer, 0); in queueDecoderInputBuffer() local 313 if (sampleSize > 0) { in queueDecoderInputBuffer() 315 inputBufferIndex, 0, sampleSize, extractor.getSampleTime(), 0); in queueDecoderInputBuffer()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native_media_decoder_source.cpp | 144 int sampleSize = AMediaExtractor_readSampleData(mEx.get(), buf, bufsize); in run() local 146 if (sampleSize < 0) { in run() 156 AMediaCodec_queueInputBuffer(mDec.get(), bufidx, 0, sampleSize, timeStampUs, flags); in run()
|
D | native-media-jni.cpp | 288 ssize_t sampleSize = AMediaExtractor_getSampleSize(ex); in testExtractor() local 289 if (n < 0 || n != sampleSize) { in testExtractor() 510 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local 511 ALOGV("read %d", sampleSize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 512 if (sampleSize < 0) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 513 sampleSize = 0; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 520 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 675 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() local 676 ALOGV("read %d", sampleSize); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() 677 if (sampleSize < 0) { in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() [all …]
|
D | native-mediadrm-jni.cpp | 341 int sampleSize = AMediaExtractor_readSampleData(extractor, buf, bufsize); in fillDecoder() local 342 if (sampleSize < 0) { in fillDecoder() 343 sampleSize = 0; in fillDecoder() 360 codec, bufferIndex, 0, sampleSize, in fillDecoder()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ImageDecoderTest.java | 724 private void checkSampleSize(String name, int originalDimension, int sampleSize, int result) { in checkSampleSize() argument 725 if (originalDimension % sampleSize == 0) { in checkSampleSize() 726 assertEquals("Mismatch for " + name + ": " + originalDimension + " / " + sampleSize in checkSampleSize() 727 + " != " + result, originalDimension / sampleSize, result); in checkSampleSize() 728 } else if (originalDimension <= sampleSize) { in checkSampleSize() 732 int size = result * sampleSize; in checkSampleSize() 734 + sampleSize + " = " + result, in checkSampleSize() 735 Math.abs(size - originalDimension) < sampleSize); in checkSampleSize() 743 for (int sampleSize : new int[] { 2, 3, 4, 8, 32 }) { in testSampleSize() 747 decoder.setTargetSampleSize(sampleSize); in testSampleSize() [all …]
|
D | BitmapRegionDecoderTest.java | 372 int sampleSize = SAMPLESIZES[j]; in testInBitmapReuse() local 373 defaultOpts.inSampleSize = sampleSize; in testInBitmapReuse() 374 reuseOpts.inSampleSize = sampleSize; in testInBitmapReuse() 378 assertEquals(0, TILE_SIZE % sampleSize); in testInBitmapReuse() 379 int scaledDim = TILE_SIZE / sampleSize; in testInBitmapReuse()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 1086 int sampleSize = ex.readSampleData(buffer, 0); in verifyDecoder() local 1087 if (sampleSize < 0) { in verifyDecoder() 1092 decoder.queueInputBuffer(inIdx, 0, sampleSize, ex.getSampleTime(), 0); in verifyDecoder()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 1095 int sampleSize = extractor.readSampleData(buffer, 0); in run() local 1096 if (sampleSize < 0) { in run() 1106 decoder.queueInputBuffer(inIndex, 0, sampleSize, frameTimestamp, 0); in run()
|