FFmpeg  4.0
Data Fields
NvencContext Struct Reference

#include <libavcodec/nvenc.h>

Data Fields

AVClassavclass
 
NvencDynLoadFunctions nvenc_dload_funcs
 
NV_ENC_INITIALIZE_PARAMS init_encode_params
 
NV_ENC_CONFIG encode_config
 
CUcontext cu_context
 
CUcontext cu_context_internal
 
ID3D11Deviced3d11_device
 
int nb_surfaces
 
NvencSurfacesurfaces
 
AVFifoBufferunused_surface_queue
 
AVFifoBufferoutput_surface_queue
 
AVFifoBufferoutput_surface_ready_queue
 
AVFifoBuffertimestamp_list
 
int encoder_flushing
 
struct {
   void *   ptr
 
   int   ptr_index
 
   NV_ENC_REGISTERED_PTR   regptr
 
   int   mapped
 
   NV_ENC_MAP_INPUT_RESOURCE   in_map
 
registered_frames [MAX_REGISTERED_FRAMES]
 
int nb_registered_frames
 
enum AVPixelFormat data_pix_fmt
 
int64_t initial_pts [2]
 
int first_packet_output
 
voidnvencoder
 
int preset
 
int profile
 
int level
 
int tier
 
int rc
 
int cbr
 
int twopass
 
int device
 
int flags
 
int async_depth
 
int rc_lookahead
 
int aq
 
int no_scenecut
 
int forced_idr
 
int b_adapt
 
int temporal_aq
 
int zerolatency
 
int nonref_p
 
int strict_gop
 
int aq_strength
 
float quality
 
int aud
 
int bluray_compat
 
int init_qp_p
 
int init_qp_b
 
int init_qp_i
 
int cqp
 
int weighted_pred
 
int coder
 
int b_ref_mode
 

Detailed Description

Definition at line 115 of file nvenc.h.

Field Documentation

◆ avclass

AVClass* NvencContext::avclass

Definition at line 117 of file nvenc.h.

◆ nvenc_dload_funcs

NvencDynLoadFunctions NvencContext::nvenc_dload_funcs

◆ init_encode_params

NV_ENC_INITIALIZE_PARAMS NvencContext::init_encode_params

◆ encode_config

NV_ENC_CONFIG NvencContext::encode_config

◆ cu_context

CUcontext NvencContext::cu_context

◆ cu_context_internal

CUcontext NvencContext::cu_context_internal

Definition at line 124 of file nvenc.h.

Referenced by ff_nvenc_encode_close(), and nvenc_check_device().

◆ d3d11_device

ID3D11Device* NvencContext::d3d11_device

◆ nb_surfaces

int NvencContext::nb_surfaces

◆ surfaces

NvencSurface* NvencContext::surfaces

Definition at line 128 of file nvenc.h.

Referenced by ff_nvenc_encode_close(), nvenc_alloc_surface(), and nvenc_setup_surfaces().

◆ unused_surface_queue

AVFifoBuffer* NvencContext::unused_surface_queue

◆ output_surface_queue

AVFifoBuffer* NvencContext::output_surface_queue

◆ output_surface_ready_queue

AVFifoBuffer* NvencContext::output_surface_ready_queue

◆ timestamp_list

AVFifoBuffer* NvencContext::timestamp_list

◆ encoder_flushing

int NvencContext::encoder_flushing

Definition at line 135 of file nvenc.h.

Referenced by ff_nvenc_encode_frame(), ff_nvenc_receive_packet(), and ff_nvenc_send_frame().

◆ ptr

void* NvencContext::ptr

◆ ptr_index

int NvencContext::ptr_index

Definition at line 139 of file nvenc.h.

Referenced by nvenc_register_frame().

◆ regptr

NV_ENC_REGISTERED_PTR NvencContext::regptr

◆ mapped

int NvencContext::mapped

◆ in_map

NV_ENC_MAP_INPUT_RESOURCE NvencContext::in_map

Definition at line 142 of file nvenc.h.

Referenced by ff_nvenc_encode_close(), nvenc_upload_frame(), and process_output_surface().

◆ registered_frames

struct { ... } NvencContext::registered_frames[MAX_REGISTERED_FRAMES]

◆ nb_registered_frames

int NvencContext::nb_registered_frames

◆ data_pix_fmt

enum AVPixelFormat NvencContext::data_pix_fmt

◆ initial_pts

int64_t NvencContext::initial_pts[2]

◆ first_packet_output

int NvencContext::first_packet_output

Definition at line 153 of file nvenc.h.

Referenced by nvenc_set_timestamp().

◆ nvencoder

void* NvencContext::nvencoder

◆ preset

int NvencContext::preset

Definition at line 157 of file nvenc.h.

Referenced by nvenc_check_capabilities(), and nvenc_map_preset().

◆ profile

int NvencContext::profile

Definition at line 158 of file nvenc.h.

Referenced by nvenc_setup_h264_config(), and nvenc_setup_hevc_config().

◆ level

int NvencContext::level

Definition at line 159 of file nvenc.h.

Referenced by nvenc_setup_encoder(), nvenc_setup_h264_config(), and nvenc_setup_hevc_config().

◆ tier

int NvencContext::tier

Definition at line 160 of file nvenc.h.

Referenced by nvenc_setup_encoder(), and nvenc_setup_hevc_config().

◆ rc

int NvencContext::rc

Definition at line 161 of file nvenc.h.

Referenced by nvenc_override_rate_control(), and nvenc_setup_rate_control().

◆ cbr

int NvencContext::cbr

Definition at line 162 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ twopass

int NvencContext::twopass

Definition at line 163 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ device

int NvencContext::device

Definition at line 164 of file nvenc.h.

Referenced by nvenc_check_device(), and nvenc_setup_device().

◆ flags

int NvencContext::flags

Definition at line 165 of file nvenc.h.

Referenced by nvenc_map_preset(), nvenc_setup_h264_config(), and nvenc_setup_rate_control().

◆ async_depth

int NvencContext::async_depth

Definition at line 166 of file nvenc.h.

Referenced by nvenc_recalc_surfaces(), nvenc_setup_rate_control(), and output_ready().

◆ rc_lookahead

int NvencContext::rc_lookahead

◆ aq

int NvencContext::aq

Definition at line 168 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ no_scenecut

int NvencContext::no_scenecut

Definition at line 169 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ forced_idr

int NvencContext::forced_idr

Definition at line 170 of file nvenc.h.

Referenced by ff_nvenc_send_frame().

◆ b_adapt

int NvencContext::b_adapt

Definition at line 171 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ temporal_aq

int NvencContext::temporal_aq

Definition at line 172 of file nvenc.h.

Referenced by nvenc_check_capabilities(), and nvenc_setup_rate_control().

◆ zerolatency

int NvencContext::zerolatency

Definition at line 173 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ nonref_p

int NvencContext::nonref_p

Definition at line 174 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ strict_gop

int NvencContext::strict_gop

Definition at line 175 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ aq_strength

int NvencContext::aq_strength

Definition at line 176 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ quality

float NvencContext::quality

Definition at line 177 of file nvenc.h.

Referenced by nvenc_setup_rate_control().

◆ aud

int NvencContext::aud

Definition at line 178 of file nvenc.h.

Referenced by nvenc_setup_encoder(), nvenc_setup_h264_config(), and nvenc_setup_hevc_config().

◆ bluray_compat

int NvencContext::bluray_compat

Definition at line 179 of file nvenc.h.

Referenced by nvenc_setup_encoder().

◆ init_qp_p

int NvencContext::init_qp_p

Definition at line 180 of file nvenc.h.

Referenced by set_constqp(), and set_vbr().

◆ init_qp_b

int NvencContext::init_qp_b

Definition at line 181 of file nvenc.h.

Referenced by set_constqp(), and set_vbr().

◆ init_qp_i

int NvencContext::init_qp_i

Definition at line 182 of file nvenc.h.

Referenced by set_constqp(), and set_vbr().

◆ cqp

int NvencContext::cqp

Definition at line 183 of file nvenc.h.

Referenced by nvenc_setup_rate_control(), and set_constqp().

◆ weighted_pred

int NvencContext::weighted_pred

Definition at line 184 of file nvenc.h.

Referenced by nvenc_check_capabilities(), and nvenc_setup_encoder().

◆ coder

int NvencContext::coder

Definition at line 185 of file nvenc.h.

Referenced by nvenc_check_capabilities(), and nvenc_setup_h264_config().

◆ b_ref_mode

int NvencContext::b_ref_mode

Definition at line 186 of file nvenc.h.

Referenced by nvenc_check_capabilities(), and nvenc_setup_h264_config().


The documentation for this struct was generated from the following file: