mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
nvenc: mark properties that can be changed at runtime accordingly
https://bugzilla.gnome.org/show_bug.cgi?id=781410
This commit is contained in:
parent
59365e3d7b
commit
bea0ea66be
1 changed files with 18 additions and 12 deletions
|
@ -260,30 +260,36 @@ gst_nv_base_enc_class_init (GstNvBaseEncClass * klass)
|
||||||
g_object_class_install_property (gobject_class, PROP_PRESET,
|
g_object_class_install_property (gobject_class, PROP_PRESET,
|
||||||
g_param_spec_enum ("preset", "Encoding Preset",
|
g_param_spec_enum ("preset", "Encoding Preset",
|
||||||
"Encoding Preset",
|
"Encoding Preset",
|
||||||
GST_TYPE_NV_PRESET,
|
GST_TYPE_NV_PRESET, DEFAULT_PRESET,
|
||||||
DEFAULT_PRESET, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | GST_PARAM_MUTABLE_PLAYING |
|
||||||
|
G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, PROP_RC_MODE,
|
g_object_class_install_property (gobject_class, PROP_RC_MODE,
|
||||||
g_param_spec_enum ("rc-mode", "RC Mode",
|
g_param_spec_enum ("rc-mode", "RC Mode", "Rate Control Mode",
|
||||||
"Rate Control Mode",
|
GST_TYPE_NV_RC_MODE, DEFAULT_RC_MODE,
|
||||||
GST_TYPE_NV_RC_MODE,
|
G_PARAM_READWRITE | GST_PARAM_MUTABLE_PLAYING |
|
||||||
DEFAULT_RC_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, PROP_QP_MIN,
|
g_object_class_install_property (gobject_class, PROP_QP_MIN,
|
||||||
g_param_spec_int ("qp-min", "Minimum Quantizer",
|
g_param_spec_int ("qp-min", "Minimum Quantizer",
|
||||||
"Minimum quantizer (-1 = from NVENC preset)", -1, 51, DEFAULT_QP_MIN,
|
"Minimum quantizer (-1 = from NVENC preset)", -1, 51, DEFAULT_QP_MIN,
|
||||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | GST_PARAM_MUTABLE_PLAYING |
|
||||||
|
G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, PROP_QP_MAX,
|
g_object_class_install_property (gobject_class, PROP_QP_MAX,
|
||||||
g_param_spec_int ("qp-max", "Maximum Quantizer",
|
g_param_spec_int ("qp-max", "Maximum Quantizer",
|
||||||
"Maximum quantizer (-1 = from NVENC preset)", -1, 51, DEFAULT_QP_MAX,
|
"Maximum quantizer (-1 = from NVENC preset)", -1, 51, DEFAULT_QP_MAX,
|
||||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | GST_PARAM_MUTABLE_PLAYING |
|
||||||
|
G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, PROP_QP_CONST,
|
g_object_class_install_property (gobject_class, PROP_QP_CONST,
|
||||||
g_param_spec_int ("qp-const", "Constant Quantizer",
|
g_param_spec_int ("qp-const", "Constant Quantizer",
|
||||||
"Constant quantizer (-1 = from NVENC preset)",
|
"Constant quantizer (-1 = from NVENC preset)", -1, 51,
|
||||||
-1, 51, DEFAULT_QP_CONST,
|
DEFAULT_QP_CONST,
|
||||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_READWRITE | GST_PARAM_MUTABLE_PLAYING |
|
||||||
|
G_PARAM_STATIC_STRINGS));
|
||||||
g_object_class_install_property (gobject_class, PROP_BITRATE,
|
g_object_class_install_property (gobject_class, PROP_BITRATE,
|
||||||
g_param_spec_uint ("bitrate", "Bitrate",
|
g_param_spec_uint ("bitrate", "Bitrate",
|
||||||
"Bitrate in kbit/sec (0 = from NVENC preset)", 0, 2000 * 1024,
|
"Bitrate in kbit/sec (0 = from NVENC preset)", 0, 2000 * 1024,
|
||||||
DEFAULT_BITRATE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
DEFAULT_BITRATE,
|
||||||
|
G_PARAM_READWRITE | GST_PARAM_MUTABLE_PLAYING |
|
||||||
|
G_PARAM_STATIC_STRINGS));
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue