Home
last modified time | relevance | path

Searched refs:extractor (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DDecoderTest.java593 MediaExtractor extractor = new MediaExtractor(); in hasAudioCsd() local
594 extractor.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in hasAudioCsd()
595 MediaFormat format = extractor.getTrackFormat(0); in hasAudioCsd()
616 MediaExtractor extractor; in decodeToMemory() local
621 extractor = new MediaExtractor(); in decodeToMemory()
622 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), in decodeToMemory()
626 assertEquals("wrong number of tracks", 1, extractor.getTrackCount()); in decodeToMemory()
627 MediaFormat format = extractor.getTrackFormat(0); in decodeToMemory()
664 extractor.selectTrack(0); in decodeToMemory()
686 extractor.readSampleData(dstBuf, 0 /* offset */); in decodeToMemory()
[all …]
DMediaMuxerTest.java181 MediaExtractor extractor = new MediaExtractor(); in cloneMediaUsingMuxer() local
182 extractor.setDataSource(srcFd.getFileDescriptor(), srcFd.getStartOffset(), in cloneMediaUsingMuxer()
185 int trackCount = extractor.getTrackCount(); in cloneMediaUsingMuxer()
195 extractor.selectTrack(i); in cloneMediaUsingMuxer()
196 MediaFormat format = extractor.getTrackFormat(i); in cloneMediaUsingMuxer()
235 bufferInfo.size = extractor.readSampleData(dstBuf, offset); in cloneMediaUsingMuxer()
244 bufferInfo.presentationTimeUs = extractor.getSampleTime(); in cloneMediaUsingMuxer()
245 bufferInfo.flags = extractor.getSampleFlags(); in cloneMediaUsingMuxer()
246 int trackIndex = extractor.getSampleTrackIndex(); in cloneMediaUsingMuxer()
250 extractor.advance(); in cloneMediaUsingMuxer()
DExtractDecodeEditEncodeMuxTest.java521 MediaExtractor extractor; in createExtractor() local
523 extractor = new MediaExtractor(); in createExtractor()
524 extractor.setDataSource(srcFd.getFileDescriptor(), srcFd.getStartOffset(), in createExtractor()
526 return extractor; in createExtractor()
602 private int getAndSelectVideoTrackIndex(MediaExtractor extractor) { in getAndSelectVideoTrackIndex() argument
603 for (int index = 0; index < extractor.getTrackCount(); ++index) { in getAndSelectVideoTrackIndex()
606 + getMimeTypeFor(extractor.getTrackFormat(index))); in getAndSelectVideoTrackIndex()
608 if (isVideoFormat(extractor.getTrackFormat(index))) { in getAndSelectVideoTrackIndex()
609 extractor.selectTrack(index); in getAndSelectVideoTrackIndex()
616 private int getAndSelectAudioTrackIndex(MediaExtractor extractor) { in getAndSelectAudioTrackIndex() argument
[all …]
DVideoDecoderPerfTest.java145 MediaExtractor extractor = new MediaExtractor(); in doDecode() local
146 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), in doDecode()
148 extractor.selectTrack(0); in doDecode()
149 int trackIndex = extractor.getSampleTrackIndex(); in doDecode()
150 MediaFormat format = extractor.getTrackFormat(trackIndex); in doDecode()
160 while ((sampleSize = extractor.readSampleData(tmpBuf, 0 /* offset */)) > 0) { in doDecode()
168 extractor.advance(); in doDecode()
175 extractor.release(); in doDecode()
DImageReaderDecoderTest.java255 MediaExtractor extractor = null; in videoDecode() local
261 extractor = new MediaExtractor(); in videoDecode()
265 extractor.setDataSource( in videoDecode()
281 extractor.setDataSource(tmpFile.getAbsolutePath()); in videoDecode()
284 mediaFormat = extractor.getTrackFormat(0); in videoDecode()
292 decoder, extractor, mediaFormat, in videoDecode()
306 if (extractor != null) { in videoDecode()
307 extractor.release(); in videoDecode()
465 MediaCodec decoder, MediaExtractor extractor, MediaFormat mediaFormat, in decodeFramesToImage() argument
484 extractor.selectTrack(0); in decodeFramesToImage()
[all …]
DCodecState.java59 MediaExtractor extractor, in CodecState() argument
67 mExtractor = extractor; in CodecState()
DAdaptivePlaybackTest.java1298 MediaExtractor extractor = new MediaExtractor();
1300 extractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(),
1304 extractor.getTrackFormat(0), extractor.getTrackFormat(0), numFrames);
1305 extractor.selectTrack(0);
1319 int sampleSize = extractor.readSampleData(readBuf, 0 /* offset */);
1339 extractor.getSampleTime(),
1340 extractor.getSampleFlags(),
1342 extractor.advance();
1345 extractor.release();
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java396 MediaExtractor extractor = new MediaExtractor(); in createMediaExtractorForMimeType() local
399 extractor.setDataSource( in createMediaExtractorForMimeType()
405 for (trackIndex = 0; trackIndex < extractor.getTrackCount(); trackIndex++) { in createMediaExtractorForMimeType()
406 MediaFormat trackMediaFormat = extractor.getTrackFormat(trackIndex); in createMediaExtractorForMimeType()
408 extractor.selectTrack(trackIndex); in createMediaExtractorForMimeType()
412 if (trackIndex == extractor.getTrackCount()) { in createMediaExtractorForMimeType()
413 extractor.release(); in createMediaExtractorForMimeType()
417 return extractor; in createMediaExtractorForMimeType()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java926 private MediaExtractor extractor=null; field in RVCVXCheckAnalyzer.VideoDecoderForOpenCV
1008 if (extractor!=null) { in teardown()
1009 extractor.release(); in teardown()
1010 extractor = null; in teardown()
1017 extractor = new MediaExtractor(); in setup()
1020 extractor.setDataSource(mVideoFile.getPath()); in setup()
1025 for (int i = 0; i < extractor.getTrackCount(); i++) { in setup()
1026 MediaFormat format = extractor.getTrackFormat(i); in setup()
1032 extractor.selectTrack(i); in setup()
1087 int sampleSize = extractor.readSampleData(buffer, 0); in run()
[all …]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DRecordingTest.java1175 MediaExtractor extractor = new MediaExtractor(); in validateRecording() local
1177 extractor.setDataSource(mOutMediaFileName); in validateRecording()
1180 int numTracks = extractor.getTrackCount(); in validateRecording()
1183 MediaFormat format = extractor.getTrackFormat(i); in validateRecording()
1211 extractor.release(); in validateRecording()