summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2020-06-03 17:37:48 -0400
committerThibault Saunier <tsaunier@igalia.com>2020-06-03 17:37:48 -0400
commit31d85bfb650aafa3fa52ebcfe3c7255a7e6b56e7 (patch)
tree141e5d4f7db55382acb4fd6ef3e4f8dc0b60a8f3 /gst-libs/gst
parente41c6bd29895156cfdc4c36bd23826e9e3ac8a67 (diff)
Use gst_type_mark_as_plugin_api() for all non-element plugin types
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidisplay.c1
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h264.c6
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_h265.c3
-rw-r--r--gst-libs/gst/vaapi/gstvaapifilter.c4
-rw-r--r--gst-libs/gst/vaapi/gstvaapivalue.c5
5 files changed, 19 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c
index 5b74d821..295de3bf 100644
--- a/gst-libs/gst/vaapi/gstvaapidisplay.c
+++ b/gst-libs/gst/vaapi/gstvaapidisplay.c
@@ -1225,6 +1225,7 @@ gst_vaapi_display_class_init (GstVaapiDisplayClass * klass)
"The display contrast value", 0.0, 2.0, 1.0, G_PARAM_READWRITE);
g_object_class_install_properties (object_class, N_PROPERTIES, g_properties);
+ gst_type_mark_as_plugin_api (gst_vaapi_display_type_get_type ());
}
/**
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
index 153c5d90..22ea8b16 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
@@ -4045,6 +4045,12 @@ gst_vaapi_encoder_h264_class_init (GstVaapiEncoderH264Class * klass)
g_object_class_install_properties (object_class, ENCODER_H264_N_PROPERTIES,
properties);
+
+ gst_type_mark_as_plugin_api (GST_VAAPI_TYPE_ENCODER_MBBRC);
+ gst_type_mark_as_plugin_api (gst_vaapi_encoder_h264_prediction_type ());
+ gst_type_mark_as_plugin_api (g_class_data.rate_control_get_type ());
+ gst_type_mark_as_plugin_api (g_class_data.encoder_tune_get_type ());
+ gst_type_mark_as_plugin_api (gst_vaapi_encoder_h264_compliance_mode_type ());
}
/**
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
index 8599321d..bee501f2 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h265.c
@@ -3173,6 +3173,9 @@ gst_vaapi_encoder_h265_class_init (GstVaapiEncoderH265Class * klass)
g_object_class_install_properties (object_class, ENCODER_H265_N_PROPERTIES,
properties);
+
+ gst_type_mark_as_plugin_api (g_class_data.rate_control_get_type ());
+ gst_type_mark_as_plugin_api (g_class_data.encoder_tune_get_type ());
}
/**
diff --git a/gst-libs/gst/vaapi/gstvaapifilter.c b/gst-libs/gst/vaapi/gstvaapifilter.c
index f33eb11b..c0fb1c25 100644
--- a/gst-libs/gst/vaapi/gstvaapifilter.c
+++ b/gst-libs/gst/vaapi/gstvaapifilter.c
@@ -121,6 +121,8 @@ gst_vaapi_scale_method_get_type (void)
const GType type =
g_enum_register_static ("GstVaapiScaleMethod", enum_values);
g_once_init_leave (&g_type, type);
+
+ gst_type_mark_as_plugin_api (type);
}
return g_type;
}
@@ -147,6 +149,7 @@ gst_vaapi_deinterlace_method_get_type (void)
if (g_once_init_enter (&g_type)) {
const GType type =
g_enum_register_static ("GstVaapiDeinterlaceMethod", enum_values);
+ gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
@@ -170,6 +173,7 @@ gst_vaapi_deinterlace_flags_get_type (void)
if (g_once_init_enter (&g_type)) {
const GType type =
g_enum_register_static ("GstVaapiDeinterlaceFlags", enum_values);
+ gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
diff --git a/gst-libs/gst/vaapi/gstvaapivalue.c b/gst-libs/gst/vaapi/gstvaapivalue.c
index 5b5c9901..c8aa8fcd 100644
--- a/gst-libs/gst/vaapi/gstvaapivalue.c
+++ b/gst-libs/gst/vaapi/gstvaapivalue.c
@@ -56,6 +56,7 @@ gst_vaapi_point_get_type (void)
GType type =
g_boxed_type_register_static (g_intern_static_string ("GstVaapiPoint"),
default_copy_func, default_free_func);
+ gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
@@ -73,6 +74,7 @@ gst_vaapi_rectangle_get_type (void)
g_boxed_type_register_static (g_intern_static_string
("GstVaapiRectangle"),
default_copy_func, default_free_func);
+ gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
@@ -95,6 +97,7 @@ gst_vaapi_render_mode_get_type (void)
if (g_once_init_enter (&g_type)) {
GType type = g_enum_register_static ("GstVaapiRenderMode", render_modes);
+ gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
@@ -123,6 +126,7 @@ gst_vaapi_rotation_get_type (void)
if (g_once_init_enter (&g_type)) {
GType type = g_enum_register_static ("GstVaapiRotation", rotation_values);
+ gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
@@ -160,6 +164,7 @@ gst_vaapi_rate_control_get_type (void)
if (g_once_init_enter (&g_type)) {
GType type = g_enum_register_static ("GstVaapiRateControl",
rate_control_values);
+ gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;