mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
gltransformation: support negative scales
A scale of -1.0 means to flip the video.
This commit is contained in:
parent
12f013c8d7
commit
f721499371
1 changed files with 4 additions and 2 deletions
|
@ -199,12 +199,14 @@ gst_gl_transformation_class_init (GstGLTransformationClass * klass)
|
|||
g_object_class_install_property (gobject_class, PROP_SCALE_X,
|
||||
g_param_spec_float ("scale-x", "X Scale",
|
||||
"Scale multiplier for the X-Axis.",
|
||||
0.0, G_MAXFLOAT, 1.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
-G_MAXFLOAT, G_MAXFLOAT, 1.0,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_SCALE_Y,
|
||||
g_param_spec_float ("scale-y", "Y Scale",
|
||||
"Scale multiplier for the Y-Axis.",
|
||||
0.0, G_MAXFLOAT, 1.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
-G_MAXFLOAT, G_MAXFLOAT, 1.0,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/* Pivot */
|
||||
g_object_class_install_property (gobject_class, PROP_PIVOT_X,
|
||||
|
|
Loading…
Reference in a new issue