Searched refs:cueTimesUs (Results 1 – 6 of 6) sorted by relevance
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ssa/ |
D | SsaSubtitle.java | 32 private final List<Long> cueTimesUs; field in SsaSubtitle 38 public SsaSubtitle(List<List<Cue>> cues, List<Long> cueTimesUs) { in SsaSubtitle() argument 40 this.cueTimesUs = cueTimesUs; in SsaSubtitle() 45 int index = Util.binarySearchCeil(cueTimesUs, timeUs, false, false); in getNextEventTimeIndex() 46 return index < cueTimesUs.size() ? index : C.INDEX_UNSET; in getNextEventTimeIndex() 51 return cueTimesUs.size(); in getEventTimeCount() 57 Assertions.checkArgument(index < cueTimesUs.size()); in getEventTime() 58 return cueTimesUs.get(index); in getEventTime() 63 int index = Util.binarySearchFloor(cueTimesUs, timeUs, true, false);
|
D | SsaDecoder.java | 104 List<Long> cueTimesUs = new ArrayList<>(); in decode() local 110 parseEventBody(data, cues, cueTimesUs); in decode() 111 return new SsaSubtitle(cues, cueTimesUs); in decode() 209 private void parseEventBody(ParsableByteArray data, List<List<Cue>> cues, List<Long> cueTimesUs) { in parseEventBody() argument 221 parseDialogueLine(currentLine, format, cues, cueTimesUs); in parseEventBody() 235 String dialogueLine, SsaDialogueFormat format, List<List<Cue>> cues, List<Long> cueTimesUs) { in parseDialogueLine() argument 269 int startTimeIndex = addCuePlacerholderByTime(startTimeUs, cueTimesUs, cues); in parseDialogueLine() 270 int endTimeIndex = addCuePlacerholderByTime(endTimeUs, cueTimesUs, cues); in parseDialogueLine()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/subrip/ |
D | SubripSubtitle.java | 32 private final long[] cueTimesUs; field in SubripSubtitle 38 public SubripSubtitle(Cue[] cues, long[] cueTimesUs) { in SubripSubtitle() argument 40 this.cueTimesUs = cueTimesUs; in SubripSubtitle() 45 int index = Util.binarySearchCeil(cueTimesUs, timeUs, false, false); in getNextEventTimeIndex() 46 return index < cueTimesUs.length ? index : C.INDEX_UNSET; in getNextEventTimeIndex() 51 return cueTimesUs.length; in getEventTimeCount() 57 Assertions.checkArgument(index < cueTimesUs.length); in getEventTime() 58 return cueTimesUs[index]; in getEventTime() 63 int index = Util.binarySearchFloor(cueTimesUs, timeUs, true, false);
|
D | SubripDecoder.java | 77 LongArray cueTimesUs = new LongArray(); in decode() local 104 cueTimesUs.add(parseTimecode(matcher, /* groupOffset= */ 1)); in decode() 105 cueTimesUs.add(parseTimecode(matcher, /* groupOffset= */ 6)); in decode() 139 long[] cueTimesUsArray = cueTimesUs.toArray(); in decode()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/ |
D | WebvttSubtitle.java | 34 private final long[] cueTimesUs; field in WebvttSubtitle 40 cueTimesUs = new long[2 * cueInfos.size()]; in WebvttSubtitle() 45 cueTimesUs[arrayIndex] = cueInfo.startTimeUs; in WebvttSubtitle() 46 cueTimesUs[arrayIndex + 1] = cueInfo.endTimeUs; in WebvttSubtitle() 48 sortedCueTimesUs = Arrays.copyOf(cueTimesUs, cueTimesUs.length); in WebvttSubtitle() 77 if ((cueTimesUs[i * 2] <= timeUs) && (timeUs < cueTimesUs[i * 2 + 1])) {
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mkv/ |
D | MatroskaExtractor.java | 375 @Nullable private LongArray cueTimesUs; field in MatroskaExtractor 622 cueTimesUs = new LongArray(); in startMasterElement() 859 cueTimesUs.add(scaleTimecodeToUs(value)); in integerElement() 1633 || cueTimesUs == null || cueTimesUs.size() == 0 in buildSeekMap() 1634 || cueClusterPositions == null || cueClusterPositions.size() != cueTimesUs.size()) { in buildSeekMap() 1636 cueTimesUs = null; in buildSeekMap() 1640 int cuePointsSize = cueTimesUs.size(); in buildSeekMap() 1646 timesUs[i] = cueTimesUs.get(i); in buildSeekMap() 1666 cueTimesUs = null; in buildSeekMap()
|