FFmpeg
|
#include <dlfcn.h>
#include <nvEncodeAPI.h>
#include "libavutil/internal.h"
#include "libavutil/imgutils.h"
#include "libavutil/avassert.h"
#include "libavutil/opt.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "internal.h"
#include "thread.h"
Go to the source code of this file.
Data Structures | |
struct | NvencInputSurface |
struct | NvencOutputSurface |
struct | NvencData |
struct | NvencDataList |
struct | NvencDynLoadFunctions |
struct | NvencValuePair |
struct | NvencContext |
Macros | |
#define | CUDAAPI |
#define | LOAD_FUNC(l, s) dlsym(l, s) |
#define | DL_CLOSE_FUNC(l) dlclose(l) |
#define | CHECK_LOAD_FUNC(t, f, s) |
#define | check_cuda_errors(f) if (!check_cuda_errors(avctx, f, #f)) goto error |
#define | OFFSET(x) offsetof(NvencContext, x) |
#define | VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
Typedefs | |
typedef int | CUdevice |
typedef void * | CUcontext |
typedef CUresult(CUDAAPI * | PCUINIT )(unsigned int Flags) |
typedef CUresult(CUDAAPI * | PCUDEVICEGETCOUNT )(int *count) |
typedef CUresult(CUDAAPI * | PCUDEVICEGET )(CUdevice *device, int ordinal) |
typedef CUresult(CUDAAPI * | PCUDEVICEGETNAME )(char *name, int len, CUdevice dev) |
typedef CUresult(CUDAAPI * | PCUDEVICECOMPUTECAPABILITY )(int *major, int *minor, CUdevice dev) |
typedef CUresult(CUDAAPI * | PCUCTXCREATE )(CUcontext *pctx, unsigned int flags, CUdevice dev) |
typedef CUresult(CUDAAPI * | PCUCTXPOPCURRENT )(CUcontext *pctx) |
typedef CUresult(CUDAAPI * | PCUCTXDESTROY )(CUcontext ctx) |
typedef NVENCSTATUS(NVENCAPI * | PNVENCODEAPICREATEINSTANCE )(NV_ENCODE_API_FUNCTION_LIST *functionList) |
Enumerations | |
enum | CUresult { CUDA_SUCCESS = 0 } |
Variables | |
static const NvencValuePair | nvenc_h264_level_pairs [] |
static const NvencValuePair | nvenc_hevc_level_pairs [] |
static enum AVPixelFormat | pix_fmts_nvenc [] |
static const AVOption | options [] |
static const AVCodecDefault | nvenc_defaults [] |
Definition at line 49 of file nvenc.c.
Referenced by nvenc_dyload_nvenc().
#define DL_CLOSE_FUNC | ( | l | ) | dlclose(l) |
Definition at line 50 of file nvenc.c.
Referenced by nvenc_dyload_cuda(), nvenc_dyload_nvenc(), and nvenc_unload_nvenc().
#define CHECK_LOAD_FUNC | ( | t, | |
f, | |||
s | |||
) |
Definition at line 332 of file nvenc.c.
Referenced by nvenc_dyload_cuda().
#define check_cuda_errors | ( | f | ) | if (!check_cuda_errors(avctx, f, #f)) goto error |
Definition at line 389 of file nvenc.c.
Referenced by nvenc_check_cuda().
#define OFFSET | ( | x | ) | offsetof(NvencContext, x) |
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM |
typedef NVENCSTATUS(NVENCAPI* PNVENCODEAPICREATEINSTANCE)(NV_ENCODE_API_FUNCTION_LIST *functionList) |
|
static |
Definition at line 219 of file nvenc.c.
Referenced by nvenc_encode_init().
|
static |
Definition at line 231 of file nvenc.c.
Referenced by data_queue_enqueue(), out_surf_queue_dequeue(), and timestamp_queue_dequeue().
|
static |
Definition at line 251 of file nvenc.c.
Referenced by out_surf_queue_enqueue(), and timestamp_queue_enqueue().
|
static |
Definition at line 296 of file nvenc.c.
Referenced by nvenc_encode_frame().
|
static |
Definition at line 304 of file nvenc.c.
Referenced by nvenc_encode_frame().
|
static |
Definition at line 314 of file nvenc.c.
Referenced by nvenc_encode_frame().
|
static |
Definition at line 322 of file nvenc.c.
Referenced by process_output_surface().
|
static |
Definition at line 341 of file nvenc.c.
Referenced by nvenc_check_cuda().
|
static |
|
static |
Definition at line 391 of file nvenc.c.
Referenced by nvenc_dyload_nvenc().
|
static |
Definition at line 460 of file nvenc.c.
Referenced by nvenc_encode_init().
|
static |
Definition at line 518 of file nvenc.c.
Referenced by nvenc_encode_close(), and nvenc_encode_init().
|
static |
|
static |
|
static |
Definition at line 1070 of file nvenc.c.
Referenced by nvenc_encode_frame().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |