Commit b1df4f46 authored by Seungha Yang's avatar Seungha Yang 🐑
Browse files

nvenc: Support CUDA buffer pool

When upstream support CUDA memory (only nvdec for now), we will create
CUDA buffer pool.
parent 97726ee6
This diff is collapsed.
...@@ -59,6 +59,13 @@ typedef enum { ...@@ -59,6 +59,13 @@ typedef enum {
GST_NV_RC_MODE_VBR_MINQP, GST_NV_RC_MODE_VBR_MINQP,
} GstNvRCMode; } GstNvRCMode;
typedef enum
{
GST_NVENC_INPUT_GL,
GST_NVENC_INPUT_CUDA,
GST_NVENC_INPUT_HOST,
} GstNvEncInputType;
typedef struct { typedef struct {
GstVideoEncoder video_encoder; GstVideoEncoder video_encoder;
...@@ -85,7 +92,7 @@ typedef struct { ...@@ -85,7 +92,7 @@ typedef struct {
GstVideoCodecState *input_state; GstVideoCodecState *input_state;
volatile gint reconfig; /* ATOMIC */ volatile gint reconfig; /* ATOMIC */
gboolean gl_input; GstNvEncInputType input_type;
/* (NvBaseEncFrameState) allocated input/output buffers, /* (NvBaseEncFrameState) allocated input/output buffers,
* hold ref of NvBaseEncFrameState */ * hold ref of NvBaseEncFrameState */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment