(puber IPuber, stuff ...any)
| 24 | } |
| 25 | |
| 26 | func 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 | |
| 42 | func (vt *AV1) WriteSequenceHead(head []byte) (err error) { |
| 43 | vt.Video.WriteSequenceHead(head) |
no test coverage detected