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 uploading a buffer to an OpenGL texture
ID. The caller of videoGLTextureUploadMetaUpload
must
have OpenGL set up and call this from a thread where it is valid
to upload something to an OpenGL texture.
Synopsis
- newtype VideoGLTextureUploadMeta = VideoGLTextureUploadMeta (ManagedPtr VideoGLTextureUploadMeta)
- newZeroVideoGLTextureUploadMeta :: MonadIO m => m VideoGLTextureUploadMeta
- noVideoGLTextureUploadMeta :: Maybe VideoGLTextureUploadMeta
- videoGLTextureUploadMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo
- videoGLTextureUploadMetaUpload :: (HasCallStack, MonadIO m) => VideoGLTextureUploadMeta -> Word32 -> m Bool
- getVideoGLTextureUploadMetaMeta :: MonadIO m => VideoGLTextureUploadMeta -> m Meta
- getVideoGLTextureUploadMetaNTextures :: MonadIO m => VideoGLTextureUploadMeta -> m Word32
- setVideoGLTextureUploadMetaNTextures :: MonadIO m => VideoGLTextureUploadMeta -> Word32 -> m ()
- getVideoGLTextureUploadMetaTextureOrientation :: MonadIO m => VideoGLTextureUploadMeta -> m VideoGLTextureOrientation
- setVideoGLTextureUploadMetaTextureOrientation :: MonadIO m => VideoGLTextureUploadMeta -> VideoGLTextureOrientation -> m ()
Exported types
newtype VideoGLTextureUploadMeta Source #
Memory-managed wrapper type.
Instances
WrappedPtr VideoGLTextureUploadMeta Source # | |
tag ~ AttrSet => Constructible VideoGLTextureUploadMeta tag Source # | |
Defined in GI.GstVideo.Structs.VideoGLTextureUploadMeta new :: MonadIO m => (ManagedPtr VideoGLTextureUploadMeta -> VideoGLTextureUploadMeta) -> [AttrOp VideoGLTextureUploadMeta tag] -> m VideoGLTextureUploadMeta # |
newZeroVideoGLTextureUploadMeta :: MonadIO m => m VideoGLTextureUploadMeta Source #
Construct a VideoGLTextureUploadMeta
struct initialized to zero.
noVideoGLTextureUploadMeta :: Maybe VideoGLTextureUploadMeta Source #
A convenience alias for Nothing
:: Maybe
VideoGLTextureUploadMeta
.
Methods
getInfo
videoGLTextureUploadMetaGetInfo :: (HasCallStack, MonadIO m) => m MetaInfo Source #
No description available in the introspection data.
upload
videoGLTextureUploadMetaUpload Source #
:: (HasCallStack, MonadIO m) | |
=> VideoGLTextureUploadMeta |
|
-> Word32 |
|
-> m Bool |
Uploads the buffer which owns the meta to a specific texture ID.
Properties
meta
parent Meta
getVideoGLTextureUploadMetaMeta :: MonadIO m => VideoGLTextureUploadMeta -> m Meta Source #
Get the value of the “meta
” field.
When overloading is enabled, this is equivalent to
get
videoGLTextureUploadMeta #meta
nTextures
Number of textures that are generated
getVideoGLTextureUploadMetaNTextures :: MonadIO m => VideoGLTextureUploadMeta -> m Word32 Source #
Get the value of the “n_textures
” field.
When overloading is enabled, this is equivalent to
get
videoGLTextureUploadMeta #nTextures
setVideoGLTextureUploadMetaNTextures :: MonadIO m => VideoGLTextureUploadMeta -> Word32 -> m () Source #
Set the value of the “n_textures
” field.
When overloading is enabled, this is equivalent to
set
videoGLTextureUploadMeta [ #nTextures:=
value ]
textureOrientation
Orientation of the textures
getVideoGLTextureUploadMetaTextureOrientation :: MonadIO m => VideoGLTextureUploadMeta -> m VideoGLTextureOrientation Source #
Get the value of the “texture_orientation
” field.
When overloading is enabled, this is equivalent to
get
videoGLTextureUploadMeta #textureOrientation
setVideoGLTextureUploadMetaTextureOrientation :: MonadIO m => VideoGLTextureUploadMeta -> VideoGLTextureOrientation -> m () Source #
Set the value of the “texture_orientation
” field.
When overloading is enabled, this is equivalent to
set
videoGLTextureUploadMeta [ #textureOrientation:=
value ]