diff options
| author | 2023-08-16 16:10:01 +0100 | |
|---|---|---|
| committer | 2023-08-16 16:10:01 +0100 | |
| commit | 5a4ceebcbd06f48eebaa3fb2766b22da5b85f15e (patch) | |
| tree | 2a939a7166246f415d46979b7192462f3fc90336 /vendor/github.com/abema/go-mp4 | |
| parent | [chore]: Bump modernc.org/sqlite from 1.24.0 to 1.25.0 (#2114) (diff) | |
| download | gotosocial-5a4ceebcbd06f48eebaa3fb2766b22da5b85f15e.tar.xz | |
[chore]: Bump github.com/abema/go-mp4 from 0.12.0 to 0.13.0 (#2113)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/abema/go-mp4')
| -rw-r--r-- | vendor/github.com/abema/go-mp4/box_types_vp.go | 53 | 
1 files changed, 53 insertions, 0 deletions
| diff --git a/vendor/github.com/abema/go-mp4/box_types_vp.go b/vendor/github.com/abema/go-mp4/box_types_vp.go new file mode 100644 index 000000000..6927b2190 --- /dev/null +++ b/vendor/github.com/abema/go-mp4/box_types_vp.go @@ -0,0 +1,53 @@ +package mp4 + +// https://www.webmproject.org/vp9/mp4/ + +/*************************** vp08 ****************************/ + +func BoxTypeVp08() BoxType { return StrToBoxType("vp08") } + +func init() { +	AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeVp08()) +} + +/*************************** vp09 ****************************/ + +func BoxTypeVp09() BoxType { return StrToBoxType("vp09") } + +func init() { +	AddAnyTypeBoxDef(&VisualSampleEntry{}, BoxTypeVp09()) +} + +/*************************** VpcC ****************************/ + +func BoxTypeVpcC() BoxType { return StrToBoxType("vpcC") } + +func init() { +	AddBoxDef(&VpcC{}) +} + +type VpcC struct { +	FullBox                     `mp4:"0,extend"` +	Profile                     uint8   `mp4:"1,size=8"` +	Level                       uint8   `mp4:"2,size=8"` +	BitDepth                    uint8   `mp4:"3,size=4"` +	ChromaSubsampling           uint8   `mp4:"4,size=3"` +	VideoFullRangeFlag          uint8   `mp4:"5,size=1"` +	ColourPrimaries             uint8   `mp4:"6,size=8"` +	TransferCharacteristics     uint8   `mp4:"7,size=8"` +	MatrixCoefficients          uint8   `mp4:"8,size=8"` +	CodecInitializationDataSize uint16  `mp4:"9,size=16"` +	CodecInitializationData     []uint8 `mp4:"10,size=8,len=dynamic"` +} + +func (VpcC) GetType() BoxType { +	return BoxTypeVpcC() +} + +func (vpcc VpcC) GetFieldLength(name string, ctx Context) uint { +	switch name { +	case "CodecInitializationData": +		return uint(vpcc.CodecInitializationDataSize) +	} +	return 0 +} | 
