Home
last modified time | relevance | path

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

12345678910>>...50

/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/text/
DExoplayerCuesDecoder.java108 inputBuffer.timeUs, cueDecoder.decode(checkNotNull(inputBuffer.data).array())); in dequeueOutputBuffer()
109 outputBuffer.setContent(inputBuffer.timeUs, subtitle, /* subsampleOffsetUs=*/ 0); in dequeueOutputBuffer()
141 private final long timeUs;
144 public SingleEventSubtitle(long timeUs, ImmutableList<Cue> cues) {
145 this.timeUs = timeUs;
150 public int getNextEventTimeIndex(long timeUs) {
151 return this.timeUs > timeUs ? 0 : C.INDEX_UNSET;
162 return timeUs; in getEventTime()
166 public List<Cue> getCues(long timeUs) { in getCues() argument
167 return (timeUs >= this.timeUs) ? cues : ImmutableList.of(); in getCues()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/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()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/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()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/text/
DExoplayerCuesDecoder.java113 inputBuffer.timeUs, cueDecoder.decode(checkNotNull(inputBuffer.data).array())); in dequeueOutputBuffer()
114 outputBuffer.setContent(inputBuffer.timeUs, subtitle, /* subsampleOffsetUs=*/ 0); in dequeueOutputBuffer()
146 private final long timeUs;
149 public SingleEventSubtitle(long timeUs, ImmutableList<Cue> cues) {
150 this.timeUs = timeUs;
155 public int getNextEventTimeIndex(long timeUs) {
156 return this.timeUs > timeUs ? 0 : C.INDEX_UNSET;
167 return timeUs; in getEventTime()
171 public List<Cue> getCues(long timeUs) { in getCues() argument
172 return (timeUs >= this.timeUs) ? cues : ImmutableList.of(); in getCues()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/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_15dc86382f17a24a3e881e52e31a810c1ea44b49/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_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/source/
DSampleQueue.java272 public final void discardUpstreamFrom(long timeUs) { in discardUpstreamFrom() argument
276 checkArgument(timeUs > getLargestReadTimestampUs()); in discardUpstreamFrom()
277 int retainCount = countUnreadSamplesBefore(timeUs); in discardUpstreamFrom()
469 public final synchronized boolean seekTo(long timeUs, boolean allowTimeBeyondBuffer) { in seekTo() argument
473 || timeUs < timesUs[relativeReadIndex] in seekTo()
474 || (timeUs > largestQueuedTimestampUs && !allowTimeBeyondBuffer)) { in seekTo()
478 findSampleBefore(relativeReadIndex, length - readPosition, timeUs, /* keyframe= */ true); in seekTo()
482 startTimeUs = timeUs; in seekTo()
496 public final synchronized int getSkipCount(long timeUs, boolean allowEndOfQueue) { in getSkipCount() argument
498 if (!hasNextSample() || timeUs < timesUs[relativeReadIndex]) { in getSkipCount()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/source/
DSampleQueue.java272 public final void discardUpstreamFrom(long timeUs) { in discardUpstreamFrom() argument
276 checkArgument(timeUs > getLargestReadTimestampUs()); in discardUpstreamFrom()
277 int retainCount = countUnreadSamplesBefore(timeUs); in discardUpstreamFrom()
469 public final synchronized boolean seekTo(long timeUs, boolean allowTimeBeyondBuffer) { in seekTo() argument
473 || timeUs < timesUs[relativeReadIndex] in seekTo()
474 || (timeUs > largestQueuedTimestampUs && !allowTimeBeyondBuffer)) { in seekTo()
478 findSampleBefore(relativeReadIndex, length - readPosition, timeUs, /* keyframe= */ true); in seekTo()
482 startTimeUs = timeUs; in seekTo()
496 public final synchronized int getSkipCount(long timeUs, boolean allowEndOfQueue) { in getSkipCount() argument
498 if (!hasNextSample() || timeUs < timesUs[relativeReadIndex]) { in getSkipCount()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/text/
DSubtitleOutputBuffer.java39 public void setContent(long timeUs, Subtitle subtitle, long subsampleOffsetUs) { in setContent() argument
40 this.timeUs = timeUs; in setContent()
43 subsampleOffsetUs == Format.OFFSET_SAMPLE_RELATIVE ? this.timeUs : subsampleOffsetUs; in setContent()
57 public int getNextEventTimeIndex(long timeUs) { in getNextEventTimeIndex() argument
58 return Assertions.checkNotNull(subtitle).getNextEventTimeIndex(timeUs - subsampleOffsetUs); in getNextEventTimeIndex()
62 public List<Cue> getCues(long timeUs) { in getCues() argument
63 return Assertions.checkNotNull(subtitle).getCues(timeUs - subsampleOffsetUs); in getCues()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/text/
DSubtitleOutputBuffer.java39 public void setContent(long timeUs, Subtitle subtitle, long subsampleOffsetUs) { in setContent() argument
40 this.timeUs = timeUs; in setContent()
43 subsampleOffsetUs == Format.OFFSET_SAMPLE_RELATIVE ? this.timeUs : subsampleOffsetUs; in setContent()
57 public int getNextEventTimeIndex(long timeUs) { in getNextEventTimeIndex() argument
58 return Assertions.checkNotNull(subtitle).getNextEventTimeIndex(timeUs - subsampleOffsetUs); in getNextEventTimeIndex()
62 public List<Cue> getCues(long timeUs) { in getCues() argument
63 return Assertions.checkNotNull(subtitle).getCues(timeUs - subsampleOffsetUs); in getCues()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/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_15dc86382f17a24a3e881e52e31a810c1ea44b49/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_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeSampleStream.java67 public static FakeSampleStreamItem oneByteSample(long timeUs) { in oneByteSample() argument
68 return oneByteSample(timeUs, /* flags= */ 0); in oneByteSample()
79 public static FakeSampleStreamItem oneByteSample(long timeUs, @C.BufferFlags int flags) { in oneByteSample() argument
80 return sample(timeUs, flags, new byte[] {0}); in oneByteSample()
91 long timeUs, @C.BufferFlags int flags, byte[] sampleData) { in sample() argument
93 /* format= */ null, new SampleInfo(sampleData.clone(), flags, timeUs)); in sample()
184 if (sampleInfo.timeUs >= startPositionUs && i >= sampleStreamItemsWritePosition) { in writeData()
191 sampleInfo.timeUs, in writeData()
268 maybeNotifyDownstreamFormat(buffer.timeUs); in readData()
280 private void maybeNotifyDownstreamFormat(long timeUs) { in maybeNotifyDownstreamFormat() argument
[all …]
DFakeTrackOutput.java120 long timeUs, in sampleMetadata() argument
136 timeUs, flags, sampleData.length - offset - size, sampleData.length - offset, cryptoData); in sampleMetadata()
144 int index, byte[] data, long timeUs, int flags, @Nullable CryptoData cryptoData) { in assertSample() argument
147 assertThat(getSampleTimeUs(index)).isEqualTo(timeUs); in assertSample()
161 return sampleInfos.get(index).timeUs; in getSampleTimeUs()
180 sampleTimesUs.add(sampleInfo.timeUs); in getSampleTimesUs()
212 long timeUs, int flags, int startOffset, int endOffset, @Nullable CryptoData cryptoData) { in addSampleInfo() argument
214 new DumpableSampleInfo(timeUs, flags, startOffset, endOffset, cryptoData, getSampleCount()); in addSampleInfo()
220 public final long timeUs; field in FakeTrackOutput.DumpableSampleInfo
228 long timeUs, in DumpableSampleInfo() argument
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeSampleStream.java67 public static FakeSampleStreamItem oneByteSample(long timeUs) { in oneByteSample() argument
68 return oneByteSample(timeUs, /* flags= */ 0); in oneByteSample()
79 public static FakeSampleStreamItem oneByteSample(long timeUs, @C.BufferFlags int flags) { in oneByteSample() argument
80 return sample(timeUs, flags, new byte[] {0}); in oneByteSample()
91 long timeUs, @C.BufferFlags int flags, byte[] sampleData) { in sample() argument
93 /* format= */ null, new SampleInfo(sampleData.clone(), flags, timeUs)); in sample()
184 if (sampleInfo.timeUs >= startPositionUs && i >= sampleStreamItemsWritePosition) { in writeData()
191 sampleInfo.timeUs, in writeData()
268 maybeNotifyDownstreamFormat(buffer.timeUs); in readData()
280 private void maybeNotifyDownstreamFormat(long timeUs) { in maybeNotifyDownstreamFormat() argument
[all …]
DFakeTrackOutput.java120 long timeUs, in sampleMetadata() argument
136 timeUs, flags, sampleData.length - offset - size, sampleData.length - offset, cryptoData); in sampleMetadata()
144 int index, byte[] data, long timeUs, int flags, @Nullable CryptoData cryptoData) { in assertSample() argument
147 assertThat(getSampleTimeUs(index)).isEqualTo(timeUs); in assertSample()
161 return sampleInfos.get(index).timeUs; in getSampleTimeUs()
180 sampleTimesUs.add(sampleInfo.timeUs); in getSampleTimesUs()
212 long timeUs, int flags, int startOffset, int endOffset, @Nullable CryptoData cryptoData) { in addSampleInfo() argument
214 new DumpableSampleInfo(timeUs, flags, startOffset, endOffset, cryptoData, getSampleCount()); in addSampleInfo()
220 public final long timeUs; field in FakeTrackOutput.DumpableSampleInfo
228 long timeUs, in DumpableSampleInfo() argument
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testdata/src/test/assets/extractordumps/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]]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testdata/src/test/assets/extractordumps/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_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testdata/src/test/assets/extractordumps/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_15dc86382f17a24a3e881e52e31a810c1ea44b49/testdata/src/test/assets/extractordumps/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_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testdata/src/test/assets/extractordumps/wav/
Dsample_rf64.wav.3.dump4 getPosition(0) = [[timeUs=0, position=80]]
5 getPosition(1) = [[timeUs=0, position=80], [timeUs=20, position=84]]
6 getPosition(174312) = [[timeUs=174291, position=33544], [timeUs=174312, position=33548]]
7 getPosition(348625) = [[timeUs=348604, position=67012]]
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]]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testdata/src/test/assets/extractordumps/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_rf64.wav.3.dump4 getPosition(0) = [[timeUs=0, position=80]]
5 getPosition(1) = [[timeUs=0, position=80], [timeUs=20, position=84]]
6 getPosition(174312) = [[timeUs=174291, position=33544], [timeUs=174312, position=33548]]
7 getPosition(348625) = [[timeUs=348604, position=67012]]

12345678910>>...50