/cts/tests/tests/media/src/android/media/cts/ |
D | MediaMuxerTest.java | 484 MediaExtractor extractor = new MediaExtractor(); in cloneMediaUsingMuxer() local 485 extractor.setDataSource(srcFd.getFileDescriptor(), srcFd.getStartOffset(), in cloneMediaUsingMuxer() 488 int trackCount = extractor.getTrackCount(); in cloneMediaUsingMuxer() 498 extractor.selectTrack(i); in cloneMediaUsingMuxer() 499 MediaFormat format = extractor.getTrackFormat(i); in cloneMediaUsingMuxer() 541 bufferInfo.size = extractor.readSampleData(dstBuf, offset); in cloneMediaUsingMuxer() 550 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaUsingMuxer() 551 bufferInfo.flags = extractor.getSampleFlags(); in cloneMediaUsingMuxer() 552 int trackIndex = extractor.getSampleTrackIndex(); in cloneMediaUsingMuxer() 556 extractor.advance(); in cloneMediaUsingMuxer() [all …]
|
D | MediaExtractorTest.java | 526 MediaExtractor extractor = new MediaExtractor(); in testFlacMovExtraction() local 527 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), in testFlacMovExtraction() 530 extractor.selectTrack(0); in testFlacMovExtraction() 536 int n = extractor.readSampleData(buf, 0); in testFlacMovExtraction() 540 if (!extractor.advance()) { in testFlacMovExtraction() 550 MediaExtractor extractor = new MediaExtractor(); in doTestAdvance() local 551 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), in doTestAdvance() 554 extractor.selectTrack(0); in doTestAdvance() 559 int n = extractor.readSampleData(buf, 0); in doTestAdvance() 564 extractor.getSampleTime() >= 0); in doTestAdvance() [all …]
|
D | DecoderTest.java | 779 MediaExtractor extractor = null; in testHdrStaticMetadata() local 783 extractor = new MediaExtractor(); in testHdrStaticMetadata() 784 extractor.setDataSource(infd.getFileDescriptor(), in testHdrStaticMetadata() 789 for (int i = 0; i < extractor.getTrackCount(); i++) { in testHdrStaticMetadata() 790 format = extractor.getTrackFormat(i); in testHdrStaticMetadata() 803 extractor.selectTrack(trackIndex); in testHdrStaticMetadata() 833 final MediaExtractor finalExtractor = extractor; in testHdrStaticMetadata() 838 extractor.seekTo(0, MediaExtractor.SEEK_TO_PREVIOUS_SYNC); in testHdrStaticMetadata() 907 if (extractor != null) { in testHdrStaticMetadata() 908 extractor.release(); in testHdrStaticMetadata() [all …]
|
D | DecoderTestAacDrc.java | 407 MediaExtractor extractor; in decodeToMemory() local 412 extractor = new MediaExtractor(); in decodeToMemory() 413 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), in decodeToMemory() 417 assertEquals("wrong number of tracks", 1, extractor.getTrackCount()); in decodeToMemory() 418 MediaFormat format = extractor.getTrackFormat(0); in decodeToMemory() 446 extractor.selectTrack(0); in decodeToMemory() 464 extractor.readSampleData(dstBuf, 0 /* offset */); in decodeToMemory() 480 presentationTimeUs = extractor.getSampleTime(); in decodeToMemory() 490 extractor.advance(); in decodeToMemory()
|
D | ExtractDecodeEditEncodeMuxTest.java | 585 MediaExtractor extractor; in createExtractor() local 588 extractor = new MediaExtractor(); in createExtractor() 589 extractor.setDataSource(srcFd.getFileDescriptor(), srcFd.getStartOffset(), in createExtractor() 591 return extractor; in createExtractor() 667 private int getAndSelectVideoTrackIndex(MediaExtractor extractor) { in getAndSelectVideoTrackIndex() argument 668 for (int index = 0; index < extractor.getTrackCount(); ++index) { in getAndSelectVideoTrackIndex() 671 + getMimeTypeFor(extractor.getTrackFormat(index))); in getAndSelectVideoTrackIndex() 673 if (isVideoFormat(extractor.getTrackFormat(index))) { in getAndSelectVideoTrackIndex() 674 extractor.selectTrack(index); in getAndSelectVideoTrackIndex() 681 private int getAndSelectAudioTrackIndex(MediaExtractor extractor) { in getAndSelectAudioTrackIndex() argument [all …]
|
D | ImageReaderDecoderTest.java | 259 MediaExtractor extractor = null; in videoDecode() local 265 extractor = new MediaExtractor(); in videoDecode() 269 extractor.setDataSource( in videoDecode() 285 extractor.setDataSource(tmpFile.getAbsolutePath()); in videoDecode() 288 mediaFormat = extractor.getTrackFormat(0); in videoDecode() 296 decoder, extractor, mediaFormat, in videoDecode() 310 if (extractor != null) { in videoDecode() 311 extractor.release(); in videoDecode() 468 MediaCodec decoder, MediaExtractor extractor, MediaFormat mediaFormat, in decodeFramesToImage() argument 487 extractor.selectTrack(0); in decodeFramesToImage() [all …]
|
D | MediaCodecClearKeyPlayer.java | 299 private void setDataSource(MediaExtractor extractor, Uri uri, Map<String, String> headers) in setDataSource() argument 303 extractor.setDataSource(uri.toString(), headers); in setDataSource() 305 extractor.setDataSource(uri.toString().substring(FILE_SCHEME.length()), headers); in setDataSource() 309 extractor.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in setDataSource() 315 private void initCasAndDescrambler(MediaExtractor extractor) throws MediaCasException { in initCasAndDescrambler() argument 316 int trackCount = extractor.getTrackCount(); in initCasAndDescrambler() 318 android.media.MediaFormat format = extractor.getTrackFormat(trackId); in initCasAndDescrambler() 323 MediaExtractor.CasInfo casInfo = extractor.getCasInfo(trackId); in initCasAndDescrambler() 330 extractor.setMediaCas(mMediaCas); in initCasAndDescrambler()
|
D | DecoderTestXheAac.java | 830 MediaExtractor extractor; 835 extractor = new MediaExtractor(); 836 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), 840 assertEquals("wrong number of tracks", 1, extractor.getTrackCount()); 841 MediaFormat format = extractor.getTrackFormat(0); 874 extractor.selectTrack(0); 894 extractor.readSampleData(dstBuf, 0 /* offset */); 911 presentationTimeUs = extractor.getSampleTime(); 922 extractor.advance();
|
D | VideoDecoderPerfTest.java | 157 MediaExtractor extractor = new MediaExtractor(); in doDecode() local 158 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), in doDecode() 160 extractor.selectTrack(0); in doDecode() 161 int trackIndex = extractor.getSampleTrackIndex(); in doDecode() 162 MediaFormat format = extractor.getTrackFormat(trackIndex); in doDecode() 184 while ((sampleSize = extractor.readSampleData(tmpBuf, 0 /* offset */)) > 0) { in doDecode() 189 firstPTS = extractor.getSampleTime(); in doDecode() 196 (extractor.getSampleTime() - firstPTS) * frameRate / 1e6 - index; in doDecode() 201 extractor.advance(); in doDecode() 212 extractor.release(); in doDecode()
|
D | MediaMetadataRetrieverTest.java | 705 MediaExtractor extractor = null; in testGetImage() local 780 extractor = new MediaExtractor(); in testGetImage() 781 extractor.setDataSource( in testGetImage() 783 MediaFormat format = extractor.getTrackFormat(0); in testGetImage() 799 if (extractor != null) { in testGetImage() 800 extractor.release(); in testGetImage()
|
D | DecodeAccuracyTestBase.java | 148 private final MediaExtractor extractor; field in DecodeAccuracyTestBase.SimplePlayer 163 this.extractor = new MediaExtractor(); in SimplePlayer() 229 extractor.selectTrack(trackNum); in prepareExtractor() 230 return extractor.getTrackFormat(trackNum); in prepareExtractor() 309 final int sampleSize = extractor.readSampleData(inputBuffer, 0); in queueDecoderInputBuffer() 312 inputBufferIndex, 0, sampleSize, extractor.getSampleTime(), 0); in queueDecoderInputBuffer() 313 extractor.advance(); in queueDecoderInputBuffer() 366 extractor.setDataSource( in setExtractorDataSource() 464 if (extractor == null) { in extractorRelease() 468 extractor.release(); in extractorRelease() [all …]
|
D | CodecState.java | 59 MediaExtractor extractor, in CodecState() argument 67 mExtractor = extractor; in CodecState()
|
D | AdaptivePlaybackTest.java | 1348 MediaExtractor extractor = new MediaExtractor(); 1350 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), 1354 extractor.getTrackFormat(0), extractor.getTrackFormat(0), numFrames); 1355 extractor.selectTrack(0); 1370 int sampleSize = extractor.readSampleData(readBuf, 0 /* offset */); 1395 extractor.getSampleTime(), 1396 extractor.getSampleFlags(), 1398 extractor.advance(); 1401 extractor.release();
|
D | HeifWriterTest.java | 638 MediaExtractor extractor = new MediaExtractor(); in verifyResult() local 639 extractor.setDataSource(filename); in verifyResult() 640 MediaFormat format = extractor.getTrackFormat(0); in verifyResult() 649 extractor.release(); in verifyResult()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 619 MediaExtractor extractor = new MediaExtractor(); in getTrackFormatForResource() local 622 extractor.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in getTrackFormatForResource() 626 return getTrackFormatForExtractor(extractor, mimeTypePrefix); in getTrackFormatForResource() 632 MediaExtractor extractor = getExtractorForPath(context, path); in getTrackFormatForPath() local 633 return getTrackFormatForExtractor(extractor, mimeTypePrefix); in getTrackFormatForPath() 637 MediaExtractor extractor, in getTrackFormatForExtractor() argument 641 for (trackIndex = 0; trackIndex < extractor.getTrackCount(); trackIndex++) { in getTrackFormatForExtractor() 642 MediaFormat trackMediaFormat = extractor.getTrackFormat(trackIndex); in getTrackFormatForExtractor() 648 extractor.release(); in getTrackFormatForExtractor() 659 MediaExtractor extractor = new MediaExtractor(); in createMediaExtractorForMimeType() local [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 617 MediaExtractor extractor = new MediaExtractor(); in getTrackFormatForResource() local 620 extractor.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in getTrackFormatForResource() 624 return getTrackFormatForExtractor(extractor, mimeTypePrefix); in getTrackFormatForResource() 630 MediaExtractor extractor = getExtractorForPath(context, path); in getTrackFormatForPath() local 631 return getTrackFormatForExtractor(extractor, mimeTypePrefix); in getTrackFormatForPath() 635 MediaExtractor extractor, in getTrackFormatForExtractor() argument 639 for (trackIndex = 0; trackIndex < extractor.getTrackCount(); trackIndex++) { in getTrackFormatForExtractor() 640 MediaFormat trackMediaFormat = extractor.getTrackFormat(trackIndex); in getTrackFormatForExtractor() 646 extractor.release(); in getTrackFormatForExtractor() 657 MediaExtractor extractor = new MediaExtractor(); in createMediaExtractorForMimeType() local [all …]
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-mediadrm-jni.cpp | 340 static void addTracks(const AMediaExtractor* extractor, in addTracks() argument 344 const_cast<AMediaExtractor*>(extractor)); in addTracks() 349 const_cast<AMediaExtractor*>(extractor), i); in addTracks() 363 const_cast<AMediaExtractor*>(extractor), i); in addTracks() 371 const_cast<AMediaExtractor*>(extractor), 0, in addTracks() 385 static void fillDecoder(AMediaCodec* codec, AMediaExtractor* extractor, in fillDecoder() argument 394 int sampleSize = AMediaExtractor_readSampleData(extractor, buf, bufsize); in fillDecoder() 400 *presentationTimeUs = AMediaExtractor_getSampleTime(extractor); in fillDecoder() 403 AMediaExtractor_getSampleCryptoInfo(extractor); in fillDecoder() 417 AMediaExtractor_advance(extractor); in fillDecoder()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 956 private MediaExtractor extractor=null; field in RVCVXCheckAnalyzer.VideoDecoderForOpenCV 1038 if (extractor!=null) { in teardown() 1039 extractor.release(); in teardown() 1040 extractor = null; in teardown() 1047 extractor = new MediaExtractor(); in setup() 1050 extractor.setDataSource(mVideoFile.getPath()); in setup() 1055 for (int i = 0; i < extractor.getTrackCount(); i++) { in setup() 1056 MediaFormat format = extractor.getTrackFormat(i); in setup() 1062 extractor.selectTrack(i); in setup() 1117 int sampleSize = extractor.readSampleData(buffer, 0); in run() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | HeifWriterTest.java | 348 MediaExtractor extractor = new MediaExtractor(); in verifyResult() local 349 extractor.setDataSource(filename); in verifyResult() 350 MediaFormat format = extractor.getTrackFormat(0); in verifyResult() 359 extractor.release(); in verifyResult()
|
D | RecordingTest.java | 1811 MediaExtractor extractor = new MediaExtractor(); in validateRecording() local 1813 extractor.setDataSource(mOutMediaFileName); in validateRecording() 1816 int numTracks = extractor.getTrackCount(); in validateRecording() 1820 MediaFormat format = extractor.getTrackFormat(i); in validateRecording() 1828 extractor.selectTrack(i); in validateRecording() 1864 timestamps.add(extractor.getSampleTime()); in validateRecording() 1865 if (!extractor.advance()) { in validateRecording() 1894 extractor.release(); in validateRecording()
|