Home
last modified time | relevance | path

Searched refs:timeUs (Results 1 – 25 of 475) sorted by relevance

12345678910>>...19

/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DSeekPoint.java27 public final long timeUs; field in SeekPoint
36 public SeekPoint(long timeUs, long position) { in SeekPoint() argument
37 this.timeUs = timeUs; in SeekPoint()
43 return "[timeUs=" + timeUs + ", position=" + position + "]"; in toString()
55 return timeUs == other.timeUs && position == other.position; in equals()
60 int result = (int) timeUs; in hashCode()
DBinarySearchSeeker.java67 public long timeUsToTargetTime(long timeUs) { in timeUsToTargetTime() argument
68 return timeUs; in timeUsToTargetTime()
81 long timeUsToTargetTime(long timeUs); in timeUsToTargetTime() argument
150 public final void setSeekTargetUs(long timeUs) { in setSeekTargetUs() argument
151 if (seekOperationParams != null && seekOperationParams.getSeekTimeUs() == timeUs) { in setSeekTargetUs()
154 seekOperationParams = createSeekParamsForTargetTimeUs(timeUs); in setSeekTargetUs()
220 protected SeekOperationParams createSeekParamsForTargetTimeUs(long timeUs) { in createSeekParamsForTargetTimeUs() argument
222 timeUs, in createSeekParamsForTargetTimeUs()
223 seekMap.timeUsToTargetTime(timeUs), in createSeekParamsForTargetTimeUs()
514 public SeekPoints getSeekPoints(long timeUs) { in getSeekPoints() argument
[all …]
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/
DConstantBitrateSeekMapTest.java64 assertThat(seekPoints.first.timeUs).isEqualTo(0); in getSeekPoints_forUnseekableInput_returnSeekPoint0()
104 assertThat(seekPoints.first.timeUs).isEqualTo(0); in getSeekPoints_forSeekableInput_forSyncPosition0_return1SeekPoint()
120 assertThat(seekPoints.first.timeUs).isEqualTo(1_200_000); in getSeekPoints_forSeekableInput_forSeekPointAtSyncPosition_return1SeekPoint()
136 assertThat(seekPoints.first.timeUs).isEqualTo(300_000); in getSeekPoints_forSeekableInput_forNonSyncSeekPosition_return2SeekPoints()
138 assertThat(seekPoints.second.timeUs).isEqualTo(400_000); in getSeekPoints_forSeekableInput_forNonSyncSeekPosition_return2SeekPoints()
151 assertThat(seekPoints.first.timeUs).isEqualTo(2_100_000); in getSeekPoints_forSeekableInput_forSeekPointWithinLastFrame_return1SeekPoint()
165 assertThat(seekPoints.first.timeUs).isEqualTo(2_100_000); in getSeekPoints_forSeekableInput_forSeekPointAtEndOfStream_return1SeekPoint()
178 long timeUs = constantBitrateSeekMap.getTimeUsAtPosition(0); in getTimeUsAtPosition_forPosition0_return0() local
179 assertThat(timeUs).isEqualTo(0); in getTimeUsAtPosition_forPosition0_return0()
190 long timeUs = constantBitrateSeekMap.getTimeUsAtPosition(1234); in getTimeUsAtPosition_forPositionWithinStream_returnCorrectTime() local
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/
DSubtitleOutputBuffer.java41 public void setContent(long timeUs, Subtitle subtitle, long subsampleOffsetUs) { in setContent() argument
42 this.timeUs = timeUs; in setContent()
44 this.subsampleOffsetUs = subsampleOffsetUs == Format.OFFSET_SAMPLE_RELATIVE ? this.timeUs in setContent()
59 public int getNextEventTimeIndex(long timeUs) { in getNextEventTimeIndex() argument
60 return Assertions.checkNotNull(subtitle).getNextEventTimeIndex(timeUs - subsampleOffsetUs); in getNextEventTimeIndex()
64 public List<Cue> getCues(long timeUs) { in getCues() argument
65 return Assertions.checkNotNull(subtitle).getCues(timeUs - subsampleOffsetUs); in getCues()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/
DIndexSeeker.java69 public SeekPoints getSeekPoints(long timeUs) { in getSeekPoints() argument
71 Util.binarySearchFloor(timesUs, timeUs, /* inclusive= */ true, /* stayInBounds= */ true); in getSeekPoints()
73 if (seekPoint.timeUs >= timeUs || targetIndex == timesUs.size() - 1) { in getSeekPoints()
90 public void maybeAddSeekPoint(long timeUs, long position) { in maybeAddSeekPoint() argument
91 if (isTimeUsInIndex(timeUs)) { in maybeAddSeekPoint()
94 timesUs.add(timeUs); in maybeAddSeekPoint()
104 public boolean isTimeUsInIndex(long timeUs) { in isTimeUsInIndex() argument
106 return timeUs - lastIndexedTimeUs < MIN_TIME_BETWEEN_POINTS_US; in isTimeUsInIndex()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DSampleQueue.java372 public final synchronized boolean seekTo(long timeUs, boolean allowTimeBeyondBuffer) { in seekTo() argument
376 || timeUs < timesUs[relativeReadIndex] in seekTo()
377 || (timeUs > largestQueuedTimestampUs && !allowTimeBeyondBuffer)) { in seekTo()
381 findSampleBefore(relativeReadIndex, length - readPosition, timeUs, /* keyframe= */ true); in seekTo()
395 public final synchronized int advanceTo(long timeUs) { in advanceTo() argument
397 if (!hasNextSample() || timeUs < timesUs[relativeReadIndex]) { in advanceTo()
401 findSampleBefore(relativeReadIndex, length - readPosition, timeUs, /* keyframe= */ true); in advanceTo()
430 public final void discardTo(long timeUs, boolean toKeyframe, boolean stopAtReadPosition) { in discardTo() argument
432 discardSampleMetadataTo(timeUs, toKeyframe, stopAtReadPosition)); in discardTo()
498 long timeUs, in sampleMetadata() argument
[all …]
/external/exoplayer/tree/testdata/src/test/assets/mp3/
Dbear-cbr-variable-frame-size-no-seek-table.mp3.3.dump4 getPosition(0) = [[timeUs=0, position=240]]
5 getPosition(1) = [[timeUs=0, position=240], [timeUs=26062, position=657]]
6 getPosition(1410593) = [[timeUs=1407375, position=22758], [timeUs=1433437, position=23175]]
7 getPosition(2821187) = [[timeUs=2795125, position=44962]]
Dbear-vbr-no-seek-table.mp3.3.dump4 getPosition(0) = [[timeUs=0, position=224]]
5 getPosition(1) = [[timeUs=0, position=224], [timeUs=120000, position=2048]]
6 getPosition(1404000) = [[timeUs=1320000, position=18896], [timeUs=1440000, position=20528]]
7 getPosition(2808000) = [[timeUs=2760000, position=38168]]
/external/exoplayer/tree/testdata/src/test/assets/amr/
Dsample_wb_cbr.amr.3.dump4 getPosition(0) = [[timeUs=0, position=9]]
5 getPosition(1) = [[timeUs=0, position=9], [timeUs=20000, position=33]]
6 getPosition(1690000) = [[timeUs=1680000, position=2025], [timeUs=1700000, position=2049]]
7 getPosition(3380000) = [[timeUs=3360000, position=4041]]
/external/exoplayer/tree/testdata/src/test/assets/wav/
Dsample_ima_adpcm.wav.3.dump4 getPosition(0) = [[timeUs=0, position=94]]
5 getPosition(1) = [[timeUs=0, position=94], [timeUs=46281, position=1118]]
6 getPosition(509092) = [[timeUs=462811, position=10334], [timeUs=509092, position=11358]]
7 getPosition(1018185) = [[timeUs=971904, position=21598]]
Dsample_ima_adpcm.wav.2.dump4 getPosition(0) = [[timeUs=0, position=94]]
5 getPosition(1) = [[timeUs=0, position=94], [timeUs=46281, position=1118]]
6 getPosition(509092) = [[timeUs=462811, position=10334], [timeUs=509092, position=11358]]
7 getPosition(1018185) = [[timeUs=971904, position=21598]]
/external/exoplayer/tree/testdata/src/test/assets/flac/
Dbear_uncommon_sample_rate_flac.3.dump4 getPosition(0) = [[timeUs=0, position=8230]]
5 getPosition(1) = [[timeUs=0, position=8230], [timeUs=104727, position=13645]]
6 getPosition(1370500) = [[timeUs=1361454, position=80172], [timeUs=1466181, position=86628]]
7 getPosition(2741000) = [[timeUs=2618181, position=148931]]
Dbear_no_min_max_frame_size_flac.3.dump4 getPosition(0) = [[timeUs=0, position=8880]]
5 getPosition(1) = [[timeUs=0, position=8880], [timeUs=85333, position=13910]]
6 getPosition(1370500) = [[timeUs=1365333, position=90825], [timeUs=1450666, position=96601]]
7 getPosition(2741000) = [[timeUs=2645333, position=169482]]
Dbear_with_id3_disabled_flac.3.dump4 getPosition(0) = [[timeUs=0, position=55284]]
5 getPosition(1) = [[timeUs=0, position=55284], [timeUs=85333, position=60314]]
6 getPosition(1370500) = [[timeUs=1365333, position=137229], [timeUs=1450666, position=143005]]
7 getPosition(2741000) = [[timeUs=2645333, position=215886]]
Dbear_flac.3.dump4 getPosition(0) = [[timeUs=0, position=8880]]
5 getPosition(1) = [[timeUs=0, position=8880], [timeUs=85333, position=13910]]
6 getPosition(1370500) = [[timeUs=1365333, position=90825], [timeUs=1450666, position=96601]]
7 getPosition(2741000) = [[timeUs=2645333, position=169482]]
Dbear_with_picture_flac.3.dump4 getPosition(0) = [[timeUs=0, position=39868]]
5 getPosition(1) = [[timeUs=0, position=39868], [timeUs=85333, position=44898]]
6 getPosition(1370500) = [[timeUs=1365333, position=121813], [timeUs=1450666, position=127589]]
7 getPosition(2741000) = [[timeUs=2645333, position=200470]]
Dbear_with_vorbis_comments_flac.3.dump4 getPosition(0) = [[timeUs=0, position=8880]]
5 getPosition(1) = [[timeUs=0, position=8880], [timeUs=85333, position=13910]]
6 getPosition(1370500) = [[timeUs=1365333, position=90825], [timeUs=1450666, position=96601]]
7 getPosition(2741000) = [[timeUs=2645333, position=169482]]
Dbear_with_id3_enabled_flac.3.dump4 getPosition(0) = [[timeUs=0, position=55284]]
5 getPosition(1) = [[timeUs=0, position=55284], [timeUs=85333, position=60314]]
6 getPosition(1370500) = [[timeUs=1365333, position=137229], [timeUs=1450666, position=143005]]
7 getPosition(2741000) = [[timeUs=2645333, position=215886]]
/external/exoplayer/tree/testdata/src/test/assets/ts/
Dsample_cbs_truncated.adts.3.dump4 getPosition(0) = [[timeUs=0, position=0]]
5 getPosition(1) = [[timeUs=0, position=0], [timeUs=23219, position=220]]
6 getPosition(1677858) = [[timeUs=1671789, position=15840], [timeUs=1695009, position=16060]]
7 getPosition(3355717) = [[timeUs=3332497, position=31575]]
Dsample_cbs.adts.3.dump4 getPosition(0) = [[timeUs=0, position=0]]
5 getPosition(1) = [[timeUs=0, position=0], [timeUs=23219, position=220]]
6 getPosition(1678386) = [[timeUs=1671789, position=15840], [timeUs=1695009, position=16060]]
7 getPosition(3356772) = [[timeUs=3333553, position=31585]]
/external/exoplayer/tree/testdata/src/test/assets/mkv/
Dfull_blocks.mkv.0.dump4 getPosition(0) = [[timeUs=0, position=5401]]
5 getPosition(1) = [[timeUs=0, position=5401], [timeUs=2345000, position=5401]]
6 getPosition(4450500) = [[timeUs=2345000, position=5401], [timeUs=4567000, position=5401]]
7 getPosition(8901000) = [[timeUs=4567000, position=5401]]
Dfull_blocks.mkv.2.dump4 getPosition(0) = [[timeUs=0, position=5401]]
5 getPosition(1) = [[timeUs=0, position=5401], [timeUs=2345000, position=5401]]
6 getPosition(4450500) = [[timeUs=2345000, position=5401], [timeUs=4567000, position=5401]]
7 getPosition(8901000) = [[timeUs=4567000, position=5401]]
Dfull_blocks.mkv.unknown_length.dump4 getPosition(0) = [[timeUs=0, position=5401]]
5 getPosition(1) = [[timeUs=0, position=5401], [timeUs=2345000, position=5401]]
6 getPosition(4450500) = [[timeUs=2345000, position=5401], [timeUs=4567000, position=5401]]
7 getPosition(8901000) = [[timeUs=4567000, position=5401]]
Dfull_blocks.mkv.3.dump4 getPosition(0) = [[timeUs=0, position=5401]]
5 getPosition(1) = [[timeUs=0, position=5401], [timeUs=2345000, position=5401]]
6 getPosition(4450500) = [[timeUs=2345000, position=5401], [timeUs=4567000, position=5401]]
7 getPosition(8901000) = [[timeUs=4567000, position=5401]]
Dfull_blocks.mkv.1.dump4 getPosition(0) = [[timeUs=0, position=5401]]
5 getPosition(1) = [[timeUs=0, position=5401], [timeUs=2345000, position=5401]]
6 getPosition(4450500) = [[timeUs=2345000, position=5401], [timeUs=4567000, position=5401]]
7 getPosition(8901000) = [[timeUs=4567000, position=5401]]

12345678910>>...19