Searched refs:mExtractor (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaExtractorTest.java | 32 protected MediaExtractor mExtractor; field in MediaExtractorTest 38 mExtractor = new MediaExtractor(); in setUp() 44 mExtractor.release(); in tearDown() 54 mExtractor.setDataSource(ds); in setDataSource() 60 mExtractor.setDataSource((MediaDataSource)null); in testNullMediaDataSourceIsRejected() 69 mExtractor.release(); in testMediaDataSourceIsClosedOnRelease() 77 mExtractor.setDataSource(dataSource); in testExtractorFailsIfMediaDataSourceThrows() 88 mExtractor.setDataSource(dataSource); in testExtractorFailsIfMediaDataSourceReturnsAnError() 100 final int trackCount = mExtractor.getTrackCount(); in testExtractFromAMediaDataSource() 103 mExtractor.selectTrack(i); in testExtractFromAMediaDataSource() [all …]
|
D | DecoderConformanceTest.java | 70 private MediaExtractor mExtractor; field in DecoderConformanceTest 127 mExtractor.release(); in releaseMediacodec() 133 mExtractor = null; in releaseMediacodec() 139 mExtractor = new MediaExtractor(); in decodeTestVector() 140 mExtractor.setDataSource(testFd.getFileDescriptor(), testFd.getStartOffset(), in decodeTestVector() 142 mExtractor.selectTrack(0); in decodeTestVector() 143 int trackIndex = mExtractor.getSampleTrackIndex(); in decodeTestVector() 144 MediaFormat format = mExtractor.getTrackFormat(trackIndex); in decodeTestVector() 177 int sampleSize = mExtractor.readSampleData(buffer, 0); in decodeTestVector() 183 … mDecoder.queueInputBuffer(inputIndex, 0, sampleSize, mExtractor.getSampleTime(), 0); in decodeTestVector() [all …]
|
D | MediaSyncTest.java | 596 private MediaExtractor mExtractor = null; field in MediaSyncTest.Decoder 640 mExtractor = MediaUtils.createMediaExtractorForMimeType( in setup() 645 mExtractor.getTrackFormat(mExtractor.getSampleTrackIndex()); in setup() 677 if (mExtractor != null) { in release() 678 mExtractor.release(); in release() 679 mExtractor = null; in release() 694 if (mExtractor == null) { in getAudioTrack() 700 mExtractor.getTrackFormat(mExtractor.getSampleTrackIndex()); in getAudioTrack() 746 if (mExtractor == null || mExtractor.getSampleTrackIndex() == -1 in onInputBufferAvailable() 752 int size = mExtractor.readSampleData(buffer, 0); in onInputBufferAvailable() [all …]
|
D | CodecState.java | 49 private MediaExtractor mExtractor; field in CodecState 67 mExtractor = extractor; in CodecState() 207 int trackIndex = mExtractor.getSampleTrackIndex(); in feedInputBuffer() 211 mExtractor.readSampleData(codecData, 0 /* offset */); in feedInputBuffer() 213 long sampleTime = mExtractor.getSampleTime(); in feedInputBuffer() 215 int sampleFlags = mExtractor.getSampleFlags(); in feedInputBuffer() 241 mExtractor.getSampleCryptoInfo(info); in feedInputBuffer() 251 mExtractor.advance(); in feedInputBuffer()
|
D | VideoEncoderTest.java | 185 private MediaExtractor mExtractor; field in VideoEncoderTest.VideoProcessorBase 219 mExtractor = new MediaExtractor(); in open() 221 mExtractor.setDataSource(mContext, Uri.parse(path), null); in open() 223 mExtractor.setDataSource(path); in open() 226 for (int i = 0; i < mExtractor.getTrackCount(); i++) { in open() 227 MediaFormat fmt = mExtractor.getTrackFormat(i); in open() 232 mExtractor.selectTrack(i); in open() 310 if (mExtractor != null) { in close() 311 mExtractor.release(); in close() 312 mExtractor = null; in close() [all …]
|