-
Notifications
You must be signed in to change notification settings - Fork 6k
/
Format.html
1772 lines (1755 loc) · 102 KB
/
Format.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet -->
<title>Format (ExoPlayer library)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Format (ExoPlayer library)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":42,"i2":10,"i3":42,"i4":42,"i5":42,"i6":42,"i7":42,"i8":42,"i9":42,"i10":42,"i11":42,"i12":41,"i13":41,"i14":41,"i15":41,"i16":41,"i17":41,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":9,"i25":10,"i26":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li><a href="#field.summary">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding"> </div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">com.google.android.exoplayer2</a></div>
<h2 title="Class Format" class="title">Class Format</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.google.android.exoplayer2.Format</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a></code></dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">Format</span>
extends <a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a>
implements <a href="Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a></pre>
<div class="block">Represents a media format.
<p>When building formats, populate all fields whose values are known and relevant to the type of
format being constructed. For information about different types of format, see ExoPlayer's <a href="https://developer.android.com/guide/topics/media/exoplayer/supported-formats">Supported
formats page</a>.
<h2>Fields commonly relevant to all formats</h2>
<ul>
<li><a href="#id"><code>id</code></a>
<li><a href="#label"><code>label</code></a>
<li><a href="#language"><code>language</code></a>
<li><a href="#selectionFlags"><code>selectionFlags</code></a>
<li><a href="#roleFlags"><code>roleFlags</code></a>
<li><a href="#averageBitrate"><code>averageBitrate</code></a>
<li><a href="#peakBitrate"><code>peakBitrate</code></a>
<li><a href="#codecs"><code>codecs</code></a>
<li><a href="#metadata"><code>metadata</code></a>
</ul>
<h2 id="container-formats">Fields relevant to container formats</h2>
<ul>
<li><a href="#containerMimeType"><code>containerMimeType</code></a>
<li>If the container only contains a single media track, <a href="#sample-formats">fields
relevant to sample formats</a> can are also be relevant and can be set to describe the
sample format of that track.
<li>If the container only contains one track of a given type (possibly alongside tracks of
other types), then fields relevant to that track type can be set to describe the properties
of the track. See the sections below for <a href="#video-formats">video</a>, <a href="#audio-formats">audio</a> and <a href="#text-formats">text</a> formats.
</ul>
<h2 id="sample-formats">Fields relevant to sample formats</h2>
<ul>
<li><a href="#sampleMimeType"><code>sampleMimeType</code></a>
<li><a href="#maxInputSize"><code>maxInputSize</code></a>
<li><a href="#initializationData"><code>initializationData</code></a>
<li><a href="#drmInitData"><code>drmInitData</code></a>
<li><a href="#subsampleOffsetUs"><code>subsampleOffsetUs</code></a>
<li>Fields relevant to the sample format's track type are also relevant. See the sections below
for <a href="#video-formats">video</a>, <a href="#audio-formats">audio</a> and <a href="#text-formats">text</a> formats.
</ul>
<h2 id="video-formats">Fields relevant to video formats</h2>
<ul>
<li><a href="#width"><code>width</code></a>
<li><a href="#height"><code>height</code></a>
<li><a href="#frameRate"><code>frameRate</code></a>
<li><a href="#rotationDegrees"><code>rotationDegrees</code></a>
<li><a href="#pixelWidthHeightRatio"><code>pixelWidthHeightRatio</code></a>
<li><a href="#projectionData"><code>projectionData</code></a>
<li><a href="#stereoMode"><code>stereoMode</code></a>
<li><a href="#colorInfo"><code>colorInfo</code></a>
</ul>
<h2 id="audio-formats">Fields relevant to audio formats</h2>
<ul>
<li><a href="#channelCount"><code>channelCount</code></a>
<li><a href="#sampleRate"><code>sampleRate</code></a>
<li><a href="#pcmEncoding"><code>pcmEncoding</code></a>
<li><a href="#encoderDelay"><code>encoderDelay</code></a>
<li><a href="#encoderPadding"><code>encoderPadding</code></a>
</ul>
<h2 id="text-formats">Fields relevant to text formats</h2>
<ul>
<li><a href="#accessibilityChannel"><code>accessibilityChannel</code></a>
</ul>
<h2 id="image-formats">Fields relevant to image formats</h2>
<ul>
<li><a href="#tileCountHorizontal"><code>tileCountHorizontal</code></a>
<li><a href="#tileCountVertical"><code>tileCountVertical</code></a>
</ul></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class </code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Format.Builder.html" title="class in com.google.android.exoplayer2">Format.Builder</a></span></code></th>
<td class="colLast">
<div class="block">Builds <a href="Format.html" title="class in com.google.android.exoplayer2"><code>Format</code></a> instances.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.com.google.android.exoplayer2.Bundleable">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface com.google.android.exoplayer2.<a href="Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a></h3>
<code><a href="Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a><<a href="Bundleable.Creator.html" title="type parameter in Bundleable.Creator">T</a> extends <a href="Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>></code></li>
</ul>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#accessibilityChannel">accessibilityChannel</a></span></code></th>
<td class="colLast">
<div class="block">The Accessibility channel, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if not known or applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#averageBitrate">averageBitrate</a></span></code></th>
<td class="colLast">
<div class="block">The average bitrate in bits per second, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#bitrate">bitrate</a></span></code></th>
<td class="colLast">
<div class="block">The bitrate in bits per second.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#channelCount">channelCount</a></span></code></th>
<td class="colLast">
<div class="block">The number of audio channels, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#codecs">codecs</a></span></code></th>
<td class="colLast">
<div class="block">Codecs of the format as described in RFC 6381, or null if unknown or not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="video/ColorInfo.html" title="class in com.google.android.exoplayer2.video">ColorInfo</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#colorInfo">colorInfo</a></span></code></th>
<td class="colLast">
<div class="block">The color metadata associated with the video, or null if not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#containerMimeType">containerMimeType</a></span></code></th>
<td class="colLast">
<div class="block">The mime type of the container, or null if unknown or not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a><<a href="Format.html" title="class in com.google.android.exoplayer2">Format</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#CREATOR">CREATOR</a></span></code></th>
<td class="colLast">
<div class="block">Object that can restore <code>Format</code> from a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>@com.google.android.exoplayer2.C.CryptoType int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#cryptoType">cryptoType</a></span></code></th>
<td class="colLast">
<div class="block">The type of crypto that must be used to decode samples associated with this format, or <a href="C.html#CRYPTO_TYPE_NONE"><code>C.CRYPTO_TYPE_NONE</code></a> if the content is not encrypted.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#drmInitData">drmInitData</a></span></code></th>
<td class="colLast">
<div class="block">DRM initialization data if the stream is protected, or null otherwise.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#encoderDelay">encoderDelay</a></span></code></th>
<td class="colLast">
<div class="block">The number of frames to trim from the start of the decoded audio stream, or 0 if not
applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#encoderPadding">encoderPadding</a></span></code></th>
<td class="colLast">
<div class="block">The number of frames to trim from the end of the decoded audio stream, or 0 if not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#frameRate">frameRate</a></span></code></th>
<td class="colLast">
<div class="block">The frame rate in frames per second, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#height">height</a></span></code></th>
<td class="colLast">
<div class="block">The height of the video in pixels, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#id">id</a></span></code></th>
<td class="colLast">
<div class="block">An identifier for the format, or null if unknown or not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a><byte[]></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#initializationData">initializationData</a></span></code></th>
<td class="colLast">
<div class="block">Initialization data that must be provided to the decoder.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#label">label</a></span></code></th>
<td class="colLast">
<div class="block">The human readable label, or null if unknown or not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#language">language</a></span></code></th>
<td class="colLast">
<div class="block">The language as an IETF BCP 47 conformant tag, or null if unknown or not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxInputSize">maxInputSize</a></span></code></th>
<td class="colLast">
<div class="block">The maximum size of a buffer of data (typically one sample), or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or
not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="metadata/Metadata.html" title="class in com.google.android.exoplayer2.metadata">Metadata</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#metadata">metadata</a></span></code></th>
<td class="colLast">
<div class="block">Metadata, or null if unknown or not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#NO_VALUE">NO_VALUE</a></span></code></th>
<td class="colLast">
<div class="block">A value for various fields to indicate that the field's value is unknown or not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#OFFSET_SAMPLE_RELATIVE">OFFSET_SAMPLE_RELATIVE</a></span></code></th>
<td class="colLast">
<div class="block">A value for <a href="#subsampleOffsetUs"><code>subsampleOffsetUs</code></a> to indicate that subsample timestamps are relative to
the timestamps of their parent samples.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>@com.google.android.exoplayer2.C.PcmEncoding int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pcmEncoding">pcmEncoding</a></span></code></th>
<td class="colLast">
<div class="block">The <a href="C.PcmEncoding.html" title="annotation in com.google.android.exoplayer2"><code>C.PcmEncoding</code></a> for PCM audio.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#peakBitrate">peakBitrate</a></span></code></th>
<td class="colLast">
<div class="block">The peak bitrate in bits per second, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pixelWidthHeightRatio">pixelWidthHeightRatio</a></span></code></th>
<td class="colLast">
<div class="block">The width to height ratio of pixels in the video, or 1.0 if unknown or not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#projectionData">projectionData</a></span></code></th>
<td class="colLast">
<div class="block">The projection data for 360/VR video, or null if not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>@com.google.android.exoplayer2.C.RoleFlags int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#roleFlags">roleFlags</a></span></code></th>
<td class="colLast">
<div class="block">Track role flags.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#rotationDegrees">rotationDegrees</a></span></code></th>
<td class="colLast">
<div class="block">The clockwise rotation that should be applied to the video for it to be rendered in the correct
orientation, or 0 if unknown or not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sampleMimeType">sampleMimeType</a></span></code></th>
<td class="colLast">
<div class="block">The sample mime type, or null if unknown or not applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sampleRate">sampleRate</a></span></code></th>
<td class="colLast">
<div class="block">The audio sampling rate in Hz, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>@com.google.android.exoplayer2.C.SelectionFlags int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectionFlags">selectionFlags</a></span></code></th>
<td class="colLast">
<div class="block">Track selection flags.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>@com.google.android.exoplayer2.C.StereoMode int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stereoMode">stereoMode</a></span></code></th>
<td class="colLast">
<div class="block">The stereo layout for 360/3D/VR video, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if not applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#subsampleOffsetUs">subsampleOffsetUs</a></span></code></th>
<td class="colLast">
<div class="block">For samples that contain subsamples, this is an offset that should be added to subsample
timestamps.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tileCountHorizontal">tileCountHorizontal</a></span></code></th>
<td class="colLast">
<div class="block">The number of horizontal tiles in an image, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if not known or applicable.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#tileCountVertical">tileCountVertical</a></span></code></th>
<td class="colLast">
<div class="block">The number of vertical tiles in an image, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if not known or applicable.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#width">width</a></span></code></th>
<td class="colLast">
<div class="block">The width of the video in pixels, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="Format.Builder.html" title="class in com.google.android.exoplayer2">Format.Builder</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#buildUpon()">buildUpon</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a <a href="Format.Builder.html" title="class in com.google.android.exoplayer2"><code>Format.Builder</code></a> initialized with the values of this instance.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithBitrate(int)">copyWithBitrate</a></span>​(int bitrate)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a> and <a href="Format.Builder.html#setAverageBitrate(int)"><code>Format.Builder.setAverageBitrate(int)</code></a> and <a href="Format.Builder.html#setPeakBitrate(int)"><code>Format.Builder.setPeakBitrate(int)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithCryptoType(@com.google.android.exoplayer2.C.CryptoTypeint)">copyWithCryptoType</a></span>​(@com.google.android.exoplayer2.C.CryptoType int cryptoType)</code></th>
<td class="colLast">
<div class="block">Returns a copy of this format with the specified <a href="#cryptoType"><code>cryptoType</code></a>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithDrmInitData(com.google.android.exoplayer2.drm.DrmInitData)">copyWithDrmInitData</a></span>​(<a href="drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a> drmInitData)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a> and <a href="Format.Builder.html#setDrmInitData(com.google.android.exoplayer2.drm.DrmInitData)"><code>Format.Builder.setDrmInitData(DrmInitData)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithFrameRate(float)">copyWithFrameRate</a></span>​(float frameRate)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a> and <a href="Format.Builder.html#setFrameRate(float)"><code>Format.Builder.setFrameRate(float)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithGaplessInfo(int,int)">copyWithGaplessInfo</a></span>​(int encoderDelay,
int encoderPadding)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a>, <a href="Format.Builder.html#setEncoderDelay(int)"><code>Format.Builder.setEncoderDelay(int)</code></a> and <a href="Format.Builder.html#setEncoderPadding(int)"><code>Format.Builder.setEncoderPadding(int)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithLabel(java.lang.String)">copyWithLabel</a></span>​(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> label)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a> and <a href="Format.Builder.html#setLabel(java.lang.String)"><code>Format.Builder.setLabel(String)</code></a> .</div>
</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithManifestFormatInfo(com.google.android.exoplayer2.Format)">copyWithManifestFormatInfo</a></span>​(<a href="Format.html" title="class in com.google.android.exoplayer2">Format</a> manifestFormat)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#withManifestFormatInfo(com.google.android.exoplayer2.Format)"><code>withManifestFormatInfo(Format)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithMaxInputSize(int)">copyWithMaxInputSize</a></span>​(int maxInputSize)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a> and <a href="Format.Builder.html#setMaxInputSize(int)"><code>Format.Builder.setMaxInputSize(int)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithMetadata(com.google.android.exoplayer2.metadata.Metadata)">copyWithMetadata</a></span>​(<a href="metadata/Metadata.html" title="class in com.google.android.exoplayer2.metadata">Metadata</a> metadata)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a> and <a href="Format.Builder.html#setMetadata(com.google.android.exoplayer2.metadata.Metadata)"><code>Format.Builder.setMetadata(Metadata)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithSubsampleOffsetUs(long)">copyWithSubsampleOffsetUs</a></span>​(long subsampleOffsetUs)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a> and <a href="Format.Builder.html#setSubsampleOffsetUs(long)"><code>Format.Builder.setSubsampleOffsetUs(long)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithVideoSize(int,int)">copyWithVideoSize</a></span>​(int width,
int height)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#buildUpon()"><code>buildUpon()</code></a>, <a href="Format.Builder.html#setWidth(int)"><code>Format.Builder.setWidth(int)</code></a> and <a href="Format.Builder.html#setHeight(int)"><code>Format.Builder.setHeight(int)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createAudioSampleFormat(java.lang.String,java.lang.String,java.lang.String,int,int,int,int,@com.google.android.exoplayer2.C.PcmEncodingint,java.util.List,com.google.android.exoplayer2.drm.DrmInitData,@com.google.android.exoplayer2.C.SelectionFlagsint,java.lang.String)">createAudioSampleFormat</a></span>​(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> id,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> sampleMimeType,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> codecs,
int bitrate,
int maxInputSize,
int channelCount,
int sampleRate,
@com.google.android.exoplayer2.C.PcmEncoding int pcmEncoding,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a><byte[]> initializationData,
<a href="drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a> drmInitData,
@com.google.android.exoplayer2.C.SelectionFlags int selectionFlags,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> language)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="Format.Builder.html" title="class in com.google.android.exoplayer2"><code>Format.Builder</code></a>.</div>
</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static <a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createAudioSampleFormat(java.lang.String,java.lang.String,java.lang.String,int,int,int,int,java.util.List,com.google.android.exoplayer2.drm.DrmInitData,@com.google.android.exoplayer2.C.SelectionFlagsint,java.lang.String)">createAudioSampleFormat</a></span>​(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> id,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> sampleMimeType,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> codecs,
int bitrate,
int maxInputSize,
int channelCount,
int sampleRate,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a><byte[]> initializationData,
<a href="drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a> drmInitData,
@com.google.android.exoplayer2.C.SelectionFlags int selectionFlags,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> language)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="Format.Builder.html" title="class in com.google.android.exoplayer2"><code>Format.Builder</code></a>.</div>
</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static <a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createContainerFormat(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,@com.google.android.exoplayer2.C.SelectionFlagsint,@com.google.android.exoplayer2.C.RoleFlagsint,java.lang.String)">createContainerFormat</a></span>​(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> id,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> label,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> containerMimeType,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> sampleMimeType,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> codecs,
int bitrate,
@com.google.android.exoplayer2.C.SelectionFlags int selectionFlags,
@com.google.android.exoplayer2.C.RoleFlags int roleFlags,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> language)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="Format.Builder.html" title="class in com.google.android.exoplayer2"><code>Format.Builder</code></a>.</div>
</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static <a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createSampleFormat(java.lang.String,java.lang.String)">createSampleFormat</a></span>​(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> id,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> sampleMimeType)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="Format.Builder.html" title="class in com.google.android.exoplayer2"><code>Format.Builder</code></a>.</div>
</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static <a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createVideoSampleFormat(java.lang.String,java.lang.String,java.lang.String,int,int,int,int,float,java.util.List,int,float,com.google.android.exoplayer2.drm.DrmInitData)">createVideoSampleFormat</a></span>​(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> id,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> sampleMimeType,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> codecs,
int bitrate,
int maxInputSize,
int width,
int height,
float frameRate,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a><byte[]> initializationData,
int rotationDegrees,
float pixelWidthHeightRatio,
<a href="drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a> drmInitData)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="Format.Builder.html" title="class in com.google.android.exoplayer2"><code>Format.Builder</code></a>.</div>
</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static <a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createVideoSampleFormat(java.lang.String,java.lang.String,java.lang.String,int,int,int,int,float,java.util.List,com.google.android.exoplayer2.drm.DrmInitData)">createVideoSampleFormat</a></span>​(<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> id,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> sampleMimeType,
<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> codecs,
int bitrate,
int maxInputSize,
int width,
int height,
float frameRate,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a><byte[]> initializationData,
<a href="drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a> drmInitData)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="Format.Builder.html" title="class in com.google.android.exoplayer2"><code>Format.Builder</code></a>.</div>
</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object)">equals</a></span>​(<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a> obj)</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPixelCount()">getPixelCount</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the number of pixels if this is a video format whose <a href="#width"><code>width</code></a> and <a href="#height"><code>height</code></a>
are known, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> otherwise</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hashCode()">hashCode</a></span>()</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#initializationDataEquals(com.google.android.exoplayer2.Format)">initializationDataEquals</a></span>​(<a href="Format.html" title="class in com.google.android.exoplayer2">Format</a> other)</code></th>
<td class="colLast">
<div class="block">Returns whether the <a href="#initializationData"><code>initializationData</code></a>s belonging to this format and <code>other</code> are
equal.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toBundle()">toBundle</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a> representing the information stored in this object.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toBundle(boolean)">toBundle</a></span>​(boolean excludeMetadata)</code></th>
<td class="colLast">
<div class="block">Returns a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a> representing the information stored in this object.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static <a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toLogString(com.google.android.exoplayer2.Format)">toLogString</a></span>​(<a href="Format.html" title="class in com.google.android.exoplayer2">Format</a> format)</code></th>
<td class="colLast">
<div class="block">Returns a prettier <a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink"><code>String</code></a> than <a href="#toString()" target="_top"><code>toString()</code></a>, intended for logging.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toString()">toString</a></span>()</code></th>
<td class="colLast"> </td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="Format.html" title="class in com.google.android.exoplayer2">Format</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#withManifestFormatInfo(com.google.android.exoplayer2.Format)">withManifestFormatInfo</a></span>​(<a href="Format.html" title="class in com.google.android.exoplayer2">Format</a> manifestFormat)</code></th>
<td class="colLast"> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></h3>
<code><a href="https://developer.android.com/reference/java/lang/Object.html#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink" target="_top">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="NO_VALUE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NO_VALUE</h4>
<pre>public static final int NO_VALUE</pre>
<div class="block">A value for various fields to indicate that the field's value is unknown or not applicable.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Format.NO_VALUE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="OFFSET_SAMPLE_RELATIVE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OFFSET_SAMPLE_RELATIVE</h4>
<pre>public static final long OFFSET_SAMPLE_RELATIVE</pre>
<div class="block">A value for <a href="#subsampleOffsetUs"><code>subsampleOffsetUs</code></a> to indicate that subsample timestamps are relative to
the timestamps of their parent samples.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Format.OFFSET_SAMPLE_RELATIVE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="id">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>id</h4>
<pre>@Nullable
public final <a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> id</pre>
<div class="block">An identifier for the format, or null if unknown or not applicable.</div>
</li>
</ul>
<a id="label">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>label</h4>
<pre>@Nullable
public final <a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> label</pre>
<div class="block">The human readable label, or null if unknown or not applicable.</div>
</li>
</ul>
<a id="language">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>language</h4>
<pre>@Nullable
public final <a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> language</pre>
<div class="block">The language as an IETF BCP 47 conformant tag, or null if unknown or not applicable.</div>
</li>
</ul>
<a id="selectionFlags">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>selectionFlags</h4>
<pre><a href="C.SelectionFlags.html" title="annotation in com.google.android.exoplayer2">@SelectionFlags</a>
public final @com.google.android.exoplayer2.C.SelectionFlags int selectionFlags</pre>
<div class="block">Track selection flags.</div>
</li>
</ul>
<a id="roleFlags">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>roleFlags</h4>
<pre><a href="C.RoleFlags.html" title="annotation in com.google.android.exoplayer2">@RoleFlags</a>
public final @com.google.android.exoplayer2.C.RoleFlags int roleFlags</pre>
<div class="block">Track role flags.</div>
</li>
</ul>
<a id="averageBitrate">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>averageBitrate</h4>
<pre>public final int averageBitrate</pre>
<div class="block">The average bitrate in bits per second, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable. The
way in which this field is populated depends on the type of media to which the format
corresponds:
<ul>
<li>DASH representations: Always <a href="#NO_VALUE"><code>NO_VALUE</code></a>.
<li>HLS variants: The <code>AVERAGE-BANDWIDTH</code> attribute defined on the corresponding <code>
EXT-X-STREAM-INF</code> tag in the multivariant playlist, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if not
present.
<li>SmoothStreaming track elements: The <code>Bitrate</code> attribute defined on the
corresponding <code>TrackElement</code> in the manifest, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if not
present.
<li>Progressive container formats: Often <a href="#NO_VALUE"><code>NO_VALUE</code></a>, but may be populated with
the average bitrate of the container if known.
<li>Sample formats: Often <a href="#NO_VALUE"><code>NO_VALUE</code></a>, but may be populated with the average
bitrate of the stream of samples with type <a href="#sampleMimeType"><code>sampleMimeType</code></a> if known. Note that if
<a href="#sampleMimeType"><code>sampleMimeType</code></a> is a compressed format (e.g., <a href="util/MimeTypes.html#AUDIO_AAC"><code>MimeTypes.AUDIO_AAC</code></a>), then
this bitrate is for the stream of still compressed samples.
</ul></div>
</li>
</ul>
<a id="peakBitrate">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>peakBitrate</h4>
<pre>public final int peakBitrate</pre>
<div class="block">The peak bitrate in bits per second, or <a href="#NO_VALUE"><code>NO_VALUE</code></a> if unknown or not applicable. The way
in which this field is populated depends on the type of media to which the format corresponds:
<ul>
<li>DASH representations: The <code>@bandwidth</code> attribute of the corresponding <code>
Representation</code> element in the manifest.
<li>HLS variants: The <code>BANDWIDTH</code> attribute defined on the corresponding <code>
EXT-X-STREAM-INF</code> tag.
<li>SmoothStreaming track elements: Always <a href="#NO_VALUE"><code>NO_VALUE</code></a>.
<li>Progressive container formats: Often <a href="#NO_VALUE"><code>NO_VALUE</code></a>, but may be populated with
the peak bitrate of the container if known.
<li>Sample formats: Often <a href="#NO_VALUE"><code>NO_VALUE</code></a>, but may be populated with the peak bitrate
of the stream of samples with type <a href="#sampleMimeType"><code>sampleMimeType</code></a> if known. Note that if <a href="#sampleMimeType"><code>sampleMimeType</code></a> is a compressed format (e.g., <a href="util/MimeTypes.html#AUDIO_AAC"><code>MimeTypes.AUDIO_AAC</code></a>), then this
bitrate is for the stream of still compressed samples.
</ul></div>
</li>
</ul>
<a id="bitrate">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bitrate</h4>
<pre>public final int bitrate</pre>
<div class="block">The bitrate in bits per second. This is the peak bitrate if known, or else the average bitrate
if known, or else <a href="#NO_VALUE"><code>NO_VALUE</code></a>. Equivalent to: <code>peakBitrate != NO_VALUE ?
peakBitrate : averageBitrate</code>.</div>
</li>
</ul>
<a id="codecs">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>codecs</h4>
<pre>@Nullable
public final <a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a> codecs</pre>
<div class="block">Codecs of the format as described in RFC 6381, or null if unknown or not applicable.</div>
</li>
</ul>
<a id="metadata">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>metadata</h4>