-
Notifications
You must be signed in to change notification settings - Fork 31
/
box_types_av1.go
44 lines (34 loc) · 1.43 KB
/
box_types_av1.go
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
package mp4
/*************************** av01 ****************************/
// https://aomediacodec.github.io/av1-isobmff
func BoxTypeAv01() BoxType { return StrToBoxType("av01") }
func init() {
AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeAv01())
}
/*************************** av1C ****************************/
// https://aomediacodec.github.io/av1-isobmff
func BoxTypeAv1C() BoxType { return StrToBoxType("av1C") }
func init() {
AddBoxDef(&Av1C{})
}
type Av1C struct {
Box
Marker uint8 `mp4:"0,size=1,const=1"`
Version uint8 `mp4:"1,size=7,const=1"`
SeqProfile uint8 `mp4:"2,size=3"`
SeqLevelIdx0 uint8 `mp4:"3,size=5"`
SeqTier0 uint8 `mp4:"4,size=1"`
HighBitdepth uint8 `mp4:"5,size=1"`
TwelveBit uint8 `mp4:"6,size=1"`
Monochrome uint8 `mp4:"7,size=1"`
ChromaSubsamplingX uint8 `mp4:"8,size=1"`
ChromaSubsamplingY uint8 `mp4:"9,size=1"`
ChromaSamplePosition uint8 `mp4:"10,size=2"`
Reserved uint8 `mp4:"11,size=3,const=0"`
InitialPresentationDelayPresent uint8 `mp4:"12,size=1"`
InitialPresentationDelayMinusOne uint8 `mp4:"13,size=4"`
ConfigOBUs []uint8 `mp4:"14,size=8"`
}
func (Av1C) GetType() BoxType {
return BoxTypeAv1C()
}