| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.GstVideo.Structs.VideoAffineTransformationMeta
Description
Extra buffer metadata for performing an affine transformation using a 4x4
matrix. The transformation matrix can be composed with
videoAffineTransformationMetaApplyMatrix.
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
Synopsis
- newtype VideoAffineTransformationMeta = VideoAffineTransformationMeta (ManagedPtr VideoAffineTransformationMeta)
- newZeroVideoAffineTransformationMeta :: MonadIO m => m VideoAffineTransformationMeta
- videoAffineTransformationMetaApplyMatrix :: (HasCallStack, MonadIO m) => VideoAffineTransformationMeta -> [Float] -> m ()
- videoAffineTransformationMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo
- getVideoAffineTransformationMetaMeta :: MonadIO m => VideoAffineTransformationMeta -> m Meta
Exported types
newtype VideoAffineTransformationMeta Source #
Memory-managed wrapper type.
Constructors
| VideoAffineTransformationMeta (ManagedPtr VideoAffineTransformationMeta) |
Instances
| Eq VideoAffineTransformationMeta Source # | |
| BoxedPtr VideoAffineTransformationMeta Source # | |
| CallocPtr VideoAffineTransformationMeta Source # | |
Defined in GI.GstVideo.Structs.VideoAffineTransformationMeta Methods | |
| ManagedPtrNewtype VideoAffineTransformationMeta Source # | |
Defined in GI.GstVideo.Structs.VideoAffineTransformationMeta Methods toManagedPtr :: VideoAffineTransformationMeta -> ManagedPtr VideoAffineTransformationMeta | |
| tag ~ 'AttrSet => Constructible VideoAffineTransformationMeta tag Source # | |
Defined in GI.GstVideo.Structs.VideoAffineTransformationMeta Methods new :: MonadIO m => (ManagedPtr VideoAffineTransformationMeta -> VideoAffineTransformationMeta) -> [AttrOp VideoAffineTransformationMeta tag] -> m VideoAffineTransformationMeta | |
newZeroVideoAffineTransformationMeta :: MonadIO m => m VideoAffineTransformationMeta Source #
Construct a VideoAffineTransformationMeta struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
applyMatrix
videoAffineTransformationMetaApplyMatrix Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => VideoAffineTransformationMeta |
|
| -> [Float] |
|
| -> m () |
Apply a transformation using the given 4x4 transformation matrix. Performs the multiplication, meta->matrix X matrix.
Since: 1.8
getInfo
videoAffineTransformationMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo Source #
No description available in the introspection data.
Properties
meta
parent Meta
getVideoAffineTransformationMetaMeta :: MonadIO m => VideoAffineTransformationMeta -> m Meta Source #
Get the value of the “meta” field.
When overloading is enabled, this is equivalent to
get videoAffineTransformationMeta #meta