19 #ifndef AVCODEC_NVENC_H
20 #define AVCODEC_NVENC_H
32 #define MAX_REGISTERED_FRAMES 64
33 #define RC_MODE_DEPRECATED 0x800000
34 #define RCD(rc_mode) ((rc_mode) | RC_MODE_DEPRECATED)
enum AVPixelFormat ff_nvenc_pix_fmts[]
NV_ENC_BUFFER_FORMAT format
int ff_nvenc_encode_init(AVCodecContext *avctx)
struct NvencContext::@101 registered_frames[MAX_REGISTERED_FRAMES]
This structure describes decoded (raw) audio or video data.
AVFifoBuffer * timestamp_list
NvencFunctions * nvenc_dl
NV_ENC_MAP_INPUT_RESOURCE in_map
NVIDIA GPUs - beginning with the Kepler generation - contain a hardware-based encoder (referred to as...
NV_ENCODE_API_FUNCTION_LIST nvenc_funcs
NvencDynLoadFunctions nvenc_dload_funcs
NV_ENCODE_API_FUNCTION_LIST.
NV_ENC_INPUT_PTR input_surface
void * NV_ENC_INPUT_PTR
NVENCODE API input buffer.
AVFifoBuffer * unused_surface_queue
int ff_nvenc_encode_close(AVCodecContext *avctx)
int ff_nvenc_receive_packet(AVCodecContext *avctx, AVPacket *pkt)
NV_ENC_INITIALIZE_PARAMS init_encode_params
#define MAX_REGISTERED_FRAMES
NV_ENC_BUFFER_FORMAT
Input buffer formats.
AVFifoBuffer * output_surface_ready_queue
CUcontext cu_context_internal
void * NV_ENC_REGISTERED_PTR
A Resource that has been registered with NVENCODE API.
int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
int ff_nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame)
NV_ENC_REGISTERED_PTR regptr
AVFifoBuffer * output_surface_queue
enum AVPixelFormat data_pix_fmt
NV_ENC_CONFIG encode_config
Libavcodec external API header.
main external API structure.
a very simple circular buffer FIFO implementation
Describe the class of an AVClass context structure.
void * NV_ENC_OUTPUT_PTR
NVENCODE API output buffer.
AVPixelFormat
Pixel format.
This structure stores compressed data.
NV_ENC_OUTPUT_PTR output_surface