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 |
Information describing a DMABuf image properties. It wraps VideoInfo
and
adds DRM information such as drm-fourcc and drm-modifier, required for
negotiation and mapping.
Since: 1.24
Synopsis
- newtype VideoInfoDmaDrm = VideoInfoDmaDrm (ManagedPtr VideoInfoDmaDrm)
- newZeroVideoInfoDmaDrm :: MonadIO m => m VideoInfoDmaDrm
- videoInfoDmaDrmFree :: (HasCallStack, MonadIO m) => VideoInfoDmaDrm -> m ()
- videoInfoDmaDrmFromCaps :: (HasCallStack, MonadIO m) => Caps -> m (Bool, VideoInfoDmaDrm)
- videoInfoDmaDrmFromVideoInfo :: (HasCallStack, MonadIO m) => VideoInfo -> Word64 -> m (Bool, VideoInfoDmaDrm)
- videoInfoDmaDrmInit :: (HasCallStack, MonadIO m) => m VideoInfoDmaDrm
- videoInfoDmaDrmNew :: (HasCallStack, MonadIO m) => m VideoInfoDmaDrm
- videoInfoDmaDrmNewFromCaps :: (HasCallStack, MonadIO m) => Caps -> m (Maybe VideoInfoDmaDrm)
- videoInfoDmaDrmToCaps :: (HasCallStack, MonadIO m) => VideoInfoDmaDrm -> m (Maybe Caps)
- videoInfoDmaDrmToVideoInfo :: (HasCallStack, MonadIO m) => VideoInfoDmaDrm -> m (Bool, VideoInfo)
- getVideoInfoDmaDrmDrmFourcc :: MonadIO m => VideoInfoDmaDrm -> m Word32
- setVideoInfoDmaDrmDrmFourcc :: MonadIO m => VideoInfoDmaDrm -> Word32 -> m ()
- getVideoInfoDmaDrmDrmModifier :: MonadIO m => VideoInfoDmaDrm -> m Word64
- setVideoInfoDmaDrmDrmModifier :: MonadIO m => VideoInfoDmaDrm -> Word64 -> m ()
- getVideoInfoDmaDrmVinfo :: MonadIO m => VideoInfoDmaDrm -> m VideoInfo
Exported types
newtype VideoInfoDmaDrm Source #
Memory-managed wrapper type.
VideoInfoDmaDrm (ManagedPtr VideoInfoDmaDrm) |
Instances
newZeroVideoInfoDmaDrm :: MonadIO m => m VideoInfoDmaDrm Source #
Construct a VideoInfoDmaDrm
struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
free
:: (HasCallStack, MonadIO m) | |
=> VideoInfoDmaDrm |
|
-> m () |
Free a VideoInfoDmaDrm
structure previously allocated with
videoInfoDmaDrmNew
Since: 1.24
fromCaps
videoInfoDmaDrmFromCaps Source #
:: (HasCallStack, MonadIO m) | |
=> Caps |
|
-> m (Bool, VideoInfoDmaDrm) | Returns: TRUE if |
Parse caps
and update info
. Please note that the caps
should be
a dma drm caps. The videoIsDmaDrmCaps
can be used to verify
it before calling this function.
Since: 1.24
fromVideoInfo
videoInfoDmaDrmFromVideoInfo Source #
:: (HasCallStack, MonadIO m) | |
=> VideoInfo |
|
-> Word64 |
|
-> m (Bool, VideoInfoDmaDrm) | Returns: |
Fills drmInfo
if info
's format has a valid drm format and modifier
is also
valid
Since: 1.24
init
videoInfoDmaDrmInit :: (HasCallStack, MonadIO m) => m VideoInfoDmaDrm Source #
Initialize drmInfo
with default values.
Since: 1.24
new
:: (HasCallStack, MonadIO m) | |
=> m VideoInfoDmaDrm | Returns: a new |
Allocate a new VideoInfoDmaDrm
that is also initialized with
videoInfoDmaDrmInit
.
Since: 1.24
newFromCaps
videoInfoDmaDrmNewFromCaps Source #
:: (HasCallStack, MonadIO m) | |
=> Caps |
|
-> m (Maybe VideoInfoDmaDrm) | Returns: A |
Parse caps
to generate a VideoInfoDmaDrm
. Please note that the
caps
should be a dma drm caps. The videoIsDmaDrmCaps
can
be used to verify it before calling this function.
Since: 1.24
toCaps
videoInfoDmaDrmToCaps Source #
:: (HasCallStack, MonadIO m) | |
=> VideoInfoDmaDrm |
|
-> m (Maybe Caps) | Returns: a new |
Convert the values of drmInfo
into a Caps
. Please note that the
caps
returned will be a dma drm caps which sets format field to DMA_DRM,
and contains a new drm-format field. The value of drm-format field is
composed of a drm fourcc and a modifier, such as NV12:0x0100000000000002.
Since: 1.24
toVideoInfo
videoInfoDmaDrmToVideoInfo Source #
:: (HasCallStack, MonadIO m) | |
=> VideoInfoDmaDrm |
|
-> m (Bool, VideoInfo) | Returns: |
Convert the VideoInfoDmaDrm
into a traditional VideoInfo
with
recognized video format. For DMA kind memory, the non linear DMA format
should be recognized as GST_VIDEO_FORMAT_DMA_DRM
. This helper function
sets info
's video format into the default value according to drmInfo
's
drm_fourcc field.
Since: 1.24
Properties
drmFourcc
the fourcc defined by drm
getVideoInfoDmaDrmDrmFourcc :: MonadIO m => VideoInfoDmaDrm -> m Word32 Source #
Get the value of the “drm_fourcc
” field.
When overloading is enabled, this is equivalent to
get
videoInfoDmaDrm #drmFourcc
setVideoInfoDmaDrmDrmFourcc :: MonadIO m => VideoInfoDmaDrm -> Word32 -> m () Source #
Set the value of the “drm_fourcc
” field.
When overloading is enabled, this is equivalent to
set
videoInfoDmaDrm [ #drmFourcc:=
value ]
drmModifier
the drm modifier
getVideoInfoDmaDrmDrmModifier :: MonadIO m => VideoInfoDmaDrm -> m Word64 Source #
Get the value of the “drm_modifier
” field.
When overloading is enabled, this is equivalent to
get
videoInfoDmaDrm #drmModifier
setVideoInfoDmaDrmDrmModifier :: MonadIO m => VideoInfoDmaDrm -> Word64 -> m () Source #
Set the value of the “drm_modifier
” field.
When overloading is enabled, this is equivalent to
set
videoInfoDmaDrm [ #drmModifier:=
value ]
vinfo
the associated VideoInfo
getVideoInfoDmaDrmVinfo :: MonadIO m => VideoInfoDmaDrm -> m VideoInfo Source #
Get the value of the “vinfo
” field.
When overloading is enabled, this is equivalent to
get
videoInfoDmaDrm #vinfo