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

Method GetAnnexB

subscriber.go:85–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85func (v VideoFrame) GetAnnexB() (r net.Buffers) {
86 if v.IFrame {
87 r = v.ParamaterSets.GetAnnexB()
88 }
89 v.AUList.Range(func(au *util.BLL) bool {
90 r = append(append(r, codec.NALU_Delimiter2), au.ToBuffers()...)
91 return true
92 })
93 return
94}
95
96func (v VideoFrame) WriteAnnexBTo(w io.Writer) (n int64, err error) {
97 annexB := v.GetAnnexB()

Callers 1

WriteAnnexBToMethod · 0.95

Calls 3

GetAnnexBMethod · 0.65
RangeMethod · 0.45
ToBuffersMethod · 0.45

Tested by

no test coverage detected