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

Function frame_context_free

libavcodec/vvc/dec.c:658–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658static av_cold void frame_context_free(VVCFrameContext *fc)
659{
660 slices_free(fc);
661
662 av_refstruct_pool_uninit(&fc->tu_pool);
663 av_refstruct_pool_uninit(&fc->cu_pool);
664
665 for (int i = 0; i < FF_ARRAY_ELEMS(fc->DPB); i++) {
666 ff_vvc_unref_frame(fc, &fc->DPB[i], ~0);
667 av_frame_free(&fc->DPB[i].frame);
668 av_frame_free(&fc->DPB[i].frame_grain);
669 }
670
671 ff_vvc_frame_thread_free(fc);
672 pic_arrays_free(fc);
673 av_frame_free(&fc->output_frame);
674 ff_vvc_frame_ps_free(&fc->ps);
675 ff_vvc_sei_reset(&fc->sei);
676}
677
678static av_cold int frame_context_init(VVCFrameContext *fc, AVCodecContext *avctx)
679{

Callers 1

vvc_decode_freeFunction · 0.85

Calls 8

slices_freeFunction · 0.85
av_refstruct_pool_uninitFunction · 0.85
ff_vvc_unref_frameFunction · 0.85
av_frame_freeFunction · 0.85
ff_vvc_frame_thread_freeFunction · 0.85
ff_vvc_frame_ps_freeFunction · 0.85
ff_vvc_sei_resetFunction · 0.85
pic_arrays_freeFunction · 0.70

Tested by

no test coverage detected