video/affinetransformationmeta: define the coordinate space used
authorMatthew Waters <matthew@centricular.com>
Sat, 14 May 2016 12:43:24 +0000 (15:43 +0300)
committerMatthew Waters <matthew@centricular.com>
Sun, 15 May 2016 07:53:55 +0000 (10:53 +0300)
Based on the expected output from the already existing usage by androidmedia
and the opengl plugins.

https://bugzilla.gnome.org/show_bug.cgi?id=764667

gst-libs/gst/video/gstvideoaffinetransformationmeta.h

index 3838a01..f1ee629 100644 (file)
@@ -45,6 +45,13 @@ typedef gboolean (*GstVideoAffineTransformationGetMatrix) (GstVideoAffineTransfo
  * matrix. The transformation matrix can be composed with
  * gst_video_affine_transformation_meta_apply_matrix().
  *
+ * The vertices operated on are all in the range 0 to 1, not in
+ * Normalized Device Coordinates (-1 to +1). Transforming points in this space
+ * are assumed to have an origin at (0.5, 0.5, 0.5) in a left-handed coordinate
+ * system with the x-axis moving horizontally (positive values to the right),
+ * the y-axis moving vertically (positive values up the screen) and the z-axis
+ * perpendicular to the screen (positive values into the screen).
+ *
  * Since: 1.8
  */