Home
last modified time | relevance | path

Searched refs:extractorOutput (Results 1 – 25 of 43) sorted by relevance

12

/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractorSeekTest.java90 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() local
91 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr()
92 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr()
115 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() local
116 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
117 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
142 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr() local
143 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr()
144 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr()
171 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in seeking_handlesSeekingForward_extractsCorrectFrames_forNarrowBandAmr() local
[all …]
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DTsExtractorSeekTest.java88 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() local
89 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
90 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(AUDIO_TRACK_ID); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
107 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame() local
108 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
109 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(AUDIO_TRACK_ID); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
127 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame() local
128 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame()
129 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(AUDIO_TRACK_ID); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame()
149 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in handlePendingSeek_handlesSeekingForward_extractsCorrectFrame() local
[all …]
DPsExtractorSeekTest.java92 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() local
93 SeekMap seekMap = extractSeekMapAndTracks(extractor, extractorOutput); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
94 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(VIDEO_TRACK_ID); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
108 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in handlePendingSeek_handlesSeekToEoF() local
109 SeekMap seekMap = extractSeekMapAndTracks(extractor, extractorOutput); in handlePendingSeek_handlesSeekToEoF()
110 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(VIDEO_TRACK_ID); in handlePendingSeek_handlesSeekToEoF()
123 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame() local
124 SeekMap seekMap = extractSeekMapAndTracks(extractor, extractorOutput); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame()
125 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(VIDEO_TRACK_ID); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame()
142 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in handlePendingSeek_handlesSeekingForward_extractsCorrectFrame() local
[all …]
DAdtsExtractorSeekTest.java87 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() local
88 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample()
89 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample()
112 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in seeking_handlesSeekToEoF_extractsLastSample() local
113 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF_extractsLastSample()
114 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekToEoF_extractsLastSample()
138 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in seeking_handlesSeekingBackward_extractsCorrectSamples() local
139 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward_extractsCorrectSamples()
140 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekingBackward_extractsCorrectSamples()
166 FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); in seeking_handlesSeekingForward_extractsCorrectSamples() local
[all …]
DTsExtractorTest.java254 public void createTracks(ExtractorOutput extractorOutput, TrackIdGenerator idGenerator) { in createTracks() argument
256 output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_UNKNOWN); in createTracks()
288 ExtractorOutput extractorOutput, in init() argument
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/
DFlacExtractorSeekTest.java46 private FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); field in FlacExtractorSeekTest
55 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap()
66 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero()
67 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_seekTable_handlesSeekToZero()
83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF()
84 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_seekTable_handlesSeekToEoF()
100 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingBackward()
101 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_seekTable_handlesSeekingBackward()
119 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingForward()
120 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_seekTable_handlesSeekingForward()
[all …]
/external/exoplayer/tree/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractorSeekTest.java46 private FakeExtractorOutput extractorOutput = new FakeExtractorOutput(); field in FlacExtractorSeekTest
55 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap()
66 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero()
67 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_seekTable_handlesSeekToZero()
83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF()
84 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_seekTable_handlesSeekToEoF()
100 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingBackward()
101 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_seekTable_handlesSeekingBackward()
119 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingForward()
120 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_seekTable_handlesSeekingForward()
[all …]
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/
DConstantBitrateSeekerTest.java47 private FakeExtractorOutput extractorOutput; field in ConstantBitrateSeekerTest
53 extractorOutput = new FakeExtractorOutput(); in setUp()
63 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnSeekableCbrSeeker()
74 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero()
75 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekToZero()
91 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF()
92 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekToEoF()
108 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward()
109 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekingBackward()
127 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingForward()
[all …]
DIndexSeekerTest.java47 private FakeExtractorOutput extractorOutput; field in IndexSeekerTest
53 extractorOutput = new FakeExtractorOutput(); in setUp()
63 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnsSeekableSeekMap()
70 FakeExtractorOutput extractorOutput = in mp3ExtractorReads_correctsInexactDuration() local
74 SeekMap seekMap = extractorOutput.seekMap; in mp3ExtractorReads_correctsInexactDuration()
83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero()
84 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekToZero()
101 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEof()
102 FakeTrackOutput trackOutput = extractorOutput.trackOutputs.get(0); in seeking_handlesSeekToEof()
119 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/wav/
DWavExtractor.java52 private @MonotonicNonNull ExtractorOutput extractorOutput; field in WavExtractor
70 extractorOutput = output; in init()
98 outputWriter = new ImaAdPcmOutputWriter(extractorOutput, trackOutput, header); in read()
102 extractorOutput, in read()
110 extractorOutput, in read()
123 extractorOutput, trackOutput, header, MimeTypes.AUDIO_RAW, pcmEncoding); in read()
144 Util.castNonNull(extractorOutput); in assertInitialized()
184 private final ExtractorOutput extractorOutput; field in WavExtractor.PassthroughOutputWriter
206 ExtractorOutput extractorOutput, in PassthroughOutputWriter() argument
212 this.extractorOutput = extractorOutput; in PassthroughOutputWriter()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DExtractorAsserts.java285 FakeExtractorOutput extractorOutput = consumeTestData(extractor, input, 0, true); in assertOutput() local
287 extractorOutput.assertOutput(context, dumpFilesPrefix + UNKNOWN_LENGTH_EXTENSION); in assertOutput()
289 extractorOutput.assertOutput(context, dumpFilesPrefix + ".0" + DUMP_EXTENSION); in assertOutput()
293 extractorOutput.clearTrackOutputs(); in assertOutput()
295 consumeTestData(extractor, input, /* timeUs= */ 0, extractorOutput, false); in assertOutput()
297 extractorOutput.assertOutput(context, dumpFilesPrefix + UNKNOWN_LENGTH_EXTENSION); in assertOutput()
299 extractorOutput.assertOutput(context, dumpFilesPrefix + ".0" + DUMP_EXTENSION); in assertOutput()
303 SeekMap seekMap = Assertions.checkNotNull(extractorOutput.seekMap); in assertOutput()
307 extractorOutput.clearTrackOutputs(); in assertOutput()
312 consumeTestData(extractor, input, timeUs, extractorOutput, false); in assertOutput()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractor.java144 private @MonotonicNonNull ExtractorOutput extractorOutput; field in AmrExtractor
168 public void init(ExtractorOutput extractorOutput) { in init() argument
169 this.extractorOutput = extractorOutput; in init()
170 trackOutput = extractorOutput.track(/* id= */ 0, C.TRACK_TYPE_AUDIO); in init()
171 extractorOutput.endTracks(); in init()
356 extractorOutput.seekMap(seekMap); in maybeOutputSeekMap()
361 extractorOutput.seekMap(seekMap); in maybeOutputSeekMap()
374 Util.castNonNull(extractorOutput); in assertInitialized()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flv/
DFlvExtractor.java77 private @MonotonicNonNull ExtractorOutput extractorOutput; field in FlvExtractor
131 this.extractorOutput = output; in init()
148 Assertions.checkStateNotNull(extractorOutput); // Asserts that init has been called. in read()
197 extractorOutput.track(TAG_TYPE_AUDIO, C.TRACK_TYPE_AUDIO)); in readFlvHeader()
201 extractorOutput.track(TAG_TYPE_VIDEO, C.TRACK_TYPE_VIDEO)); in readFlvHeader()
203 extractorOutput.endTracks(); in readFlvHeader()
268 extractorOutput.seekMap(new SeekMap.Unseekable(durationUs)); in readTagData()
299 extractorOutput.seekMap(new SeekMap.Unseekable(C.TIME_UNSET)); in ensureReadyForMediaOutput()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/
DAdtsExtractor.java90 private @MonotonicNonNull ExtractorOutput extractorOutput; field in AdtsExtractor
164 this.extractorOutput = output; in init()
183 Assertions.checkStateNotNull(extractorOutput); // Asserts that init has been called. in read()
251 extractorOutput.seekMap(getConstantBitrateSeekMap(inputLength)); in maybeOutputSeekMap()
253 extractorOutput.seekMap(new SeekMap.Unseekable(C.TIME_UNSET)); in maybeOutputSeekMap()
DPassthroughSectionPayloadReader.java52 ExtractorOutput extractorOutput, in init() argument
56 output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_METADATA); in init()
DSeiReader.java44 public void createTracks(ExtractorOutput extractorOutput, TrackIdGenerator idGenerator) { in createTracks() argument
47 TrackOutput output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_TEXT); in createTracks()
DUserDataReader.java43 ExtractorOutput extractorOutput, TsPayloadReader.TrackIdGenerator idGenerator) { in createTracks() argument
46 TrackOutput output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_TEXT); in createTracks()
DSectionReader.java48 public void init(TimestampAdjuster timestampAdjuster, ExtractorOutput extractorOutput, in init() argument
50 reader.init(timestampAdjuster, extractorOutput, idGenerator); in init()
DDvbSubtitleReader.java58 public void createTracks(ExtractorOutput extractorOutput, TrackIdGenerator idGenerator) { in createTracks() argument
62 TrackOutput output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_TEXT); in createTracks()
DId3Reader.java61 public void createTracks(ExtractorOutput extractorOutput, TrackIdGenerator idGenerator) { in createTracks() argument
63 output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_METADATA); in createTracks()
DH262Reader.java104 public void createTracks(ExtractorOutput extractorOutput, TrackIdGenerator idGenerator) { in createTracks() argument
107 output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_VIDEO); in createTracks()
109 userDataReader.createTracks(extractorOutput, idGenerator); in createTracks()
DDtsReader.java80 public void createTracks(ExtractorOutput extractorOutput, TrackIdGenerator idGenerator) { in createTracks() argument
83 output = extractorOutput.track(idGenerator.getTrackId(), C.TRACK_TYPE_AUDIO); in createTracks()
/external/exoplayer/tree/extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractor.java77 private @MonotonicNonNull ExtractorOutput extractorOutput; field in FlacExtractor
105 extractorOutput = output; in init()
106 trackOutput = extractorOutput.track(0, C.TRACK_TYPE_AUDIO); in init()
107 extractorOutput.endTracks(); in init()
212 extractorOutput, in decodeStreamMetadata()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DMp3Extractor.java136 private @MonotonicNonNull ExtractorOutput extractorOutput; field in Mp3Extractor
190 extractorOutput = output; in init()
191 realTrackOutput = extractorOutput.track(0, C.TRACK_TYPE_AUDIO); in init()
193 extractorOutput.endTracks(); in init()
223 extractorOutput.seekMap(seeker); in read()
251 extractorOutput.seekMap(seeker); in readInternal()
517 Util.castNonNull(extractorOutput); in assertInitialized()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DStreamReader.java49 private @MonotonicNonNull ExtractorOutput extractorOutput; field in StreamReader
66 this.extractorOutput = output; in init()
177 extractorOutput.seekMap(seekMap); in readPayload()

12