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 |
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 Word64
- setMapInfoMaxsize :: MonadIO m => MapInfo -> Word64 -> 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 Word64
- setMapInfoSize :: MonadIO m => MapInfo -> Word64 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq MapInfo Source # | |
BoxedPtr MapInfo Source # | |
Defined in GI.Gst.Structs.MapInfo boxedPtrCopy :: MapInfo -> IO MapInfo boxedPtrFree :: MapInfo -> IO () | |
CallocPtr MapInfo Source # | |
Defined in GI.Gst.Structs.MapInfo boxedPtrCalloc :: IO (Ptr MapInfo) | |
ManagedPtrNewtype MapInfo Source # | |
Defined in GI.Gst.Structs.MapInfo 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
set
mapInfo [ #flags:=
value ]
maxsize
the maximum bytes in data
getMapInfoMaxsize :: MonadIO m => MapInfo -> m Word64 Source #
Get the value of the “maxsize
” field.
When overloading is enabled, this is equivalent to
get
mapInfo #maxsize
setMapInfoMaxsize :: MonadIO m => MapInfo -> Word64 -> m () Source #
Set the value of the “maxsize
” field.
When overloading is enabled, this is equivalent to
set
mapInfo [ #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
set
mapInfo [ #memory:=
value ]
size
the valid size in data
getMapInfoSize :: MonadIO m => MapInfo -> m Word64 Source #
Get the value of the “size
” field.
When overloading is enabled, this is equivalent to
get
mapInfo #size
setMapInfoSize :: MonadIO m => MapInfo -> Word64 -> m () Source #
Set the value of the “size
” field.
When overloading is enabled, this is equivalent to
set
mapInfo [ #size:=
value ]