mirror of
https://github.com/wader/fq.git
synced 2024-11-23 18:56:52 +03:00
25 lines
569 B
Go
25 lines
569 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 interface{}) interface{} {
|
|
return annexBDecode(d, in, annexBHEVCNALUFormat)
|
|
},
|
|
RootArray: true,
|
|
RootName: "stream",
|
|
Dependencies: []decode.Dependency{
|
|
{Names: []string{format.HEVC_NALU}, Group: &annexBHEVCNALUFormat},
|
|
},
|
|
})
|
|
}
|