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

Function base_encode_pic_free

libavcodec/hw_base_encode.c:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "hw_base_encode.h"
30
31static int base_encode_pic_free(FFHWBaseEncodePicture *pic)
32{
33 av_frame_free(&pic->input_image);
34 av_frame_free(&pic->recon_image);
35
36 av_buffer_unref(&pic->opaque_ref);
37 av_freep(&pic->codec_priv);
38 av_freep(&pic->priv);
39 av_free(pic);
40
41 return 0;
42}
43
44static void hw_base_encode_add_ref(FFHWBaseEncodePicture *pic,
45 FFHWBaseEncodePicture *target,

Callers 3

hw_base_encode_clear_oldFunction · 0.85
ff_hw_base_encode_closeFunction · 0.85

Calls 4

av_frame_freeFunction · 0.85
av_buffer_unrefFunction · 0.85
av_freepFunction · 0.85
av_freeFunction · 0.50

Tested by

no test coverage detected