MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / vp8_decode_flush_impl

Function vp8_decode_flush_impl

libavcodec/vp8.c:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static av_cold void vp8_decode_flush_impl(AVCodecContext *avctx, int free_mem)
135{
136 VP8Context *s = avctx->priv_data;
137 int i;
138
139 for (i = 0; i < FF_ARRAY_ELEMS(s->frames); i++)
140 vp8_release_frame(&s->frames[i]);
141 memset(s->framep, 0, sizeof(s->framep));
142
143 if (free_mem)
144 free_buffers(s);
145
146 if (FF_HW_HAS_CB(avctx, flush))
147 FF_HW_SIMPLE_CALL(avctx, flush);
148}
149
150static av_cold void vp8_decode_flush(AVCodecContext *avctx)
151{

Callers 3

vp8_decode_flushFunction · 0.85
update_dimensionsFunction · 0.85
ff_vp8_decode_freeFunction · 0.85

Calls 2

vp8_release_frameFunction · 0.85
free_buffersFunction · 0.70

Tested by

no test coverage detected