From c60504bd9e10a9e41810cdcb9668543b02e487df Mon Sep 17 00:00:00 2001 From: Victor Manuel Jaquez Leal Date: Tue, 8 Nov 2022 11:36:12 +0100 Subject: [PATCH] va: Document device-path property. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c | 7 +++++++ subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c | 5 +++++ subprojects/gst-plugins-bad/sys/va/gstvacompositor.c | 10 ++++++++++ subprojects/gst-plugins-bad/sys/va/gstvah264dec.c | 7 +++++++ subprojects/gst-plugins-bad/sys/va/gstvah265dec.c | 7 +++++++ subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c | 5 +++++ subprojects/gst-plugins-bad/sys/va/gstvampeg2dec.c | 7 +++++++ subprojects/gst-plugins-bad/sys/va/gstvavp8dec.c | 7 +++++++ subprojects/gst-plugins-bad/sys/va/gstvavp9dec.c | 7 +++++++ 9 files changed, 62 insertions(+) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c b/subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c index 4ca8f4b5c5..3530654f1f 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaav1dec.c @@ -1035,6 +1035,13 @@ gst_va_av1_dec_class_init (gpointer g_class, gpointer class_data) parent_class = g_type_class_peek_parent (g_class); + /** + * GstVaAV1Dec:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + * + * Since: 1.22 + */ gst_va_base_dec_class_init (GST_VA_BASE_DEC_CLASS (g_class), AV1, cdata->render_device_path, cdata->sink_caps, cdata->src_caps, src_doc_caps, sink_doc_caps); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c index 1f61246a20..625b965dd6 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabaseenc.c @@ -901,6 +901,11 @@ gst_va_base_enc_class_init (GstVaBaseEncClass * klass) klass->reset_state = GST_DEBUG_FUNCPTR (gst_va_base_enc_reset_state_default); + /** + * GstVaBaseEnc:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + */ properties[PROP_DEVICE_PATH] = g_param_spec_string ("device-path", "Device Path", "DRM device path", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c b/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c index 21db9667f4..6dcc87a901 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c @@ -1400,10 +1400,20 @@ gst_va_compositor_class_init (gpointer g_class, gpointer class_data) vagg_class->create_output_buffer = GST_DEBUG_FUNCPTR (gst_va_compositor_create_output_buffer); + /** + * GstVaCompositor:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + */ properties[PROP_DEVICE_PATH] = g_param_spec_string ("device-path", "Device Path", "DRM device path", NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + /** + * GstVaCompositor:scale-method: + * + * Sets the scale method algorithm to use when resizing. + */ properties[PROP_SCALE_METHOD] = g_param_spec_enum ("scale-method", "Scale Method", "Scale method to use", GST_TYPE_VA_SCALE_METHOD, VA_FILTER_SCALING_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvah264dec.c b/subprojects/gst-plugins-bad/sys/va/gstvah264dec.c index d7d229c0b9..d92a626039 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvah264dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvah264dec.c @@ -936,6 +936,13 @@ gst_va_h264_dec_class_init (gpointer g_class, gpointer class_data) parent_class = g_type_class_peek_parent (g_class); + /** + * GstVaH264Dec:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + * + * Since: 1.22 + */ gst_va_base_dec_class_init (GST_VA_BASE_DEC_CLASS (g_class), H264, cdata->render_device_path, cdata->sink_caps, cdata->src_caps, src_doc_caps, sink_doc_caps); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c b/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c index f90b23d5b0..3cf526af88 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvah265dec.c @@ -1291,6 +1291,13 @@ gst_va_h265_dec_class_init (gpointer g_class, gpointer class_data) parent_class = g_type_class_peek_parent (g_class); + /** + * GstVaH265Dec:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + * + * Since: 1.22 + */ gst_va_base_dec_class_init (GST_VA_BASE_DEC_CLASS (g_class), HEVC, cdata->render_device_path, cdata->sink_caps, cdata->src_caps, src_doc_caps, sink_doc_caps); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c b/subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c index c7170130a3..a6e5a3f06c 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c @@ -469,6 +469,11 @@ gst_va_jpeg_dec_class_init (gpointer g_class, gpointer class_data) jpegdecoder_class->output_picture = GST_DEBUG_FUNCPTR (gst_va_jpeg_dec_output_picture); + /** + * GstVaJpegDec:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + */ gst_va_base_dec_class_init (GST_VA_BASE_DEC_CLASS (g_class), JPEG, cdata->render_device_path, cdata->sink_caps, cdata->src_caps, src_doc_caps, sink_doc_caps); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvampeg2dec.c b/subprojects/gst-plugins-bad/sys/va/gstvampeg2dec.c index 9eee100087..69be39c47c 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvampeg2dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvampeg2dec.c @@ -631,6 +631,13 @@ gst_va_mpeg2_dec_class_init (gpointer g_class, gpointer class_data) parent_class = g_type_class_peek_parent (g_class); + /** + * GstVaMpeg2Dec:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + * + * Since: 1.22 + */ gst_va_base_dec_class_init (GST_VA_BASE_DEC_CLASS (g_class), MPEG2, cdata->render_device_path, cdata->sink_caps, cdata->src_caps, src_doc_caps, sink_doc_caps); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvavp8dec.c b/subprojects/gst-plugins-bad/sys/va/gstvavp8dec.c index d1c65420b7..50d721d6a4 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvavp8dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvavp8dec.c @@ -504,6 +504,13 @@ gst_va_vp8_dec_class_init (gpointer g_class, gpointer class_data) parent_class = g_type_class_peek_parent (g_class); + /** + * GstVaVp8Dec:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + * + * Since: 1.22 + */ gst_va_base_dec_class_init (GST_VA_BASE_DEC_CLASS (g_class), VP8, cdata->render_device_path, cdata->sink_caps, cdata->src_caps, src_doc_caps, sink_doc_caps); diff --git a/subprojects/gst-plugins-bad/sys/va/gstvavp9dec.c b/subprojects/gst-plugins-bad/sys/va/gstvavp9dec.c index 86af8ceba5..45807f5c9a 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvavp9dec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvavp9dec.c @@ -652,6 +652,13 @@ gst_va_vp9_dec_class_init (gpointer g_class, gpointer class_data) parent_class = g_type_class_peek_parent (g_class); + /** + * GstVaVp9Dec:device-path: + * + * It shows the DRM device path used for the VA operation, if any. + * + * Since: 1.22 + */ gst_va_base_dec_class_init (GST_VA_BASE_DEC_CLASS (g_class), VP9, cdata->render_device_path, cdata->sink_caps, cdata->src_caps, src_doc_caps, sink_doc_caps);