FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
nvenc.h File Reference
#include <nvEncodeAPI.h>
#include "config.h"
#include "libavutil/fifo.h"
#include "libavutil/opt.h"
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct  NvencSurface
 
struct  NvencDynLoadFunctions
 
struct  NvencContext
 

Macros

#define CUDAAPI
 
#define MAX_REGISTERED_FRAMES   64
 

Typedefs

typedef int CUdevice
 
typedef voidCUcontext
 
typedef voidCUdeviceptr
 
typedef CUresult(CUDAAPIPCUINIT )(unsigned int Flags)
 
typedef CUresult(CUDAAPIPCUDEVICEGETCOUNT )(int *count)
 
typedef CUresult(CUDAAPIPCUDEVICEGET )(CUdevice *device, int ordinal)
 
typedef CUresult(CUDAAPIPCUDEVICEGETNAME )(char *name, int len, CUdevice dev)
 
typedef CUresult(CUDAAPIPCUDEVICECOMPUTECAPABILITY )(int *major, int *minor, CUdevice dev)
 
typedef CUresult(CUDAAPIPCUCTXCREATE )(CUcontext *pctx, unsigned int flags, CUdevice dev)
 
typedef CUresult(CUDAAPIPCUCTXPOPCURRENT )(CUcontext *pctx)
 
typedef CUresult(CUDAAPIPCUCTXDESTROY )(CUcontext ctx)
 
typedef NVENCSTATUS(NVENCAPI * PNVENCODEAPICREATEINSTANCE )(NV_ENCODE_API_FUNCTION_LIST *functionList)
 

Enumerations

enum  CUresult { CUDA_SUCCESS = 0 }
 
enum  {
  PRESET_DEFAULT = 0, PRESET_SLOW, PRESET_MEDIUM, PRESET_FAST,
  PRESET_HP, PRESET_HQ, PRESET_BD, PRESET_LOW_LATENCY_DEFAULT,
  PRESET_LOW_LATENCY_HQ, PRESET_LOW_LATENCY_HP, PRESET_LOSSLESS_DEFAULT, PRESET_LOSSLESS_HP
}
 
enum  { NV_ENC_H264_PROFILE_BASELINE, NV_ENC_H264_PROFILE_MAIN, NV_ENC_H264_PROFILE_HIGH, NV_ENC_H264_PROFILE_HIGH_444P }
 
enum  { NVENC_LOWLATENCY = 1, NVENC_LOSSLESS = 2, NVENC_ONE_PASS = 4, NVENC_TWO_PASSES = 8 }
 
enum  { LIST_DEVICES = -2, ANY_DEVICE }
 

Functions

int ff_nvenc_encode_init (AVCodecContext *avctx)
 
int ff_nvenc_encode_close (AVCodecContext *avctx)
 
int ff_nvenc_encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet)
 

Variables

enum AVPixelFormat ff_nvenc_pix_fmts []
 

Macro Definition Documentation

#define CUDAAPI

Definition at line 38 of file nvenc.h.

#define MAX_REGISTERED_FRAMES   64

Definition at line 49 of file nvenc.h.

Typedef Documentation

typedef int CUdevice

Definition at line 44 of file nvenc.h.

typedef void* CUcontext

Definition at line 45 of file nvenc.h.

typedef void* CUdeviceptr

Definition at line 46 of file nvenc.h.

typedef CUresult(CUDAAPI * PCUINIT)(unsigned int Flags)

Definition at line 66 of file nvenc.h.

typedef CUresult(CUDAAPI * PCUDEVICEGETCOUNT)(int *count)

Definition at line 67 of file nvenc.h.

typedef CUresult(CUDAAPI * PCUDEVICEGET)(CUdevice *device, int ordinal)

Definition at line 68 of file nvenc.h.

typedef CUresult(CUDAAPI * PCUDEVICEGETNAME)(char *name, int len, CUdevice dev)

Definition at line 69 of file nvenc.h.

typedef CUresult(CUDAAPI * PCUDEVICECOMPUTECAPABILITY)(int *major, int *minor, CUdevice dev)

Definition at line 70 of file nvenc.h.

typedef CUresult(CUDAAPI * PCUCTXCREATE)(CUcontext *pctx, unsigned int flags, CUdevice dev)

Definition at line 71 of file nvenc.h.

typedef CUresult(CUDAAPI * PCUCTXPOPCURRENT)(CUcontext *pctx)

Definition at line 72 of file nvenc.h.

typedef CUresult(CUDAAPI * PCUCTXDESTROY)(CUcontext ctx)

Definition at line 73 of file nvenc.h.

typedef NVENCSTATUS(NVENCAPI * PNVENCODEAPICREATEINSTANCE)(NV_ENCODE_API_FUNCTION_LIST *functionList)

Definition at line 75 of file nvenc.h.

Enumeration Type Documentation

enum CUresult
Enumerator
CUDA_SUCCESS 

Definition at line 41 of file nvenc.h.

anonymous enum
Enumerator
PRESET_DEFAULT 
PRESET_SLOW 
PRESET_MEDIUM 
PRESET_FAST 
PRESET_HP 
PRESET_HQ 
PRESET_BD 
PRESET_LOW_LATENCY_DEFAULT 
PRESET_LOW_LATENCY_HQ 
PRESET_LOW_LATENCY_HP 
PRESET_LOSSLESS_DEFAULT 
PRESET_LOSSLESS_HP 

Definition at line 97 of file nvenc.h.

anonymous enum
Enumerator
NV_ENC_H264_PROFILE_BASELINE 
NV_ENC_H264_PROFILE_MAIN 
NV_ENC_H264_PROFILE_HIGH 
NV_ENC_H264_PROFILE_HIGH_444P 

Definition at line 112 of file nvenc.h.

anonymous enum
Enumerator
NVENC_LOWLATENCY 
NVENC_LOSSLESS 
NVENC_ONE_PASS 
NVENC_TWO_PASSES 

Definition at line 119 of file nvenc.h.

anonymous enum
Enumerator
LIST_DEVICES 
ANY_DEVICE 

Definition at line 126 of file nvenc.h.

Function Documentation

int ff_nvenc_encode_init ( AVCodecContext avctx)

Definition at line 1157 of file nvenc.c.

Referenced by nvenc_old_init().

int ff_nvenc_encode_close ( AVCodecContext avctx)

Definition at line 1080 of file nvenc.c.

int ff_nvenc_encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame frame,
int *  got_packet 
)

Definition at line 1583 of file nvenc.c.

Variable Documentation

enum AVPixelFormat ff_nvenc_pix_fmts[]

Definition at line 76 of file nvenc.c.