| Top |
GstVideoAffineTransformationMetaGstVideoAffineTransformationMeta — GstMeta for video affine transformation |
gboolean (*GstVideoAffineTransformationGetMatrix) (GstVideoAffineTransformationMeta *meta,gfloat *matrix);
GstVideoAffineTransformationMeta *
gst_buffer_add_video_affine_transformation_meta
(GstBuffer *buffer);
Attaches GstVideoAffineTransformationMeta metadata to buffer
with
the given parameters.
Since: 1.8
#define gst_buffer_get_video_affine_transformation_meta(b)
void gst_video_affine_transformation_meta_apply_matrix (GstVideoAffineTransformationMeta *meta,const gfloat matrix[16]);
Apply a transformation using the given 4x4 transformation matrix. Performs the multiplication, meta->matrix X matrix.
Since: 1.8
struct GstVideoAffineTransformationMeta {
GstMeta meta;
gfloat matrix[16];
};
Extra buffer metadata for performing an affine transformation using a 4x4
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