Home
last modified time | relevance | path

Searched refs:positionAnchor (Results 1 – 13 of 13) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/
DCue.java235 public final @AnchorType int positionAnchor; field in Cue
319 @AnchorType int positionAnchor, in Cue() argument
328 positionAnchor, in Cue()
357 @AnchorType int positionAnchor, in Cue() argument
369 positionAnchor, in Cue()
402 @AnchorType int positionAnchor, in Cue() argument
414 positionAnchor, in Cue()
432 @AnchorType int positionAnchor, in Cue() argument
453 this.positionAnchor = positionAnchor; in Cue()
472 @AnchorType private int positionAnchor; field in Cue.Builder
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/cea/
DCea608Decoder.java624 @Cue.AnchorType int positionAnchor = Cue.ANCHOR_TYPE_END; in getDisplayCues() local
631 positionAnchor = Math.min(positionAnchor, cue.positionAnchor); in getDisplayCues()
640 if (cue.positionAnchor != positionAnchor) { in getDisplayCues()
642 cue = Assertions.checkNotNull(cueBuilders.get(i).build(positionAnchor)); in getDisplayCues()
900 int positionAnchor; in build() local
907 positionAnchor = forcedPositionAnchor; in build()
913 positionAnchor = Cue.ANCHOR_TYPE_MIDDLE; in build()
916 positionAnchor = Cue.ANCHOR_TYPE_END; in build()
919 positionAnchor = Cue.ANCHOR_TYPE_START; in build()
923 switch (positionAnchor) { in build()
[all …]
DCea708Decoder.java1327 @AnchorType int positionAnchor, in Cea708CueInfo() argument
1340 positionAnchor, in Cea708CueInfo()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/subrip/
DSubripDecoder.java181 @Cue.AnchorType int positionAnchor; in buildCue() local
186 positionAnchor = Cue.ANCHOR_TYPE_START; in buildCue()
191 positionAnchor = Cue.ANCHOR_TYPE_END; in buildCue()
197 positionAnchor = Cue.ANCHOR_TYPE_MIDDLE; in buildCue()
228 getFractionalPositionForAnchorType(positionAnchor), in buildCue()
229 positionAnchor, in buildCue()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/
DWebvttCueParser.java427 builder.positionAnchor = parsePositionAnchor(s.substring(commaIndex + 1)); in parsePositionAttribute()
750 @Cue.AnchorType public int positionAnchor; field in WebvttCueParser.WebvttCueInfoBuilder
765 positionAnchor = Cue.TYPE_UNSET; in WebvttCueInfoBuilder()
779 int positionAnchor = in toCueBuilder() local
780 this.positionAnchor != Cue.TYPE_UNSET in toCueBuilder()
781 ? this.positionAnchor in toCueBuilder()
789 .setPositionAnchor(positionAnchor) in toCueBuilder()
790 .setSize(Math.min(size, deriveMaxSize(positionAnchor, position))) in toCueBuilder()
867 private static float deriveMaxSize(@Cue.AnchorType int positionAnchor, float position) { in deriveMaxSize() argument
868 switch (positionAnchor) { in deriveMaxSize()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/subrip/
DSubripDecoderTest.java223 @Cue.AnchorType int positionAnchor) { in assertAlignmentCue() argument
229 assertThat(cue.positionAnchor).isEqualTo(positionAnchor); in assertAlignmentCue()
231 .isEqualTo(SubripDecoder.getFractionalPositionForAnchorType(positionAnchor)); in assertAlignmentCue()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/webvtt/
DWebvttDecoderTest.java194 assertThat(firstCue.positionAnchor).isEqualTo(Cue.ANCHOR_TYPE_END); in decodeWithPositioning()
219 assertThat(thirdCue.positionAnchor).isEqualTo(Cue.ANCHOR_TYPE_MIDDLE); in decodeWithPositioning()
230 assertThat(fourthCue.positionAnchor).isEqualTo(Cue.ANCHOR_TYPE_MIDDLE); in decodeWithPositioning()
239 assertThat(fifthCue.positionAnchor).isEqualTo(Cue.ANCHOR_TYPE_END); in decodeWithPositioning()
248 assertThat(sixthCue.positionAnchor).isEqualTo(Cue.ANCHOR_TYPE_MIDDLE); in decodeWithPositioning()
254 assertThat(seventhCue.positionAnchor).isEqualTo(Cue.ANCHOR_TYPE_START); in decodeWithPositioning()
260 assertThat(eighthCue.positionAnchor).isEqualTo(Cue.ANCHOR_TYPE_END); in decodeWithPositioning()
DMp4WebvttDecoderTest.java157 .that(actual.positionAnchor) in assertCuesEqual()
158 .isEqualTo(expected.positionAnchor); in assertCuesEqual()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/ssa/
DSsaDecoderTest.java71 .that(firstCue.positionAnchor) in decodeTypical()
185 .that(fifthCue.positionAnchor) in decodePositions()
198 .that(sixthCue.positionAnchor) in decodePositions()
228 .that(thirdCue.positionAnchor) in decodeInvalidPositions()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ssa/
DSsaDecoder.java310 @Cue.AnchorType int positionAnchor = toPositionAnchor(alignment); in createCue() local
322 position = computeDefaultLineOrPosition(positionAnchor); in createCue()
333 positionAnchor, in createCue()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/
DCueTest.java54 assertThat(cue.positionAnchor).isEqualTo(Cue.ANCHOR_TYPE_MIDDLE); in buildSucceeds()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSubtitlePainter.java189 && Util.areEqual(this.cuePositionAnchor, cue.positionAnchor) in draw()
219 this.cuePositionAnchor = cue.positionAnchor; in draw()
DSubtitleWebView.java165 int positionAnchorTranslatePercent = anchorTypeToTranslatePercent(cue.positionAnchor); in updateWebView()