/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp3/ |
D | IndexSeeker.java | 31 private final LongArray timesUs; field in IndexSeeker 39 timesUs = new LongArray(); in IndexSeeker() 41 timesUs.add(0L); in IndexSeeker() 50 return timesUs.get(targetIndex); in getTimeUs() 71 Util.binarySearchFloor(timesUs, timeUs, /* inclusive= */ true, /* stayInBounds= */ true); in getSeekPoints() 72 SeekPoint seekPoint = new SeekPoint(timesUs.get(targetIndex), positions.get(targetIndex)); in getSeekPoints() 73 if (seekPoint.timeUs >= timeUs || targetIndex == timesUs.size() - 1) { in getSeekPoints() 77 new SeekPoint(timesUs.get(targetIndex + 1), positions.get(targetIndex + 1)); in getSeekPoints() 94 timesUs.add(timeUs); in maybeAddSeekPoint() 105 long lastIndexedTimeUs = timesUs.get(timesUs.size() - 1); in isTimeUsInIndex()
|
D | VbriSeeker.java | 65 long[] timesUs = new long[entryCount]; in create() local 68 timesUs[index] = (index * durationUs) / entryCount; in create() 94 return new VbriSeeker(timesUs, positions, durationUs, /* dataEndPosition= */ position); in create() 97 private final long[] timesUs; field in VbriSeeker 102 private VbriSeeker(long[] timesUs, long[] positions, long durationUs, long dataEndPosition) { in VbriSeeker() argument 103 this.timesUs = timesUs; in VbriSeeker() 116 int tableIndex = Util.binarySearchFloor(timesUs, timeUs, true, true); in getSeekPoints() 117 SeekPoint seekPoint = new SeekPoint(timesUs[tableIndex], positions[tableIndex]); in getSeekPoints() 118 if (seekPoint.timeUs >= timeUs || tableIndex == timesUs.length - 1) { in getSeekPoints() 121 SeekPoint nextSeekPoint = new SeekPoint(timesUs[tableIndex + 1], positions[tableIndex + 1]); in getSeekPoints() [all …]
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ |
D | ChunkIndex.java | 49 public final long[] timesUs; field in ChunkIndex 59 public ChunkIndex(int[] sizes, long[] offsets, long[] durationsUs, long[] timesUs) { in ChunkIndex() argument 63 this.timesUs = timesUs; in ChunkIndex() 66 durationUs = durationsUs[length - 1] + timesUs[length - 1]; in ChunkIndex() 79 return Util.binarySearchFloor(timesUs, timeUs, /* inclusive= */ true, /* stayInBounds= */ true); in getChunkIndex() 97 SeekPoint seekPoint = new SeekPoint(timesUs[chunkIndex], offsets[chunkIndex]); in getSeekPoints() 101 SeekPoint nextSeekPoint = new SeekPoint(timesUs[chunkIndex + 1], offsets[chunkIndex + 1]); in getSeekPoints() 116 + Arrays.toString(timesUs) in toString()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | SampleQueue.java | 71 private long[] timesUs; field in SampleQueue 117 timesUs = new long[capacity]; in SampleQueue() 276 return length == 0 ? Long.MIN_VALUE : timesUs[relativeFirstIndex]; in getFirstTimestampUs() 376 || timeUs < timesUs[relativeReadIndex] in seekTo() 397 if (!hasNextSample() || timeUs < timesUs[relativeReadIndex]) { in advanceTo() 570 long timeUs = timesUs[relativeReadIndex]; in readSampleMetadata() 602 buffer.timeUs = timesUs[relativeReadIndex]; in readSampleMetadata() 638 if (length == 0 || timeUs < timesUs[relativeFirstIndex]) { in discardSampleMetadataTo() 691 timesUs[relativeEndIndex] = timeUs; in commitSample() 713 System.arraycopy(timesUs, relativeFirstIndex, newTimesUs, 0, beforeWrap); in commitSample() [all …]
|
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/ |
D | DashWrappingSegmentIndex.java | 51 return chunkIndex.timesUs[(int) segmentNum] - timeOffsetUs; in getTimeUs()
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/ |
D | MatroskaExtractor.java | 1644 long[] timesUs = new long[cuePointsSize]; in buildSeekMap() local 1646 timesUs[i] = cueTimesUs.get(i); in buildSeekMap() 1651 durationsUs[i] = timesUs[i + 1] - timesUs[i]; in buildSeekMap() 1655 durationsUs[cuePointsSize - 1] = durationUs - timesUs[cuePointsSize - 1]; in buildSeekMap() 1663 timesUs = Arrays.copyOf(timesUs, timesUs.length - 1); in buildSeekMap() 1668 return new ChunkIndex(sizes, offsets, durationsUs, timesUs); in buildSeekMap()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | CachedRegionTracker.java | 92 return (int) ((chunkIndex.timesUs[index] + segmentFractionUs) / 1000); in getRegionEndTimeMs()
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/ |
D | FragmentedMp4Extractor.java | 1163 long[] timesUs = new long[referenceCount]; in parseSidx() local 1181 timesUs[i] = timeUs; in parseSidx() 1184 durationsUs[i] = timeUs - timesUs[i]; in parseSidx() 1191 new ChunkIndex(sizes, offsets, durationsUs, timesUs)); in parseSidx()
|