1
1
mirror of https://github.com/wader/fq.git synced 2024-12-25 22:34:14 +03:00
fq/format/mpeg/hevc_annexb.go
Mattias Wadman e9d9f8aef9 fq: Use go 1.18
Rename s/interface{}/any/g
Preparation for using generics in decode API and native jq funcations etc
Remove some unused linter ignores as linter has been fixed
2022-05-20 15:23:16 +02:00

25 lines
553 B
Go

package mpeg
import (
"github.com/wader/fq/format"
"github.com/wader/fq/format/registry"
"github.com/wader/fq/pkg/decode"
)
var annexBHEVCNALUFormat decode.Group
func init() {
registry.MustRegister(decode.Format{
Name: format.HEVC_ANNEXB,
Description: "H.265/HEVC Annex B",
DecodeFn: func(d *decode.D, in any) any {
return annexBDecode(d, in, annexBHEVCNALUFormat)
},
RootArray: true,
RootName: "stream",
Dependencies: []decode.Dependency{
{Names: []string{format.HEVC_NALU}, Group: &annexBHEVCNALUFormat},
},
})
}