Home
last modified time | relevance | path

Searched refs:seekMap (Results 1 – 25 of 388) sorted by relevance

12345678910>>...16

/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/
DFlacExtractorSeekTest.java55 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap() local
57 assertThat(seekMap).isNotNull(); in flacExtractorReads_seekTable_returnSeekableSeekMap()
58 assertThat(seekMap.getDurationUs()).isEqualTo(DURATION_US); in flacExtractorReads_seekTable_returnSeekableSeekMap()
59 assertThat(seekMap.isSeekable()).isTrue(); in flacExtractorReads_seekTable_returnSeekableSeekMap()
66 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero() local
72 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToZero()
83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF() local
86 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_seekTable_handlesSeekToEoF()
89 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToEoF()
100 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingBackward() local
[all …]
/external/exoplayer/tree/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractorSeekTest.java55 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap() local
57 assertThat(seekMap).isNotNull(); in flacExtractorReads_seekTable_returnSeekableSeekMap()
58 assertThat(seekMap.getDurationUs()).isEqualTo(DURATION_US); in flacExtractorReads_seekTable_returnSeekableSeekMap()
59 assertThat(seekMap.isSeekable()).isTrue(); in flacExtractorReads_seekTable_returnSeekableSeekMap()
66 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero() local
72 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToZero()
83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF() local
86 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_seekTable_handlesSeekToEoF()
89 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_seekTable_handlesSeekToEoF()
100 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekingBackward() local
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeExtractorOutput.java74 public @MonotonicNonNull SeekMap seekMap; field in FakeExtractorOutput
98 public void seekMap(SeekMap seekMap) { in seekMap() argument
99 if (seekMap.isSeekable()) { in seekMap()
100 SeekMap.SeekPoints seekPoints = seekMap.getSeekPoints(0); in seekMap()
104 long durationUs = seekMap.getDurationUs(); in seekMap()
106 seekPoints = seekMap.getSeekPoints(durationUs); in seekMap()
112 this.seekMap = seekMap; in seekMap()
161 if (seekMap != null) { in dump()
164 .add("isSeekable", seekMap.isSeekable()) in dump()
165 .addTime("duration", seekMap.getDurationUs()) in dump()
[all …]
DExtractorAsserts.java303 SeekMap seekMap = Assertions.checkNotNull(extractorOutput.seekMap); in assertOutput() local
304 if (seekMap.isSeekable()) { in assertOutput()
305 long durationUs = seekMap.getDurationUs(); in assertOutput()
309 long position = seekMap.getSeekPoints(timeUs).first.position; in assertOutput()
360 || (output.seekMap != null && output.seekMap.getDurationUs() != C.TIME_UNSET); in consumeTestData()
DTestUtil.java356 && (output.seekMap == null || !output.tracksEnded)) { in extractSeekMap()
369 if (output.seekMap != null) { in extractSeekMap()
370 return output.seekMap; in extractSeekMap()
423 SeekMap seekMap, in seekToTimeUs() argument
430 SeekMap.SeekPoints seekPoints = seekMap.getSeekPoints(seekTimeUs); in seekToTimeUs()
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractorSeekTest.java69 SeekMap seekMap = in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() local
72 assertThat(seekMap).isNotNull(); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr()
73 assertThat(seekMap.getDurationUs()).isEqualTo(NARROW_BAND_FILE_DURATION_US); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr()
74 assertThat(seekMap.isSeekable()).isTrue(); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr()
91 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() local
97 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr()
116 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() local
119 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
123 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr()
143 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward_extractsCorrectFrames_forNarrowBandAmr() local
[all …]
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DTsExtractorSeekTest.java74 SeekMap seekMap = in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap() local
77 assertThat(seekMap).isNotNull(); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
78 assertThat(seekMap.getDurationUs()).isEqualTo(DURATION_US); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
79 assertThat(seekMap.isSeekable()).isTrue(); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
89 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() local
95 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
108 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame() local
111 long targetSeekTimeUs = seekMap.getDurationUs(); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
115 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame()
128 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame() local
[all …]
DPsExtractorSeekTest.java80 SeekMap seekMap = extractSeekMapAndTracks(extractor, new FakeExtractorOutput()); in psExtractorReads_nonSeekTableFile_returnSeekableSeekMap() local
82 assertThat(seekMap).isNotNull(); in psExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
83 assertThat(seekMap.getDurationUs()).isEqualTo(DURATION_US); in psExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
84 assertThat(seekMap.isSeekable()).isTrue(); in psExtractorReads_nonSeekTableFile_returnSeekableSeekMap()
93 SeekMap seekMap = extractSeekMapAndTracks(extractor, extractorOutput); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() local
97 int extractedFrameIndex = seekToTimeUs(extractor, seekMap, targetSeekTimeUs, trackOutput); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame()
109 SeekMap seekMap = extractSeekMapAndTracks(extractor, extractorOutput); in handlePendingSeek_handlesSeekToEoF() local
112 long targetSeekTimeUs = seekMap.getDurationUs(); in handlePendingSeek_handlesSeekToEoF()
114 int extractedFrameIndex = seekToTimeUs(extractor, seekMap, targetSeekTimeUs, trackOutput); in handlePendingSeek_handlesSeekToEoF()
124 SeekMap seekMap = extractSeekMapAndTracks(extractor, extractorOutput); in handlePendingSeek_handlesSeekingBackward_extractsCorrectFrame() local
[all …]
DAdtsExtractorSeekTest.java67 SeekMap seekMap = in adtsExtractorReads_returnSeekableSeekMap() local
70 assertThat(seekMap).isNotNull(); in adtsExtractorReads_returnSeekableSeekMap()
71 assertThat(seekMap.getDurationUs()).isEqualTo(FILE_DURATION_US); in adtsExtractorReads_returnSeekableSeekMap()
72 assertThat(seekMap.isSeekable()).isTrue(); in adtsExtractorReads_returnSeekableSeekMap()
88 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() local
94 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample()
113 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF_extractsLastSample() local
116 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_handlesSeekToEoF_extractsLastSample()
120 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF_extractsLastSample()
139 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward_extractsCorrectSamples() local
[all …]
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/
DConstantBitrateSeekerTest.java63 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnSeekableCbrSeeker() local
65 assertThat(seekMap.getClass()).isEqualTo(ConstantBitrateSeeker.class); in mp3ExtractorReads_returnSeekableCbrSeeker()
66 assertThat(seekMap.getDurationUs()).isEqualTo(2_784_000); in mp3ExtractorReads_returnSeekableCbrSeeker()
67 assertThat(seekMap.isSeekable()).isTrue(); in mp3ExtractorReads_returnSeekableCbrSeeker()
74 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero() local
80 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToZero()
91 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF() local
94 long targetSeekTimeUs = seekMap.getDurationUs(); in seeking_handlesSeekToEoF()
97 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEoF()
108 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward() local
[all …]
DIndexSeekerTest.java63 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnsSeekableSeekMap() local
65 assertThat(seekMap.isSeekable()).isTrue(); in mp3ExtractorReads_returnsSeekableSeekMap()
74 SeekMap seekMap = extractorOutput.seekMap; in mp3ExtractorReads_correctsInexactDuration() local
76 assertThat(seekMap.getDurationUs()).isEqualTo(TEST_FILE_NO_SEEK_TABLE_DURATION); in mp3ExtractorReads_correctsInexactDuration()
83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero() local
89 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToZero()
101 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEof() local
107 extractor, seekMap, targetSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekToEof()
119 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingBackward() local
123 TestUtil.seekToTimeUs(extractor, seekMap, firstSeekTimeUs, dataSource, trackOutput, fileUri); in seeking_handlesSeekingBackward()
[all …]
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/amr/
DAmrExtractor.java146 private @MonotonicNonNull SeekMap seekMap; field in AmrExtractor
193 if (position != 0 && seekMap instanceof ConstantBitrateSeekMap) { in seek()
194 timeOffsetUs = ((ConstantBitrateSeekMap) seekMap).getTimeUsAtPosition(position); in seek()
355 seekMap = new SeekMap.Unseekable(C.TIME_UNSET); in maybeOutputSeekMap()
356 extractorOutput.seekMap(seekMap); in maybeOutputSeekMap()
360 seekMap = getConstantBitrateSeekMap(inputLength); in maybeOutputSeekMap()
361 extractorOutput.seekMap(seekMap); in maybeOutputSeekMap()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DBinarySearchSeeker.java91 protected final BinarySearchSeekMap seekMap; field in BinarySearchSeeker
129 this.seekMap = in BinarySearchSeeker()
142 return seekMap; in getSeekMap()
223 seekMap.timeUsToTargetTime(timeUs), in createSeekParamsForTargetTimeUs()
224 seekMap.floorTimePosition, in createSeekParamsForTargetTimeUs()
225 seekMap.ceilingTimePosition, in createSeekParamsForTargetTimeUs()
226 seekMap.floorBytePosition, in createSeekParamsForTargetTimeUs()
227 seekMap.ceilingBytePosition, in createSeekParamsForTargetTimeUs()
228 seekMap.approxBytesPerFrame); in createSeekParamsForTargetTimeUs()
DExtractorOutput.java46 void seekMap(SeekMap seekMap); in seekMap() argument
DDummyExtractorOutput.java32 public void seekMap(SeekMap seekMap) { in seekMap() method in DummyExtractorOutput
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/
DChunkExtractorWrapper.java71 private @MonotonicNonNull SeekMap seekMap; field in ChunkExtractorWrapper
95 return seekMap; in getSeekMap()
162 public void seekMap(SeekMap seekMap) { in seekMap() method in ChunkExtractorWrapper
163 this.seekMap = seekMap; in seekMap()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DProgressiveMediaPeriod.java123 private @MonotonicNonNull SeekMap seekMap; field in ProgressiveMediaPeriod
411 positionUs = seekMap.isSeekable() ? positionUs : 0; in seekToUs()
445 if (!seekMap.isSeekable()) { in getAdjustedSeekPositionUs()
449 SeekPoints seekPoints = seekMap.getSeekPoints(positionUs); in getAdjustedSeekPositionUs()
548 if (durationUs == C.TIME_UNSET && seekMap != null) { in onLoadCompleted()
549 boolean isSeekable = seekMap.isSeekable(); in onLoadCompleted()
663 public void seekMap(SeekMap seekMap) { in seekMap() method in ProgressiveMediaPeriod
664 handler.post(() -> setSeekMap(seekMap)); in seekMap()
706 private void setSeekMap(SeekMap seekMap) { in setSeekMap() argument
707 this.seekMap = icyHeaders == null ? seekMap : new Unseekable(/* durationUs= */ C.TIME_UNSET); in setSeekMap()
[all …]
/external/exoplayer/tree/extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractor.java249 SeekMap seekMap; in outputSeekMap() local
251 seekMap = new FlacSeekMap(streamMetadata.getDurationUs(), decoderJni); in outputSeekMap()
257 seekMap = binarySearchSeeker.getSeekMap(); in outputSeekMap()
259 seekMap = new SeekMap.Unseekable(streamMetadata.getDurationUs()); in outputSeekMap()
261 output.seekMap(seekMap); in outputSeekMap()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DStreamReader.java176 SeekMap seekMap = Assertions.checkStateNotNull(oggSeeker.createSeekMap()); in readPayload() local
177 extractorOutput.seekMap(seekMap); in readPayload()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/offline/
DDashDownloader.java188 ChunkIndex seekMap = DashUtil.loadChunkIndex(dataSource, trackType, representation); in getSegmentIndex() local
189 return seekMap == null in getSegmentIndex()
191 : new DashWrappingSegmentIndex(seekMap, representation.presentationTimeOffsetUs); in getSegmentIndex()
/external/exoplayer/tree/testdata/src/test/assets/ts/
Dsample_ac3.ts.3.dump1 seekMap:
Dsample_eac3.ts.3.dump1 seekMap:
Dsample_ac4.ts.3.dump1 seekMap:
/external/exoplayer/tree/testdata/src/test/assets/mp3/
Dplay-trimmed.mp3.unknown_length.dump1 seekMap:
Dbear-id3-disabled.3.dump1 seekMap:

12345678910>>...16