gltransformation: support negative scales
A scale of -1.0 means to flip the video.
This commit is contained in:
parent
d05bd79042
commit
e8544db8cf
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user