-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathbox_types_iso14496_30.go
127 lines (100 loc) · 2.56 KB
/
box_types_iso14496_30.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
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
package mp4
/*********************** WebVTT Sample Entry ****************************/
func BoxTypeVttC() BoxType { return StrToBoxType("vttC") }
func BoxTypeVlab() BoxType { return StrToBoxType("vlab") }
func BoxTypeWvtt() BoxType { return StrToBoxType("wvtt") }
func init() {
AddBoxDef(&WebVTTConfigurationBox{})
AddBoxDef(&WebVTTSourceLabelBox{})
AddAnyTypeBoxDef(&WVTTSampleEntry{}, BoxTypeWvtt())
}
type WebVTTConfigurationBox struct {
Box
Config string `mp4:"0,boxstring"`
}
func (WebVTTConfigurationBox) GetType() BoxType {
return BoxTypeVttC()
}
type WebVTTSourceLabelBox struct {
Box
SourceLabel string `mp4:"0,boxstring"`
}
func (WebVTTSourceLabelBox) GetType() BoxType {
return BoxTypeVlab()
}
type WVTTSampleEntry struct {
SampleEntry `mp4:"0,extend"`
}
/*********************** WebVTT Sample Format ****************************/
func BoxTypeVttc() BoxType { return StrToBoxType("vttc") }
func BoxTypeVsid() BoxType { return StrToBoxType("vsid") }
func BoxTypeCtim() BoxType { return StrToBoxType("ctim") }
func BoxTypeIden() BoxType { return StrToBoxType("iden") }
func BoxTypeSttg() BoxType { return StrToBoxType("sttg") }
func BoxTypePayl() BoxType { return StrToBoxType("payl") }
func BoxTypeVtte() BoxType { return StrToBoxType("vtte") }
func BoxTypeVtta() BoxType { return StrToBoxType("vtta") }
func init() {
AddBoxDef(&VTTCueBox{})
AddBoxDef(&CueSourceIDBox{})
AddBoxDef(&CueTimeBox{})
AddBoxDef(&CueIDBox{})
AddBoxDef(&CueSettingsBox{})
AddBoxDef(&CuePayloadBox{})
AddBoxDef(&VTTEmptyCueBox{})
AddBoxDef(&VTTAdditionalTextBox{})
}
type VTTCueBox struct {
Box
}
func (VTTCueBox) GetType() BoxType {
return BoxTypeVttc()
}
type CueSourceIDBox struct {
Box
SourceId uint32 `mp4:"0,size=32"`
}
func (CueSourceIDBox) GetType() BoxType {
return BoxTypeVsid()
}
type CueTimeBox struct {
Box
CueCurrentTime string `mp4:"0,boxstring"`
}
func (CueTimeBox) GetType() BoxType {
return BoxTypeCtim()
}
type CueIDBox struct {
Box
CueId string `mp4:"0,boxstring"`
}
func (CueIDBox) GetType() BoxType {
return BoxTypeIden()
}
type CueSettingsBox struct {
Box
Settings string `mp4:"0,boxstring"`
}
func (CueSettingsBox) GetType() BoxType {
return BoxTypeSttg()
}
type CuePayloadBox struct {
Box
CueText string `mp4:"0,boxstring"`
}
func (CuePayloadBox) GetType() BoxType {
return BoxTypePayl()
}
type VTTEmptyCueBox struct {
Box
}
func (VTTEmptyCueBox) GetType() BoxType {
return BoxTypeVtte()
}
type VTTAdditionalTextBox struct {
Box
CueAdditionalText string `mp4:"0,boxstring"`
}
func (VTTAdditionalTextBox) GetType() BoxType {
return BoxTypeVtta()
}