1
1
mirror of https://github.com/wader/fq.git synced 2024-12-26 15:02:28 +03:00
fq/format/mpeg/hevc_annexb.go
2021-09-16 16:27:47 +02:00

25 lines
584 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.Format
func init() {
registry.MustRegister(&decode.Format{
Name: format.HEVC_ANNEXB,
Description: "H.265/HEVC Annex B",
DecodeFn: func(d *decode.D, in interface{}) interface{} {
return annexBDecode(d, in, annexBHEVCNALUFormat)
},
RootV: decode.Array{},
RootName: "stream",
Dependencies: []decode.Dependency{
{Names: []string{format.HEVC_NALU}, Formats: &annexBHEVCNALUFormat},
},
})
}