Home
last modified time | relevance | path

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

/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-1988/
Dpoc.cpp30 int decode(sk_sp<SkData> bytes, uint8_t sampleSize) { in decode() argument
36 auto size = codec->getSampledDimensions(sampleSize); in decode()
44 options.fSampleSize = sampleSize; in decode()
/cts/tests/tests/graphics/jni/
DMediaTestHelpers.cpp144 ssize_t sampleSize = in processOneInputBuffer() local
146 ASSERT(sampleSize >= 0); in processOneInputBuffer()
149 MEDIA_CALL(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, sampleSize, in processOneInputBuffer()
Dandroid_graphics_cts_AImageDecoderTest.cpp759 int sampleSize; member
765 jobject jbitmap, jint sampleSize) { in testComputeSampledSize() argument
783 int result = AImageDecoder_computeSampledSize(p.decoder, p.sampleSize, p.width, p.height); in testComputeSampledSize()
797 int result = AImageDecoder_computeSampledSize(p.decoder, p.sampleSize, p.width, p.height); in testComputeSampledSize()
800 p.sampleSize, origWidth, origHeight); in testComputeSampledSize()
816 int result = AImageDecoder_computeSampledSize(decoder, sampleSize, &width, &height); in testComputeSampledSize()
821 origWidth, origHeight, sampleSize, width, height, jInfo.width, jInfo.height); in testComputeSampledSize()
831 ASSERT_LT(width, origWidth / sampleSize + sampleSize); in testComputeSampledSize()
832 ASSERT_LT(height, origHeight / sampleSize + sampleSize); in testComputeSampledSize()
/cts/tests/tests/media/src/android/media/cts/
DDecoderTestAacFormat.java166 int sampleSize = in decodeUpdateFormat() local
171 if (sampleSize < 0) { in decodeUpdateFormat()
174 sampleSize = 0; in decodeUpdateFormat()
182 sampleSize, in decodeUpdateFormat()
DCodecState.java279 int sampleSize = in feedInputBuffer() local
286 if (sampleSize <= 0) { in feedInputBuffer()
287 Log.d(TAG, "sampleSize: " + sampleSize + " trackIndex:" + trackIndex + in feedInputBuffer()
310 … inputBufferIndex, 0 /* offset */, sampleSize, mLastPresentTimeUs, 0 /* flags */); in feedInputBuffer()
DVideoDecoderPerfTest.java154 int sampleSize = 0; in doDecode() local
158 while ((sampleSize = extractor.readSampleData(tmpBuf, 0 /* offset */)) > 0) { in doDecode()
159 if (totalMemory + sampleSize > MAX_SIZE_SAMPLES_IN_MEMORY_BYTES) { in doDecode()
165 ByteBuffer copied = ByteBuffer.allocate(sampleSize); in doDecode()
173 totalMemory += sampleSize; in doDecode()
219 int sampleSize = sample.first.remaining(); in doDecode() local
234 sampleSize, in doDecode()
DDecoderTestAacDrc.java630 int sampleSize = in decodeToMemory() local
635 if (sampleSize < 0 && eossample > 0) { in decodeToMemory()
638 if (sampleSize < 0) { in decodeToMemory()
641 sampleSize = 0; in decodeToMemory()
652 sampleSize, in decodeToMemory()
DImageReaderDecoderTest.java520 int sampleSize = in decodeFramesToImage() local
524 + inputBufIndex + "/" + sampleSize); in decodeFramesToImage()
528 if (sampleSize < 0) { in decodeFramesToImage()
531 sampleSize = 0; in decodeFramesToImage()
539 sampleSize, in decodeFramesToImage()
DAdaptivePlaybackTest.java1419 int sampleSize = extractor.readSampleData(readBuf, 0 /* offset */);
1421 if (sampleSize < 0) {
1424 readBuf.position(0).limit(sampleSize);
1426 sampleSize += csd.capacity();
1429 if (maxInputSize < sampleSize) {
1430 maxInputSize = sampleSize;
1433 ByteBuffer buf = ByteBuffer.allocate(sampleSize);
1440 Log.i(TAG, "frame-" + ix + "[" + sampleSize + "]");
DDecoderTestXheAac.java1370 int sampleSize =
1375 if (sampleSize < 0 && eossample > 0) {
1379 if (sampleSize < 0) {
1382 sampleSize = 0;
1394 sampleSize,
DNativeDecoderTest.java464 int sampleSize = ex.readSampleData(buf, 0); in getDecodedData() local
465 Log.i("@@@@", "read " + sampleSize + " @ " + ex.getSampleTime()); in getDecodedData()
466 if (sampleSize < 0) { in getDecodedData()
467 sampleSize = 0; in getDecodedData()
474 codec[t].queueInputBuffer(bufidx, 0, sampleSize, presentationTimeUs, in getDecodedData()
DDecodeAccuracyTestBase.java311 final int sampleSize = extractor.readSampleData(inputBuffer, 0); in queueDecoderInputBuffer() local
312 if (sampleSize > 0) { in queueDecoderInputBuffer()
314 inputBufferIndex, 0, sampleSize, extractor.getSampleTime(), 0); in queueDecoderInputBuffer()
DMediaCodecTest.java2442 final int sampleSize = useFloat ? 4 : 2; in PcmAudioBufferStream() local
2443 final int sizeInBytes = samples * sampleSize; in PcmAudioBufferStream()
/cts/tests/tests/graphics/src/android/graphics/cts/
DAImageDecoderTest.java549 private Bitmap decodeSampled(String name, ImageDecoder.Source src, int sampleSize) {
554 decoder.setTargetSampleSize(sampleSize);
558 + sampleSize + ") with " + e);
565 public void testDecodeSampled(ImageDecoderTest.AssetRecord record, int sampleSize) {
568 Bitmap bm = decodeSampled(record.name, src, sampleSize);
579 public void testDecodeResourceSampled(ImageDecoderTest.Record record, int sampleSize)
584 Bitmap bm = decodeSampled(name, src, sampleSize);
598 public void testComputeSampledSize(ImageDecoderTest.Record record, int sampleSize)
604 testComputeSampledSizeInternal(record.resId, sampleSize);
607 private void testComputeSampledSizeInternal(int resId, int sampleSize)
[all …]
DImageDecoderTest.java758 private void checkSampleSize(String name, int originalDimension, int sampleSize, int result) { in checkSampleSize() argument
759 if (originalDimension % sampleSize == 0) { in checkSampleSize()
760 assertEquals("Mismatch for " + name + ": " + originalDimension + " / " + sampleSize in checkSampleSize()
761 + " != " + result, originalDimension / sampleSize, result); in checkSampleSize()
762 } else if (originalDimension <= sampleSize) { in checkSampleSize()
766 int size = result * sampleSize; in checkSampleSize()
768 + sampleSize + " = " + result, in checkSampleSize()
769 Math.abs(size - originalDimension) < sampleSize); in checkSampleSize()
777 for (int sampleSize : new int[] { 2, 3, 4, 8, 32 }) { in testSampleSize()
781 decoder.setTargetSampleSize(sampleSize); in testSampleSize()
[all …]
DBitmapRegionDecoderTest.java374 int sampleSize = SAMPLESIZES[j]; in testInBitmapReuse() local
375 defaultOpts.inSampleSize = sampleSize; in testInBitmapReuse()
376 reuseOpts.inSampleSize = sampleSize; in testInBitmapReuse()
380 assertEquals(0, TILE_SIZE % sampleSize); in testInBitmapReuse()
381 int scaledDim = TILE_SIZE / sampleSize; in testInBitmapReuse()
/cts/tests/tests/media/libmediandkjni/
Dnative_media_decoder_source.cpp144 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()
Dnative-media-jni.cpp306 ssize_t sampleSize = AMediaExtractor_getSampleSize(ex); in testExtractor() local
307 if (n < 0 || n != sampleSize) { in testExtractor()
557 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
558 ALOGV("read %d", sampleSize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
559 if (sampleSize < 0) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
560 sampleSize = 0; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
567 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
722 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() local
723 ALOGV("read %d", sampleSize); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative()
724 if (sampleSize < 0) { in Java_android_media_cts_NativeDecoderTest_testPlaybackNative()
[all …]
Dnative-mediadrm-jni.cpp431 int sampleSize = AMediaExtractor_readSampleData(extractor, buf, bufsize); in fillDecoder() local
432 if (sampleSize < 0) { in fillDecoder()
433 sampleSize = 0; in fillDecoder()
450 codec, bufferIndex, 0, sampleSize, in fillDecoder()
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DMediaTranscodingTestUtil.java252 int sampleSize = in decodeMp4ToYuv() local
257 if (sampleSize < 0) { in decodeMp4ToYuv()
260 sampleSize = 0; in decodeMp4ToYuv()
265 sampleSize, in decodeMp4ToYuv()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DSoundPlayerObject.java155 final int sampleSize = in run() local
158 if (sampleSize < 0) { in run()
166 inputEosSignalled ? 0 : sampleSize, presentationTimeUs, in run()
/cts/tests/media/src/android/mediav2/cts/
DExtractorUnitTest.java677 int sampleSize = (int) extractor.getSampleSize(); in testIfInvalidOffsetIsRejectedByReadSampleData() local
679 extractor.readSampleData(byteBuffer, MAX_SAMPLE_SIZE - sampleSize + 1); in testIfInvalidOffsetIsRejectedByReadSampleData()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java1134 int sampleSize = extractor.readSampleData(buffer, 0); in run() local
1135 if (sampleSize < 0) { in run()
1145 decoder.queueInputBuffer(inIndex, 0, sampleSize, frameTimestamp, 0); in run()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java1260 int sampleSize = ex.readSampleData(buffer, 0); in verifyDecoder() local
1261 if (sampleSize < 0) { in verifyDecoder()
1266 decoder.queueInputBuffer(inIdx, 0, sampleSize, ex.getSampleTime(), 0); in verifyDecoder()