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

Function ff_vaapi_decode_cancel

libavcodec/vaapi_decode.c:247–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247int ff_vaapi_decode_cancel(AVCodecContext *avctx,
248 VAAPIDecodePicture *pic)
249{
250 ff_vaapi_decode_destroy_buffers(avctx, pic);
251
252 pic->nb_param_buffers = 0;
253 pic->nb_param_buffers_allocated = 0;
254 av_freep(&pic->param_buffers);
255 pic->nb_slices = 0;
256 pic->nb_slice_buffers_allocated = 0;
257 av_freep(&pic->slice_buffers);
258
259 return 0;
260}
261
262static const struct {
263 uint32_t fourcc;

Callers 15

vaapi_hevc_start_frameFunction · 0.85
vaapi_hevc_end_frameFunction · 0.85
vaapi_hevc_decode_sliceFunction · 0.85
vaapi_mpeg2_start_frameFunction · 0.85
vaapi_mpeg2_decode_sliceFunction · 0.85
vaapi_h264_start_frameFunction · 0.85
vaapi_h264_decode_sliceFunction · 0.85
vaapi_vvc_start_frameFunction · 0.85
vaapi_vvc_decode_sliceFunction · 0.85
vaapi_vvc_end_frameFunction · 0.85
vaapi_vp9_start_frameFunction · 0.85
vaapi_vp9_decode_sliceFunction · 0.85

Calls 2

av_freepFunction · 0.85

Tested by

no test coverage detected