gltransformation: support negative scales

A scale of -1.0 means to flip the video.
This commit is contained in:
Matthew Waters 2016-01-14 19:03:04 +11:00
parent 12f013c8d7
commit f721499371

View file

@ -199,12 +199,14 @@ gst_gl_transformation_class_init (GstGLTransformationClass * klass)
g_object_class_install_property (gobject_class, PROP_SCALE_X, g_object_class_install_property (gobject_class, PROP_SCALE_X,
g_param_spec_float ("scale-x", "X Scale", g_param_spec_float ("scale-x", "X Scale",
"Scale multiplier for the X-Axis.", "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_object_class_install_property (gobject_class, PROP_SCALE_Y,
g_param_spec_float ("scale-y", "Y Scale", g_param_spec_float ("scale-y", "Y Scale",
"Scale multiplier for the Y-Axis.", "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 */ /* Pivot */
g_object_class_install_property (gobject_class, PROP_PIVOT_X, g_object_class_install_property (gobject_class, PROP_PIVOT_X,