| 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.Gst.Structs.MapInfo
Description
A structure containing the result of a map operation such as
memoryMap. It contains the data and size.
MapInfo cannot be used with g_auto() because it is ambiguous whether it
needs to be unmapped using bufferUnmap or memoryUnmap. Instead,
GstBufferMapInfo and GstMemoryMapInfo can be used in that case.
Synopsis
- newtype MapInfo = MapInfo (ManagedPtr MapInfo)
- newZeroMapInfo :: MonadIO m => m MapInfo
- getMapInfoFlags :: MonadIO m => MapInfo -> m [MapFlags]
- setMapInfoFlags :: MonadIO m => MapInfo -> [MapFlags] -> m ()
- getMapInfoMaxsize :: MonadIO m => MapInfo -> m CSize
- setMapInfoMaxsize :: MonadIO m => MapInfo -> CSize -> m ()
- clearMapInfoMemory :: MonadIO m => MapInfo -> m ()
- getMapInfoMemory :: MonadIO m => MapInfo -> m (Maybe Memory)
- setMapInfoMemory :: MonadIO m => MapInfo -> Ptr Memory -> m ()
- getMapInfoSize :: MonadIO m => MapInfo -> m CSize
- setMapInfoSize :: MonadIO m => MapInfo -> CSize -> m ()
Exported types
Memory-managed wrapper type.
Instances
| Eq MapInfo Source # | |
| BoxedPtr MapInfo Source # | |
Defined in GI.Gst.Structs.MapInfo | |
| CallocPtr MapInfo Source # | |
Defined in GI.Gst.Structs.MapInfo Methods boxedPtrCalloc :: IO (Ptr MapInfo) | |
| ManagedPtrNewtype MapInfo Source # | |
Defined in GI.Gst.Structs.MapInfo Methods toManagedPtr :: MapInfo -> ManagedPtr MapInfo | |
| tag ~ 'AttrSet => Constructible MapInfo tag Source # | |
Methods
Properties
flags
flags used when mapping the memory
getMapInfoFlags :: MonadIO m => MapInfo -> m [MapFlags] Source #
Get the value of the “flags” field.
When overloading is enabled, this is equivalent to
get mapInfo #flags
setMapInfoFlags :: MonadIO m => MapInfo -> [MapFlags] -> m () Source #
Set the value of the “flags” field.
When overloading is enabled, this is equivalent to
setmapInfo [ #flags:=value ]
maxsize
the maximum bytes in data
getMapInfoMaxsize :: MonadIO m => MapInfo -> m CSize Source #
Get the value of the “maxsize” field.
When overloading is enabled, this is equivalent to
get mapInfo #maxsize
setMapInfoMaxsize :: MonadIO m => MapInfo -> CSize -> m () Source #
Set the value of the “maxsize” field.
When overloading is enabled, this is equivalent to
setmapInfo [ #maxsize:=value ]
memory
a pointer to the mapped memory
clearMapInfoMemory :: MonadIO m => MapInfo -> m () Source #
Set the value of the “memory” field to Nothing.
When overloading is enabled, this is equivalent to
clear #memory
getMapInfoMemory :: MonadIO m => MapInfo -> m (Maybe Memory) Source #
Get the value of the “memory” field.
When overloading is enabled, this is equivalent to
get mapInfo #memory
setMapInfoMemory :: MonadIO m => MapInfo -> Ptr Memory -> m () Source #
Set the value of the “memory” field.
When overloading is enabled, this is equivalent to
setmapInfo [ #memory:=value ]
size
the valid size in data
getMapInfoSize :: MonadIO m => MapInfo -> m CSize Source #
Get the value of the “size” field.
When overloading is enabled, this is equivalent to
get mapInfo #size
setMapInfoSize :: MonadIO m => MapInfo -> CSize -> m () Source #
Set the value of the “size” field.
When overloading is enabled, this is equivalent to
setmapInfo [ #size:=value ]