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 {
GST_NV_RC_MODE_VBR_MINQP,
} GstNvRCMode;
typedef enum
{
GST_NVENC_INPUT_GL,
GST_NVENC_INPUT_CUDA,
GST_NVENC_INPUT_HOST,
} GstNvEncInputType;
typedef struct {
GstVideoEncoder video_encoder;
......@@ -85,7 +92,7 @@ typedef struct {
GstVideoCodecState *input_state;
volatile gint reconfig; /* ATOMIC */
gboolean gl_input;
GstNvEncInputType input_type;
/* (NvBaseEncFrameState) allocated input/output buffers,
* 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