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 333 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 390 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 220 of file nvenc.c.
Referenced by nvenc_encode_init().
|
static |
Definition at line 232 of file nvenc.c.
Referenced by data_queue_enqueue(), out_surf_queue_dequeue(), and timestamp_queue_dequeue().
|
static |
Definition at line 252 of file nvenc.c.
Referenced by out_surf_queue_enqueue(), and timestamp_queue_enqueue().
|
static |
Definition at line 297 of file nvenc.c.
Referenced by nvenc_encode_frame().
|
static |
Definition at line 305 of file nvenc.c.
Referenced by nvenc_encode_frame().
|
static |
Definition at line 315 of file nvenc.c.
Referenced by nvenc_encode_frame().
|
static |
Definition at line 323 of file nvenc.c.
Referenced by process_output_surface().
|
static |
Definition at line 342 of file nvenc.c.
Referenced by nvenc_check_cuda().
|
static |
|
static |
Definition at line 392 of file nvenc.c.
Referenced by nvenc_dyload_nvenc().
|
static |
Definition at line 461 of file nvenc.c.
Referenced by nvenc_encode_init().
|
static |
Definition at line 519 of file nvenc.c.
Referenced by nvenc_encode_close(), and nvenc_encode_init().
|
static |
|
static |
|
static |
Definition at line 1096 of file nvenc.c.
Referenced by nvenc_encode_frame().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |