mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
qsv: Use GST_PARAM_DOC_SHOW_DEFAULT flag
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3250>
This commit is contained in:
parent
6974b6f6ff
commit
4038a486a0
2 changed files with 10 additions and 12 deletions
|
@ -149,6 +149,9 @@ gst_qsv_decoder_class_init (GstQsvDecoderClass * klass)
|
|||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||
GstVideoDecoderClass *videodec_class = GST_VIDEO_DECODER_CLASS (klass);
|
||||
GParamFlags param_flags = (GParamFlags) (GST_PARAM_DOC_SHOW_DEFAULT |
|
||||
GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS);
|
||||
|
||||
object_class->get_property = gst_qsv_decoder_get_property;
|
||||
object_class->dispose = gst_qsv_decoder_dispose;
|
||||
|
@ -158,15 +161,11 @@ gst_qsv_decoder_class_init (GstQsvDecoderClass * klass)
|
|||
g_object_class_install_property (object_class, PROP_ADAPTER_LUID,
|
||||
g_param_spec_int64 ("adapter-luid", "Adapter LUID",
|
||||
"DXGI Adapter LUID (Locally Unique Identifier) of created device",
|
||||
G_MININT64, G_MAXINT64, 0,
|
||||
(GParamFlags) (GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS)));
|
||||
G_MININT64, G_MAXINT64, 0, param_flags));
|
||||
#else
|
||||
g_object_class_install_property (object_class, PROP_DEVICE_PATH,
|
||||
g_param_spec_string ("device-path", "Device Path",
|
||||
"DRM device path", nullptr,
|
||||
(GParamFlags) (GST_PARAM_CONDITIONALLY_AVAILABLE |
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)));
|
||||
"DRM device path", nullptr, param_flags));
|
||||
#endif
|
||||
|
||||
element_class->set_context = GST_DEBUG_FUNCPTR (gst_qsv_decoder_set_context);
|
||||
|
|
|
@ -200,6 +200,9 @@ gst_qsv_encoder_class_init (GstQsvEncoderClass * klass)
|
|||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
|
||||
GstVideoEncoderClass *videoenc_class = GST_VIDEO_ENCODER_CLASS (klass);
|
||||
GParamFlags param_flags = (GParamFlags) (GST_PARAM_DOC_SHOW_DEFAULT |
|
||||
GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS);
|
||||
|
||||
object_class->dispose = gst_qsv_encoder_dispose;
|
||||
object_class->finalize = gst_qsv_encoder_finalize;
|
||||
|
@ -210,15 +213,11 @@ gst_qsv_encoder_class_init (GstQsvEncoderClass * klass)
|
|||
g_object_class_install_property (object_class, PROP_ADAPTER_LUID,
|
||||
g_param_spec_int64 ("adapter-luid", "Adapter LUID",
|
||||
"DXGI Adapter LUID (Locally Unique Identifier) of created device",
|
||||
G_MININT64, G_MAXINT64, 0,
|
||||
(GParamFlags) (GST_PARAM_CONDITIONALLY_AVAILABLE | G_PARAM_READABLE |
|
||||
G_PARAM_STATIC_STRINGS)));
|
||||
G_MININT64, G_MAXINT64, 0, param_flags));
|
||||
#else
|
||||
g_object_class_install_property (object_class, PROP_DEVICE_PATH,
|
||||
g_param_spec_string ("device-path", "Device Path",
|
||||
"DRM device path", NULL,
|
||||
(GParamFlags) (GST_PARAM_CONDITIONALLY_AVAILABLE |
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)));
|
||||
"DRM device path", nullptr, param_flags));
|
||||
#endif
|
||||
|
||||
g_object_class_install_property (object_class, PROP_TARGET_USAGE,
|
||||
|
|
Loading…
Reference in a new issue