2021-09-01 00:42:41 +03:00
|
|
|
package mpeg
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/wader/fq/format"
|
|
|
|
"github.com/wader/fq/format/registry"
|
|
|
|
"github.com/wader/fq/pkg/decode"
|
|
|
|
)
|
|
|
|
|
2021-11-17 18:46:10 +03:00
|
|
|
var annexBHEVCNALUFormat decode.Group
|
2021-09-01 00:42:41 +03:00
|
|
|
|
|
|
|
func init() {
|
2021-11-17 18:46:10 +03:00
|
|
|
registry.MustRegister(decode.Format{
|
2021-09-01 00:42:41 +03:00
|
|
|
Name: format.HEVC_ANNEXB,
|
|
|
|
Description: "H.265/HEVC Annex B",
|
|
|
|
DecodeFn: func(d *decode.D, in interface{}) interface{} {
|
|
|
|
return annexBDecode(d, in, annexBHEVCNALUFormat)
|
|
|
|
},
|
2021-11-03 19:19:33 +03:00
|
|
|
RootArray: true,
|
|
|
|
RootName: "stream",
|
2021-09-01 00:42:41 +03:00
|
|
|
Dependencies: []decode.Dependency{
|
2021-11-17 18:46:10 +03:00
|
|
|
{Names: []string{format.HEVC_NALU}, Group: &annexBHEVCNALUFormat},
|
2021-09-01 00:42:41 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|