va: Add since markers
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8774>
This commit is contained in:
parent
7ed5c10751
commit
e3c3fd10cd
@ -36,6 +36,15 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GstVaCodecAlphaDecodeBin:
|
||||||
|
*
|
||||||
|
* Base class for VA-API based decoder for alpha formats which come
|
||||||
|
* as a separate stream, typically found in VP8 and VP9.
|
||||||
|
*
|
||||||
|
* Since: 1.24
|
||||||
|
*/
|
||||||
|
|
||||||
#define GST_TYPE_VA_CODEC_ALPHA_DECODE_BIN (gst_va_codec_alpha_decode_bin_get_type())
|
#define GST_TYPE_VA_CODEC_ALPHA_DECODE_BIN (gst_va_codec_alpha_decode_bin_get_type())
|
||||||
G_DECLARE_DERIVABLE_TYPE (GstVaCodecAlphaDecodeBin,
|
G_DECLARE_DERIVABLE_TYPE (GstVaCodecAlphaDecodeBin,
|
||||||
gst_va_codec_alpha_decode_bin, GST, VA_CODEC_ALPHA_DECODE_BIN, GstBin);
|
gst_va_codec_alpha_decode_bin, GST, VA_CODEC_ALPHA_DECODE_BIN, GstBin);
|
||||||
|
@ -585,6 +585,11 @@ static const struct _CBDesc {
|
|||||||
[VAProcColorBalanceAutoBrightness] =
|
[VAProcColorBalanceAutoBrightness] =
|
||||||
{ "auto-brightness", "Auto-Brightness", "Enable auto brightness",
|
{ "auto-brightness", "Auto-Brightness", "Enable auto brightness",
|
||||||
GST_VA_FILTER_PROP_AUTO_BRIGHTNESS },
|
GST_VA_FILTER_PROP_AUTO_BRIGHTNESS },
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:auto-contrast:
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
[VAProcColorBalanceAutoContrast] =
|
[VAProcColorBalanceAutoContrast] =
|
||||||
{ "auto-contrast", "Auto-Contrast", "Enable auto contrast",
|
{ "auto-contrast", "Auto-Contrast", "Enable auto contrast",
|
||||||
GST_VA_FILTER_PROP_AUTO_CONTRAST },
|
GST_VA_FILTER_PROP_AUTO_CONTRAST },
|
||||||
@ -692,6 +697,13 @@ gst_va_filter_install_properties (GstVaFilter * self, GObjectClass * klass)
|
|||||||
|
|
||||||
if (self->pipeline_caps.mirror_flags != VA_MIRROR_NONE
|
if (self->pipeline_caps.mirror_flags != VA_MIRROR_NONE
|
||||||
|| self->pipeline_caps.rotation_flags != VA_ROTATION_NONE) {
|
|| self->pipeline_caps.rotation_flags != VA_ROTATION_NONE) {
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:video-direction:
|
||||||
|
*
|
||||||
|
* Video direction: rotation and flipping
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
g_object_class_install_property (klass, GST_VA_FILTER_PROP_VIDEO_DIR,
|
g_object_class_install_property (klass, GST_VA_FILTER_PROP_VIDEO_DIR,
|
||||||
g_param_spec_enum ("video-direction", "Video Direction",
|
g_param_spec_enum ("video-direction", "Video Direction",
|
||||||
"Video direction: rotation and flipping",
|
"Video direction: rotation and flipping",
|
||||||
|
@ -2301,14 +2301,29 @@ gst_va_vpp_init (GTypeInstance * instance, gpointer g_class)
|
|||||||
self->prev_direction = self->direction;
|
self->prev_direction = self->direction;
|
||||||
self->tag_direction = GST_VIDEO_ORIENTATION_AUTO;
|
self->tag_direction = GST_VIDEO_ORIENTATION_AUTO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:denoise:
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
pspec = g_object_class_find_property (g_class, "denoise");
|
pspec = g_object_class_find_property (g_class, "denoise");
|
||||||
if (pspec)
|
if (pspec)
|
||||||
self->denoise = g_value_get_float (g_param_spec_get_default_value (pspec));
|
self->denoise = g_value_get_float (g_param_spec_get_default_value (pspec));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:sharpen:
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
pspec = g_object_class_find_property (g_class, "sharpen");
|
pspec = g_object_class_find_property (g_class, "sharpen");
|
||||||
if (pspec)
|
if (pspec)
|
||||||
self->sharpen = g_value_get_float (g_param_spec_get_default_value (pspec));
|
self->sharpen = g_value_get_float (g_param_spec_get_default_value (pspec));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:skin-tone:
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
pspec = g_object_class_find_property (g_class, "skin-tone");
|
pspec = g_object_class_find_property (g_class, "skin-tone");
|
||||||
if (pspec) {
|
if (pspec) {
|
||||||
const GValue *value = g_param_spec_get_default_value (pspec);
|
const GValue *value = g_param_spec_get_default_value (pspec);
|
||||||
@ -2319,22 +2334,44 @@ gst_va_vpp_init (GTypeInstance * instance, gpointer g_class)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* color balance */
|
/* color balance */
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:brightness:
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
pspec = g_object_class_find_property (g_class, "brightness");
|
pspec = g_object_class_find_property (g_class, "brightness");
|
||||||
if (pspec) {
|
if (pspec) {
|
||||||
self->brightness =
|
self->brightness =
|
||||||
g_value_get_float (g_param_spec_get_default_value (pspec));
|
g_value_get_float (g_param_spec_get_default_value (pspec));
|
||||||
_create_colorbalance_channel (self, "BRIGHTNESS");
|
_create_colorbalance_channel (self, "BRIGHTNESS");
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:contrast:
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
pspec = g_object_class_find_property (g_class, "contrast");
|
pspec = g_object_class_find_property (g_class, "contrast");
|
||||||
if (pspec) {
|
if (pspec) {
|
||||||
self->contrast = g_value_get_float (g_param_spec_get_default_value (pspec));
|
self->contrast = g_value_get_float (g_param_spec_get_default_value (pspec));
|
||||||
_create_colorbalance_channel (self, "CONTRAST");
|
_create_colorbalance_channel (self, "CONTRAST");
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:hue:
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
pspec = g_object_class_find_property (g_class, "hue");
|
pspec = g_object_class_find_property (g_class, "hue");
|
||||||
if (pspec) {
|
if (pspec) {
|
||||||
self->hue = g_value_get_float (g_param_spec_get_default_value (pspec));
|
self->hue = g_value_get_float (g_param_spec_get_default_value (pspec));
|
||||||
_create_colorbalance_channel (self, "HUE");
|
_create_colorbalance_channel (self, "HUE");
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* GstVaPostProc:saturation:
|
||||||
|
*
|
||||||
|
* Color saturation value
|
||||||
|
*
|
||||||
|
* Since: 1.20
|
||||||
|
*/
|
||||||
pspec = g_object_class_find_property (g_class, "saturation");
|
pspec = g_object_class_find_property (g_class, "saturation");
|
||||||
if (pspec) {
|
if (pspec) {
|
||||||
self->saturation =
|
self->saturation =
|
||||||
@ -2342,7 +2379,13 @@ gst_va_vpp_init (GTypeInstance * instance, gpointer g_class)
|
|||||||
_create_colorbalance_channel (self, "SATURATION");
|
_create_colorbalance_channel (self, "SATURATION");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* HDR tone mapping */
|
/**
|
||||||
|
* GstVaPostProc:hdr-tone-mapping:
|
||||||
|
*
|
||||||
|
* HDR tone mapping
|
||||||
|
*
|
||||||
|
* Since: 1.22
|
||||||
|
*/
|
||||||
pspec = g_object_class_find_property (g_class, "hdr-tone-mapping");
|
pspec = g_object_class_find_property (g_class, "hdr-tone-mapping");
|
||||||
if (pspec) {
|
if (pspec) {
|
||||||
self->hdr_mapping =
|
self->hdr_mapping =
|
||||||
|
@ -61,6 +61,7 @@ va_headers = [
|
|||||||
'gstvavp9enc.h',
|
'gstvavp9enc.h',
|
||||||
'gstvavpp.h',
|
'gstvavpp.h',
|
||||||
'vacompat.h',
|
'vacompat.h',
|
||||||
|
'gstvacodecalphadecodebin.h'
|
||||||
]
|
]
|
||||||
|
|
||||||
va_linux_sources = [
|
va_linux_sources = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user