FFmpeg
Loading...
Searching...
No Matches
Functions
hw_base_encode.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/error.h"
#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "encode.h"
#include "avcodec.h"
#include "hw_base_encode.h"

Go to the source code of this file.

Functions

 
static void  hw_base_encode_add_ref (FFHWBaseEncodePicture *pic, FFHWBaseEncodePicture *target, int is_ref, int in_dpb, int prev)
 
 
 
 
 
 
 
 
 
 
int  ff_hw_base_init_gop_structure (FFHWBaseEncodeContext *ctx, AVCodecContext *avctx, uint32_t ref_l0, uint32_t ref_l1, int flags, int prediction_pre_only)
 
int  ff_hw_base_get_recon_format (FFHWBaseEncodeContext *ctx, const void *hwconfig, enum AVPixelFormat *fmt)
 
 
 

Function Documentation

◆  base_encode_pic_free()

static int base_encode_pic_free ( FFHWBaseEncodePicture * pic )
static

Definition at line 31 of file hw_base_encode.c.

Referenced by ff_hw_base_encode_close(), hw_base_encode_clear_old(), and hw_base_encode_send_frame().

◆  hw_base_encode_add_ref()

static void hw_base_encode_add_ref ( FFHWBaseEncodePicture * pic,
int is_ref,
int in_dpb,
int prev )
static

Definition at line 44 of file hw_base_encode.c.

Referenced by hw_base_encode_pick_next(), and hw_base_encode_set_b_pictures().

◆  hw_base_encode_remove_refs()

static void hw_base_encode_remove_refs ( FFHWBaseEncodePicture * pic,
int level )
static

Definition at line 77 of file hw_base_encode.c.

Referenced by hw_base_encode_clear_old().

◆  hw_base_encode_set_b_pictures()

static void hw_base_encode_set_b_pictures ( FFHWBaseEncodeContext * ctx,
int current_depth,
static

Definition at line 111 of file hw_base_encode.c.

Referenced by hw_base_encode_pick_next(), and hw_base_encode_set_b_pictures().

◆  hw_base_encode_add_next_prev()

static void hw_base_encode_add_next_prev ( FFHWBaseEncodeContext * ctx,
static

Definition at line 174 of file hw_base_encode.c.

Referenced by hw_base_encode_pick_next().

◆  hw_base_encode_pick_next()

static int hw_base_encode_pick_next ( AVCodecContext * avctx,
FFHWBaseEncodePicture ** pic_out )
static

Definition at line 206 of file hw_base_encode.c.

Referenced by ff_hw_base_encode_receive_packet().

◆  hw_base_encode_clear_old()

static int hw_base_encode_clear_old ( AVCodecContext * avctx,
static

Definition at line 358 of file hw_base_encode.c.

Referenced by ff_hw_base_encode_receive_packet().

◆  hw_base_encode_check_frame()

static int hw_base_encode_check_frame ( FFHWBaseEncodeContext * ctx,
const AVFrame * frame )
static

Definition at line 396 of file hw_base_encode.c.

Referenced by hw_base_encode_send_frame().

◆  hw_base_encode_send_frame()

static int hw_base_encode_send_frame ( AVCodecContext * avctx,
AVFrame * frame )
static

Definition at line 420 of file hw_base_encode.c.

Referenced by ff_hw_base_encode_receive_packet().

◆  ff_hw_base_encode_set_output_property()

int ff_hw_base_encode_set_output_property ( FFHWBaseEncodeContext * ctx,
AVCodecContext * avctx,
AVPacket * pkt,
int flag_no_delay )

Definition at line 523 of file hw_base_encode.c.

Referenced by d3d12va_encode_output(), vaapi_encode_output(), and vulkan_encode_output().

◆  ff_hw_base_encode_receive_packet()

int ff_hw_base_encode_receive_packet ( FFHWBaseEncodeContext * ctx,
AVCodecContext * avctx,
AVPacket * pkt )

if no B frame before repeat P frame, sent repeat P frame out.

loop to get an available pkt in encoder flushing.

Definition at line 562 of file hw_base_encode.c.

Referenced by ff_d3d12va_encode_receive_packet(), ff_vaapi_encode_receive_packet(), and ff_vulkan_encode_receive_packet().

◆  ff_hw_base_init_gop_structure()

int ff_hw_base_init_gop_structure ( FFHWBaseEncodeContext * ctx,
AVCodecContext * avctx,
uint32_t ref_l0,
uint32_t ref_l1,
int flags,
int prediction_pre_only )

Definition at line 666 of file hw_base_encode.c.

Referenced by d3d12va_encode_init_gop_structure(), vaapi_encode_init_gop_structure(), vulkan_encode_av1_init(), vulkan_encode_h264_init(), and vulkan_encode_h265_init().

◆  ff_hw_base_get_recon_format()

int ff_hw_base_get_recon_format ( FFHWBaseEncodeContext * ctx,
const void * hwconfig,
enum AVPixelFormat * fmt )

Definition at line 727 of file hw_base_encode.c.

Referenced by d3d12va_encode_create_recon_frames(), and vaapi_encode_create_recon_frames().

◆  ff_hw_base_encode_init()

int ff_hw_base_encode_init ( AVCodecContext * avctx,

Definition at line 785 of file hw_base_encode.c.

Referenced by ff_d3d12va_encode_init(), ff_vaapi_encode_init(), and ff_vulkan_encode_init().

◆  ff_hw_base_encode_close()

int ff_hw_base_encode_close ( FFHWBaseEncodeContext * ctx )

Definition at line 818 of file hw_base_encode.c.

Referenced by ff_d3d12va_encode_close(), ff_vaapi_encode_close(), and ff_vulkan_encode_uninit().


Generated on Sun Sep 6 2026 19:21:15 for FFmpeg by doxygen 1.13.2

AltStyle によって変換されたページ (->オリジナル) /