Home
last modified time | relevance | path

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

/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DPeriod.java41 public final List<AdaptationSet> adaptationSets; field in Period
56 public Period(@Nullable String id, long startMs, List<AdaptationSet> adaptationSets) { in Period() argument
57 this(id, startMs, adaptationSets, Collections.emptyList(), /* assetIdentifier= */ null); in Period()
66 public Period(@Nullable String id, long startMs, List<AdaptationSet> adaptationSets, in Period() argument
68 this(id, startMs, adaptationSets, eventStreams, /* assetIdentifier= */ null); in Period()
81 List<AdaptationSet> adaptationSets, in Period() argument
86 this.adaptationSets = Collections.unmodifiableList(adaptationSets); in Period()
99 int adaptationCount = adaptationSets.size(); in getAdaptationSetIndex()
101 if (adaptationSets.get(i).type == type) { in getAdaptationSetIndex()
DDashManifest.java188 copyAdaptationSets(period.adaptationSets, keys); in copy()
211 List<AdaptationSet> adaptationSets, LinkedList<StreamKey> keys) { in copyAdaptationSets() argument
217 AdaptationSet adaptationSet = adaptationSets.get(adaptationSetIndex); in copyAdaptationSets()
DDashManifestParser.java230 List<AdaptationSet> adaptationSets = new ArrayList<>(); in parsePeriod() local
241 adaptationSets.add(parseAdaptationSet(xpp, baseUrl, segmentBase, durationMs)); in parsePeriod()
258 buildPeriod(id, startMs, adaptationSets, eventStreams, assetIdentifier), durationMs); in parsePeriod()
264 List<AdaptationSet> adaptationSets, in buildPeriod() argument
267 return new Period(id, startMs, adaptationSets, eventStreams, assetIdentifier); in buildPeriod()
/external/exoplayer/tree/library/dash/src/test/java/com/google/android/exoplayer2/source/dash/
DDashMediaPeriodTest.java151 List<AdaptationSet> adaptationSets = manifest.getPeriod(0).adaptationSets; in adaptationSetSwitchingProperty_mergesTrackGroups() local
158 adaptationSets.get(0).representations.get(0).format, in adaptationSetSwitchingProperty_mergesTrackGroups()
159 adaptationSets.get(0).representations.get(1).format, in adaptationSetSwitchingProperty_mergesTrackGroups()
160 adaptationSets.get(2).representations.get(0).format, in adaptationSetSwitchingProperty_mergesTrackGroups()
161 adaptationSets.get(2).representations.get(1).format, in adaptationSetSwitchingProperty_mergesTrackGroups()
162 adaptationSets.get(3).representations.get(0).format), in adaptationSetSwitchingProperty_mergesTrackGroups()
163 new TrackGroup(adaptationSets.get(1).representations.get(0).format)); in adaptationSetSwitchingProperty_mergesTrackGroups()
196 List<AdaptationSet> adaptationSets = manifest.getPeriod(0).adaptationSets; in trickPlayProperty_mergesTrackGroups() local
203 adaptationSets.get(0).representations.get(0).format, in trickPlayProperty_mergesTrackGroups()
204 adaptationSets.get(0).representations.get(1).format, in trickPlayProperty_mergesTrackGroups()
[all …]
DDashUtilTest.java68 private static Period newPeriod(AdaptationSet... adaptationSets) { in newPeriod() argument
69 return new Period("", 0, Arrays.asList(adaptationSets)); in newPeriod()
/external/exoplayer/tree/library/dash/src/test/java/com/google/android/exoplayer2/source/dash/manifest/
DDashManifestParserTest.java83 assertThat(period.adaptationSets).hasSize(2); in parseMediaPresentationDescription_segmentTemplate()
85 for (AdaptationSet adaptationSet : period.adaptationSets) { in parseMediaPresentationDescription_segmentTemplate()
194 List<AdaptationSet> adaptationSets = manifest.getPeriod(0).adaptationSets; in parseMediaPresentationDescription_labels() local
196 assertThat(adaptationSets.get(0).representations.get(0).format.label).isEqualTo("audio label"); in parseMediaPresentationDescription_labels()
197 assertThat(adaptationSets.get(1).representations.get(0).format.label).isEqualTo("video label"); in parseMediaPresentationDescription_labels()
208 List<AdaptationSet> adaptationSets = manifest.getPeriod(0).adaptationSets; in parseMediaPresentationDescription_text() local
210 Format format = adaptationSets.get(0).representations.get(0).format; in parseMediaPresentationDescription_text()
214 assertThat(adaptationSets.get(0).type).isEqualTo(C.TRACK_TYPE_TEXT); in parseMediaPresentationDescription_text()
216 format = adaptationSets.get(1).representations.get(0).format; in parseMediaPresentationDescription_text()
220 assertThat(adaptationSets.get(1).type).isEqualTo(C.TRACK_TYPE_TEXT); in parseMediaPresentationDescription_text()
[all …]
DDashManifestTest.java185 List<AdaptationSet> expectedAdaptationSets = expectedPeriod.adaptationSets; in assertManifestEquals()
186 List<AdaptationSet> actualAdaptationSets = actualPeriod.adaptationSets; in assertManifestEquals()
237 private static Period newPeriod(String id, int startMs, AdaptationSet... adaptationSets) { in newPeriod() argument
238 return new Period(id, startMs, Arrays.asList(adaptationSets)); in newPeriod()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashMediaPeriod.java134 buildTrackGroups(drmSessionManager, period.adaptationSets, eventStreams); in DashMediaPeriod()
209 List<AdaptationSet> manifestAdaptationSets = manifest.getPeriod(periodIndex).adaptationSets; in getStreamKeys()
485 List<AdaptationSet> adaptationSets, in buildTrackGroups() argument
487 int[][] groupedAdaptationSetIndices = getGroupedAdaptationSetIndices(adaptationSets); in buildTrackGroups()
495 adaptationSets, in buildTrackGroups()
507 adaptationSets, in buildTrackGroups()
534 private static int[][] getGroupedAdaptationSetIndices(List<AdaptationSet> adaptationSets) { in getGroupedAdaptationSetIndices() argument
535 int adaptationSetCount = adaptationSets.size(); in getGroupedAdaptationSetIndices()
544 adaptationSetIdToIndex.put(adaptationSets.get(i).id, i); in getGroupedAdaptationSetIndices()
554 AdaptationSet adaptationSet = adaptationSets.get(i); in getGroupedAdaptationSetIndices()
[all …]
DDashMediaSource.java1139 int adaptationSetCount = period.adaptationSets.size(); in createPeriodSeekInfo()
1147 int type = period.adaptationSets.get(i).type; in createPeriodSeekInfo()
1155 AdaptationSet adaptationSet = period.adaptationSets.get(i); in createPeriodSeekInfo()
1317 DashSegmentIndex snapIndex = period.adaptationSets.get(videoAdaptationSetIndex) in getAdjustedWindowDefaultStartPositionUs()
DDashUtil.java214 List<Representation> representations = period.adaptationSets.get(index).representations; in getFirstRepresentation()
DDefaultDashChunkSource.java463 List<AdaptationSet> manifestAdaptationSets = manifest.getPeriod(periodIndex).adaptationSets;
/external/exoplayer/tree/playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/
DDashDownloadTest.java106 List<AdaptationSet> adaptationSets = dashManifest.getPeriod(pIndex).adaptationSets; in downloadContent() local
107 for (int aIndex = 0; aIndex < adaptationSets.size(); aIndex++) { in downloadContent()
108 AdaptationSet adaptationSet = adaptationSets.get(aIndex); in downloadContent()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/offline/
DDashDownloader.java113 List<AdaptationSet> adaptationSets = period.adaptationSets; in getSegments() local
114 for (int j = 0; j < adaptationSets.size(); j++) { in getSegments()
117 adaptationSets.get(j), in getSegments()