FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/common.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.
|
static |
Definition at line 30 of file hw_base_encode.c.
Referenced by hw_base_encode_clear_old(), and hw_base_encode_send_frame().
|
static |
Definition at line 43 of file hw_base_encode.c.
Referenced by hw_base_encode_pick_next(), and hw_base_encode_set_b_pictures().
|
static |
Definition at line 76 of file hw_base_encode.c.
Referenced by hw_base_encode_clear_old().
|
static |
Definition at line 110 of file hw_base_encode.c.
Referenced by hw_base_encode_pick_next().
|
static |
Definition at line 173 of file hw_base_encode.c.
Referenced by hw_base_encode_pick_next().
|
static |
Definition at line 205 of file hw_base_encode.c.
Referenced by ff_hw_base_encode_receive_packet().
|
static |
Definition at line 357 of file hw_base_encode.c.
Referenced by ff_hw_base_encode_receive_packet().
|
static |
Definition at line 395 of file hw_base_encode.c.
Referenced by hw_base_encode_send_frame().
|
static |
Definition at line 419 of file hw_base_encode.c.
Referenced by ff_hw_base_encode_receive_packet().
int ff_hw_base_encode_set_output_property | ( | FFHWBaseEncodeContext * | ctx, |
AVCodecContext * | avctx, | ||
FFHWBaseEncodePicture * | pic, | ||
AVPacket * | pkt, | ||
int | flag_no_delay | ||
) |
Definition at line 518 of file hw_base_encode.c.
Referenced by d3d12va_encode_output(), vaapi_encode_output(), and vulkan_encode_output().
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 557 of file hw_base_encode.c.
Referenced by ff_d3d12va_encode_receive_packet(), ff_vaapi_encode_receive_packet(), and ff_vulkan_encode_receive_packet().
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 661 of file hw_base_encode.c.
Referenced by d3d12va_encode_init_gop_structure(), vaapi_encode_init_gop_structure(), vulkan_encode_h264_init(), and vulkan_encode_h265_init().
int ff_hw_base_get_recon_format | ( | FFHWBaseEncodeContext * | ctx, |
const void * | hwconfig, | ||
enum AVPixelFormat * | fmt | ||
) |
Definition at line 714 of file hw_base_encode.c.
Referenced by d3d12va_encode_create_recon_frames(), vaapi_encode_create_recon_frames(), and vulkan_encode_create_dpb().
int ff_hw_base_encode_init | ( | AVCodecContext * | avctx, |
FFHWBaseEncodeContext * | ctx | ||
) |
Definition at line 772 of file hw_base_encode.c.
Referenced by ff_d3d12va_encode_init(), ff_vaapi_encode_init(), and ff_vulkan_encode_init().
int ff_hw_base_encode_close | ( | FFHWBaseEncodeContext * | ctx | ) |
Definition at line 805 of file hw_base_encode.c.
Referenced by ff_d3d12va_encode_close(), ff_vaapi_encode_close(), and ff_vulkan_encode_uninit().