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.cpp744 int sampleSize; member
750 jobject jbitmap, jint sampleSize) { in testComputeSampledSize() argument
768 int result = AImageDecoder_computeSampledSize(p.decoder, p.sampleSize, p.width, p.height); in testComputeSampledSize()
782 int result = AImageDecoder_computeSampledSize(p.decoder, p.sampleSize, p.width, p.height); in testComputeSampledSize()
785 p.sampleSize, origWidth, origHeight); in testComputeSampledSize()
801 int result = AImageDecoder_computeSampledSize(decoder, sampleSize, &width, &height); in testComputeSampledSize()
806 origWidth, origHeight, sampleSize, width, height, jInfo.width, jInfo.height); in testComputeSampledSize()
816 ASSERT_LT(width, origWidth / sampleSize + sampleSize); in testComputeSampledSize()
817 ASSERT_LT(height, origHeight / sampleSize + sampleSize); in testComputeSampledSize()
/cts/tests/tests/media/src/android/media/cts/
DDecoderTestAacFormat.java161 int sampleSize = in decodeUpdateFormat() local
166 if (sampleSize < 0) { in decodeUpdateFormat()
169 sampleSize = 0; in decodeUpdateFormat()
177 sampleSize, in decodeUpdateFormat()
DCodecState.java225 int sampleSize = in feedInputBuffer() local
232 if (sampleSize <= 0) { in feedInputBuffer()
233 Log.d(TAG, "sampleSize: " + sampleSize + " trackIndex:" + trackIndex + in feedInputBuffer()
254 index, 0 /* offset */, sampleSize, sampleTime, 0 /* flags */); in feedInputBuffer()
DDecoderTestAacDrc.java628 int sampleSize = in decodeToMemory() local
633 if (sampleSize < 0 && eossample > 0) { in decodeToMemory()
636 if (sampleSize < 0) { in decodeToMemory()
639 sampleSize = 0; in decodeToMemory()
650 sampleSize, in decodeToMemory()
DVideoDecoderPerfTest.java190 int sampleSize = 0; in doDecode() local
194 while ((sampleSize = extractor.readSampleData(tmpBuf, 0 /* offset */)) > 0) { in doDecode()
195 if (totalMemory + sampleSize > MAX_SIZE_SAMPLES_IN_MEMORY_BYTES) { in doDecode()
201 ByteBuffer copied = ByteBuffer.allocate(sampleSize); in doDecode()
209 totalMemory += sampleSize; in doDecode()
256 int sampleSize = sample.first.remaining(); in doDecode() local
271 sampleSize, in doDecode()
DImageReaderDecoderTest.java503 int sampleSize = in decodeFramesToImage() local
507 + inputBufIndex + "/" + sampleSize); in decodeFramesToImage()
511 if (sampleSize < 0) { in decodeFramesToImage()
514 sampleSize = 0; in decodeFramesToImage()
522 sampleSize, in decodeFramesToImage()
DNativeDecoderTest.java445 int sampleSize = ex.readSampleData(buf, 0); in getDecodedData() local
446 Log.i("@@@@", "read " + sampleSize + " @ " + ex.getSampleTime()); in getDecodedData()
447 if (sampleSize < 0) { in getDecodedData()
448 sampleSize = 0; in getDecodedData()
455 codec[t].queueInputBuffer(bufidx, 0, sampleSize, presentationTimeUs, in getDecodedData()
DDecoderTest.java1916 int sampleSize =
1921 if (sampleSize < 0 && eossample > 0) {
1924 if (sampleSize < 0) {
1927 sampleSize = 0;
1938 sampleSize,
2885 int sampleSize =
2887 assertEquals("end of stream should match extractor.advance()", sampleSize >= 0,
2897 if (sampleSize < 0) {
2902 -1, sampleSize);
2905 sampleSize = 0; // required otherwise queueInputBuffer
[all …]
DAdaptivePlaybackTest.java1370 int sampleSize = extractor.readSampleData(readBuf, 0 /* offset */);
1372 if (sampleSize < 0) {
1375 readBuf.position(0).limit(sampleSize);
1377 sampleSize += csd.capacity();
1380 if (maxInputSize < sampleSize) {
1381 maxInputSize = sampleSize;
1384 ByteBuffer buf = ByteBuffer.allocate(sampleSize);
1391 Log.i(TAG, "frame-" + ix + "[" + sampleSize + "]");
DDecoderTestXheAac.java1359 int sampleSize =
1364 if (sampleSize < 0 && eossample > 0) {
1368 if (sampleSize < 0) {
1371 sampleSize = 0;
1383 sampleSize,
DDecodeAccuracyTestBase.java309 final int sampleSize = extractor.readSampleData(inputBuffer, 0); in queueDecoderInputBuffer() local
310 if (sampleSize > 0) { in queueDecoderInputBuffer()
312 inputBufferIndex, 0, sampleSize, extractor.getSampleTime(), 0); in queueDecoderInputBuffer()
DMediaCodecTest.java2386 final int sampleSize = useFloat ? 4 : 2; in PcmAudioBufferStream() local
2387 final int sizeInBytes = samples * sampleSize; in PcmAudioBufferStream()
/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.cpp394 int sampleSize = AMediaExtractor_readSampleData(extractor, buf, bufsize); in fillDecoder() local
395 if (sampleSize < 0) { in fillDecoder()
396 sampleSize = 0; in fillDecoder()
413 codec, bufferIndex, 0, sampleSize, in fillDecoder()
/cts/tests/tests/graphics/src/android/graphics/cts/
DAImageDecoderTest.java525 private Bitmap decodeSampled(String name, ImageDecoder.Source src, int sampleSize) {
530 decoder.setTargetSampleSize(sampleSize);
534 + sampleSize + ") with " + e);
541 public void testDecodeSampled(ImageDecoderTest.AssetRecord record, int sampleSize) {
544 Bitmap bm = decodeSampled(record.name, src, sampleSize);
555 public void testDecodeResourceSampled(ImageDecoderTest.Record record, int sampleSize)
560 Bitmap bm = decodeSampled(name, src, sampleSize);
574 public void testComputeSampledSize(ImageDecoderTest.Record record, int sampleSize)
583 Bitmap bm = decodeSampled(name, src, sampleSize);
589 nTestComputeSampledSize(aimagedecoder, bm, sampleSize);
[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()
DImageDecoderTest.java732 private void checkSampleSize(String name, int originalDimension, int sampleSize, int result) { in checkSampleSize() argument
733 if (originalDimension % sampleSize == 0) { in checkSampleSize()
734 assertEquals("Mismatch for " + name + ": " + originalDimension + " / " + sampleSize in checkSampleSize()
735 + " != " + result, originalDimension / sampleSize, result); in checkSampleSize()
736 } else if (originalDimension <= sampleSize) { in checkSampleSize()
740 int size = result * sampleSize; in checkSampleSize()
742 + sampleSize + " = " + result, in checkSampleSize()
743 Math.abs(size - originalDimension) < sampleSize); in checkSampleSize()
751 for (int sampleSize : new int[] { 2, 3, 4, 8, 32 }) { in testSampleSize()
755 decoder.setTargetSampleSize(sampleSize); in testSampleSize()
[all …]
/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.java654 int sampleSize = (int) extractor.getSampleSize(); in testIfInvalidOffsetIsRejectedByReadSampleData() local
656 extractor.readSampleData(byteBuffer, MAX_SAMPLE_SIZE - sampleSize + 1); in testIfInvalidOffsetIsRejectedByReadSampleData()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java1194 int sampleSize = ex.readSampleData(buffer, 0); in verifyDecoder() local
1195 if (sampleSize < 0) { in verifyDecoder()
1200 decoder.queueInputBuffer(inIdx, 0, sampleSize, ex.getSampleTime(), 0); in verifyDecoder()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java1117 int sampleSize = extractor.readSampleData(buffer, 0); in run() local
1118 if (sampleSize < 0) { in run()
1128 decoder.queueInputBuffer(inIndex, 0, sampleSize, frameTimestamp, 0); in run()