Lines Matching refs:square
91 GstSquare *square; in gst_square_set_property() local
96 square = GST_SQUARE_CAST (gt); in gst_square_set_property()
98 GST_OBJECT_LOCK (square); in gst_square_set_property()
102 if (v != square->width) { in gst_square_set_property()
103 square->width = v; in gst_square_set_property()
109 if (v != square->height) { in gst_square_set_property()
110 square->height = v; in gst_square_set_property()
116 if (v != square->zoom) { in gst_square_set_property()
117 square->zoom = v; in gst_square_set_property()
125 GST_OBJECT_UNLOCK (square); in gst_square_set_property()
132 GstSquare *square; in gst_square_get_property() local
136 square = GST_SQUARE_CAST (gt); in gst_square_get_property()
140 g_value_set_double (value, square->width); in gst_square_get_property()
143 g_value_set_double (value, square->height); in gst_square_get_property()
146 g_value_set_double (value, square->zoom); in gst_square_get_property()
158 GstSquare *square = GST_SQUARE_CAST (gt); in square_map() local
173 (1.0 / square->zoom) * (1.0 + (square->zoom - in square_map()
174 1.0) * gst_gm_smoothstep (square->width - 0.125, in square_map()
175 square->width + 0.125, ABS (norm_x))); in square_map()
177 (1.0 / square->zoom) * (1.0 + (square->zoom - in square_map()
178 1.0) * gst_gm_smoothstep (square->height - 0.125, in square_map()
179 square->height + 0.125, ABS (norm_y))); in square_map()
185 GST_DEBUG_OBJECT (square, "Inversely mapped %d %d into %lf %lf", in square_map()