MCPcopy Create free account
hub / github.com/Monibuca/engine / NewAV1

Function NewAV1

track/av1.go:26–40  ·  view source on GitHub ↗
(puber IPuber, stuff ...any)

Source from the content-addressed store, hash-verified

24}
25
26func NewAV1(puber IPuber, stuff ...any) (vt *AV1) {
27 vt = &AV1{}
28 vt.Video.CodecID = codec.CodecID_AV1
29 vt.SetStuff("av1", byte(96), uint32(90000), vt, stuff, puber)
30 if vt.BytesPool == nil {
31 vt.BytesPool = make(util.BytesPool, 17)
32 }
33 vt.nalulenSize = 0
34 vt.dtsEst = util.NewDTSEstimator()
35 vt.decoder.Init()
36 vt.encoder.Init()
37 vt.encoder.PayloadType = vt.PayloadType
38 vt.ParamaterSets = [][]byte{nil, {0, 0, 0}}
39 return
40}
41
42func (vt *AV1) WriteSequenceHead(head []byte) (err error) {
43 vt.Video.WriteSequenceHead(head)

Callers 2

CreateVideoTrackMethod · 0.92
WriteAVCCVideoMethod · 0.92

Calls 3

NewDTSEstimatorFunction · 0.92
SetStuffMethod · 0.65
InitMethod · 0.45

Tested by

no test coverage detected