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

Function ff_hw_base_encode_close

libavcodec/hw_base_encode.c:814–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812}
813
814int ff_hw_base_encode_close(FFHWBaseEncodeContext *ctx)
815{
816 for (FFHWBaseEncodePicture *pic = ctx->pic_start, *next_pic = pic; pic; pic = next_pic) {
817 next_pic = pic->next;
818 base_encode_pic_free(pic);
819 }
820
821 av_fifo_freep2(&ctx->encode_fifo);
822
823 av_frame_free(&ctx->frame);
824 av_packet_free(&ctx->tail_pkt);
825
826 av_buffer_unref(&ctx->device_ref);
827 av_buffer_unref(&ctx->input_frames_ref);
828 av_buffer_unref(&ctx->recon_frames_ref);
829
830 return 0;
831}

Callers 3

ff_vaapi_encode_closeFunction · 0.85
ff_d3d12va_encode_closeFunction · 0.85
ff_vulkan_encode_uninitFunction · 0.85

Calls 5

base_encode_pic_freeFunction · 0.85
av_fifo_freep2Function · 0.85
av_frame_freeFunction · 0.85
av_packet_freeFunction · 0.85
av_buffer_unrefFunction · 0.85

Tested by

no test coverage detected