Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
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
- noVideoAffineTransformationMeta :: Maybe 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.
Instances
WrappedPtr VideoAffineTransformationMeta Source # | |
tag ~ AttrSet => Constructible VideoAffineTransformationMeta tag Source # | |
Defined in GI.GstVideo.Structs.VideoAffineTransformationMeta new :: MonadIO m => (ManagedPtr VideoAffineTransformationMeta -> VideoAffineTransformationMeta) -> [AttrOp VideoAffineTransformationMeta tag] -> m VideoAffineTransformationMeta |
newZeroVideoAffineTransformationMeta :: MonadIO m => m VideoAffineTransformationMeta Source #
Construct a VideoAffineTransformationMeta
struct initialized to zero.
noVideoAffineTransformationMeta :: Maybe VideoAffineTransformationMeta Source #
A convenience alias for Nothing
:: Maybe
VideoAffineTransformationMeta
.
Methods
applyMatrix
videoAffineTransformationMetaApplyMatrix Source #
:: (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