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

Method Reset

common/frame.go:140–151  ·  view source on GitHub ↗

Reset 重置数据,复用内存

()

Source from the content-addressed store, hash-verified

138
139// Reset 重置数据,复用内存
140func (av *AVFrame) Reset() {
141 av.RTP.Recycle()
142 av.AVCC.Recycle()
143 av.AUList.Recycle()
144 if av.ADTS != nil {
145 av.ADTS.Recycle()
146 av.ADTS = nil
147 }
148 av.Timestamp = 0
149 av.IFrame = false
150 av.DataFrame.Reset()
151}
152
153func (av *AVFrame) Assign(source *AVFrame) {
154 av.IFrame = source.IFrame

Callers

nothing calls this directly

Calls 2

RecycleMethod · 0.65
ResetMethod · 0.65

Tested by

no test coverage detected