Home
last modified time | relevance | path

Searched refs:globalStyles (Results 1 – 6 of 6) sorted by relevance

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/ttml/
DTtmlRenderUtilTest.java44 Map<String, TtmlStyle> globalStyles = getGlobalStyles(); in resolveStyleSingleReferentialStyle() local
47 assertThat(TtmlRenderUtil.resolveStyle(null, styleIds, globalStyles)) in resolveStyleSingleReferentialStyle()
48 .isSameInstanceAs(globalStyles.get("s0")); in resolveStyleSingleReferentialStyle()
53 Map<String, TtmlStyle> globalStyles = getGlobalStyles(); in resolveStyleMultipleReferentialStyles() local
56 TtmlStyle resolved = TtmlRenderUtil.resolveStyle(null, styleIds, globalStyles); in resolveStyleMultipleReferentialStyles()
57 assertThat(resolved).isNotSameInstanceAs(globalStyles.get("s0")); in resolveStyleMultipleReferentialStyles()
58 assertThat(resolved).isNotSameInstanceAs(globalStyles.get("s1")); in resolveStyleMultipleReferentialStyles()
71 Map<String, TtmlStyle> globalStyles = getGlobalStyles(); in resolveMergeSingleReferentialStyleIntoInlineStyle() local
76 TtmlStyle resolved = TtmlRenderUtil.resolveStyle(style, styleIds, globalStyles); in resolveMergeSingleReferentialStyleIntoInlineStyle()
87 Map<String, TtmlStyle> globalStyles = getGlobalStyles(); in resolveMergeMultipleReferentialStylesIntoInlineStyle() local
[all …]
DTtmlDecoderTest.java373 Map<String, TtmlStyle> globalStyles = subtitle.getGlobalStyles(); in multipleChaining() local
375 TtmlStyle style = globalStyles.get("s2"); in multipleChaining()
382 style = globalStyles.get("s3"); in multipleChaining()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ttml/
DTtmlSubtitle.java34 private final Map<String, TtmlStyle> globalStyles; field in TtmlSubtitle
40 Map<String, TtmlStyle> globalStyles, in TtmlSubtitle() argument
46 this.globalStyles = in TtmlSubtitle()
47 globalStyles != null ? Collections.unmodifiableMap(globalStyles) : Collections.emptyMap(); in TtmlSubtitle()
74 return root.getCues(timeUs, globalStyles, regionMap, imageMap); in getCues()
79 return globalStyles; in getGlobalStyles()
DTtmlRenderUtil.java50 @Nullable TtmlStyle style, @Nullable String[] styleIds, Map<String, TtmlStyle> globalStyles) { in resolveStyle() argument
57 return globalStyles.get(styleIds[0]); in resolveStyle()
62 chainedStyle.chain(globalStyles.get(id)); in resolveStyle()
69 return style.chain(globalStyles.get(styleIds[0])); in resolveStyle()
73 style.chain(globalStyles.get(id)); in resolveStyle()
DTtmlNode.java237 Map<String, TtmlStyle> globalStyles, in getCues() argument
246 traverseForStyle(timeUs, globalStyles, regionTextOutputs); in getCues()
355 long timeUs, Map<String, TtmlStyle> globalStyles, Map<String, Cue.Builder> regionOutputs) { in traverseForStyle() argument
365 applyStyleToOutput(globalStyles, regionOutput, start, end); in traverseForStyle()
369 getChild(i).traverseForStyle(timeUs, globalStyles, regionOutputs); in traverseForStyle()
374 Map<String, TtmlStyle> globalStyles, Cue.Builder regionOutput, int start, int end) { in applyStyleToOutput() argument
375 @Nullable TtmlStyle resolvedStyle = TtmlRenderUtil.resolveStyle(style, styleIds, globalStyles); in applyStyleToOutput()
DTtmlDecoder.java114 Map<String, TtmlStyle> globalStyles = new HashMap<>(); in decode() local
141 parseHeader(xmlParser, globalStyles, cellResolution, ttsExtent, regionMap, imageMap); in decode()
161 Assertions.checkNotNull(nodeStack.peek()), globalStyles, regionMap, imageMap); in decode()
271 Map<String, TtmlStyle> globalStyles, in parseHeader() argument
284 style.chain(globalStyles.get(id)); in parseHeader()
289 globalStyles.put(styleId, style); in parseHeader()
301 return globalStyles; in parseHeader()