Home
last modified time | relevance | path

Searched refs:seekPoints (Results 1 – 8 of 8) sorted by relevance

/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/
DConstantBitrateSeekMapTest.java63 SeekMap.SeekPoints seekPoints = constantBitrateSeekMap.getSeekPoints(/* timeUs= */ 123); in getSeekPoints_forUnseekableInput_returnSeekPoint0() local
64 assertThat(seekPoints.first.timeUs).isEqualTo(0); in getSeekPoints_forUnseekableInput_returnSeekPoint0()
65 assertThat(seekPoints.first.position).isEqualTo(firstBytePosition); in getSeekPoints_forUnseekableInput_returnSeekPoint0()
66 assertThat(seekPoints.second).isEqualTo(seekPoints.first); in getSeekPoints_forUnseekableInput_returnSeekPoint0()
103 SeekMap.SeekPoints seekPoints = constantBitrateSeekMap.getSeekPoints(/* timeUs= */ 0); in getSeekPoints_forSeekableInput_forSyncPosition0_return1SeekPoint() local
104 assertThat(seekPoints.first.timeUs).isEqualTo(0); in getSeekPoints_forSeekableInput_forSyncPosition0_return1SeekPoint()
105 assertThat(seekPoints.first.position).isEqualTo(firstBytePosition); in getSeekPoints_forSeekableInput_forSyncPosition0_return1SeekPoint()
106 assertThat(seekPoints.second).isEqualTo(seekPoints.first); in getSeekPoints_forSeekableInput_forSyncPosition0_return1SeekPoint()
117 SeekMap.SeekPoints seekPoints = constantBitrateSeekMap.getSeekPoints(/* timeUs= */ 1_200_000); in getSeekPoints_forSeekableInput_forSeekPointAtSyncPosition_return1SeekPoint() local
120 assertThat(seekPoints.first.timeUs).isEqualTo(1_200_000); in getSeekPoints_forSeekableInput_forSeekPointAtSyncPosition_return1SeekPoint()
[all …]
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/
DXingSeekerTest.java94 SeekPoints seekPoints = seeker.getSeekPoints(0); in getSeekPointsAtStartOfStream() local
95 SeekPoint seekPoint = seekPoints.first; in getSeekPointsAtStartOfStream()
96 assertThat(seekPoint).isEqualTo(seekPoints.second); in getSeekPointsAtStartOfStream()
103 SeekPoints seekPoints = seeker.getSeekPoints(STREAM_DURATION_US); in getSeekPointsAtEndOfStream() local
104 SeekPoint seekPoint = seekPoints.first; in getSeekPointsAtEndOfStream()
105 assertThat(seekPoint).isEqualTo(seekPoints.second); in getSeekPointsAtEndOfStream()
116 SeekPoints seekPoints = seeker.getSeekPoints(timeUs); in getTimeForAllPositions() local
117 SeekPoint seekPoint = seekPoints.first; in getTimeForAllPositions()
118 assertThat(seekPoint).isEqualTo(seekPoints.second); in getTimeForAllPositions()
122 seekPoints = seekerWithInputLength.getSeekPoints(timeUs); in getTimeForAllPositions()
[all …]
/external/exoplayer/tree/extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/
DFlacDecoderJni.java229 long[] seekPoints = new long[4]; in getSeekPoints() local
230 if (!flacGetSeekPoints(nativeDecoderContext, timeUs, seekPoints)) { in getSeekPoints()
233 SeekPoint firstSeekPoint = new SeekPoint(seekPoints[0], seekPoints[1]); in getSeekPoints()
235 seekPoints[2] == seekPoints[0] in getSeekPoints()
237 : new SeekPoint(seekPoints[2], seekPoints[3]); in getSeekPoints()
DFlacExtractor.java307 @Nullable SeekPoints seekPoints = decoderJni.getSeekPoints(timeUs); in getSeekPoints() local
308 return seekPoints == null ? new SeekPoints(SeekPoint.START) : seekPoints; in getSeekPoints()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeExtractorOutput.java100 SeekMap.SeekPoints seekPoints = seekMap.getSeekPoints(0); in seekMap() local
101 if (!seekPoints.first.equals(seekPoints.second)) { in seekMap()
106 seekPoints = seekMap.getSeekPoints(durationUs); in seekMap()
107 if (!seekPoints.first.equals(seekPoints.second)) { in seekMap()
DTestUtil.java430 SeekMap.SeekPoints seekPoints = seekMap.getSeekPoints(seekTimeUs); in seekToTimeUs() local
432 long initialSeekLoadPosition = seekPoints.first.position; in seekToTimeUs()
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/
DPsExtractorSeekTest.java217 SeekMap.SeekPoints seekPoints = seekMap.getSeekPoints(seekTimeUs); in seekToTimeUs() local
219 long initialSeekLoadPosition = seekPoints.first.position; in seekToTimeUs()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DProgressiveMediaPeriod.java449 SeekPoints seekPoints = seekMap.getSeekPoints(positionUs); in getAdjustedSeekPositionUs() local
451 positionUs, seekPoints.first.timeUs, seekPoints.second.timeUs); in getAdjustedSeekPositionUs()