diff options
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r-- | libavcodec/nvenc.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h index 7b1e8a5596..6edca75195 100644 --- a/libavcodec/nvenc.h +++ b/libavcodec/nvenc.h @@ -27,17 +27,12 @@ #include "avcodec.h" -typedef struct NVENCInputSurface { - NV_ENC_INPUT_PTR in; +typedef struct NVENCFrame { + NV_ENC_INPUT_PTR in; + NV_ENC_OUTPUT_PTR out; NV_ENC_BUFFER_FORMAT format; int locked; -} NVENCInputSurface; - -typedef struct NVENCOutputSurface { - NV_ENC_OUTPUT_PTR out; - NVENCInputSurface *in; - int busy; -} NVENCOutputSurface; +} NVENCFrame; typedef CUresult(CUDAAPI *PCUINIT)(unsigned int Flags); typedef CUresult(CUDAAPI *PCUDEVICEGETCOUNT)(int *count); @@ -107,8 +102,7 @@ typedef struct NVENCContext { CUcontext cu_context; int nb_surfaces; - NVENCInputSurface *in; - NVENCOutputSurface *out; + NVENCFrame *frames; AVFifoBuffer *timestamps; AVFifoBuffer *pending, *ready; |