Home
last modified time | relevance | path

Searched refs:sampleSize (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp270 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
271 ALOGV("read %d", sampleSize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
272 if (sampleSize < 0) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
273 sampleSize = 0; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
280 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
415 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() local
416 ALOGV("read %d", sampleSize); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative()
417 if (sampleSize < 0) { in Java_android_media_cts_NativeDecoderTest_testPlaybackNative()
418 sampleSize = 0; in Java_android_media_cts_NativeDecoderTest_testPlaybackNative()
424 AMediaCodec_queueInputBuffer(codec, bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_testPlaybackNative()
/cts/tests/tests/media/src/android/media/cts/
DCodecState.java210 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()
DVideoDecoderPerfTest.java126 int sampleSize = 0; in doDecode() local
128 while ((sampleSize = extractor.readSampleData(tmpBuf, 0 /* offset */)) > 0) { in doDecode()
129 if (totalMemory + sampleSize > MAX_SIZE_SAMPLES_IN_MEMORY_BYTES) { in doDecode()
132 ByteBuffer copied = ByteBuffer.allocate(sampleSize); in doDecode()
135 totalMemory += sampleSize; in doDecode()
180 int sampleSize = sample.remaining(); in doDecode() local
195 sampleSize, in doDecode()
DDecoderConformanceTest.java177 int sampleSize = mExtractor.readSampleData(buffer, 0); in decodeTestVector() local
178 if (sampleSize < 0) { in decodeTestVector()
183 … mDecoder.queueInputBuffer(inputIndex, 0, sampleSize, mExtractor.getSampleTime(), 0); in decodeTestVector()
DNativeDecoderTest.java267 int sampleSize = ex.readSampleData(buf, 0); in getDecodedData() local
268 Log.i("@@@@", "read " + sampleSize); in getDecodedData()
269 if (sampleSize < 0) { in getDecodedData()
270 sampleSize = 0; in getDecodedData()
277 codec[t].queueInputBuffer(bufidx, 0, sampleSize, presentationTimeUs, in getDecodedData()
DImageReaderDecoderTest.java498 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()
DDecoderTest.java1312 int sampleSize =
1317 if (sampleSize < 0 && eossample > 0) {
1320 if (sampleSize < 0) {
1323 sampleSize = 0;
1334 sampleSize,
2163 int sampleSize =
2172 assertEquals("extractor.advance() should match end of stream", sampleSize >= 0,
2175 if (sampleSize < 0) {
2179 -1, sampleSize);
2182 sampleSize = 0; // required otherwise queueInputBuffer
[all …]
DAdaptivePlaybackTest.java1325 int sampleSize = extractor.readSampleData(readBuf, 0 /* offset */);
1327 if (sampleSize < 0) {
1330 readBuf.position(0).limit(sampleSize);
1332 sampleSize += csd.capacity();
1334 ByteBuffer buf = ByteBuffer.allocate(sampleSize);
1341 Log.i(TAG, "frame-" + ix + "[" + sampleSize + "]");
DDecodeAccuracyTestBase.java206 int sampleSize = extractor.readSampleData(inputBuffer, 0); in decodeFramesAndDisplay() local
207 if (sampleSize > 0) { in decodeFramesAndDisplay()
209 inputBufferIndex, 0, sampleSize, extractor.getSampleTime(), 0); in decodeFramesAndDisplay()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java324 int sampleSize = SAMPLESIZES[j]; in testInBitmapReuse() local
325 defaultOpts.inSampleSize = sampleSize; in testInBitmapReuse()
326 reuseOpts.inSampleSize = sampleSize; in testInBitmapReuse()
330 assertEquals(0, TILE_SIZE % sampleSize); in testInBitmapReuse()
331 int scaledDim = TILE_SIZE / sampleSize; in testInBitmapReuse()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java1095 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()