gi-gstvideo-1.0.29: GStreamerVideo bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GstVideo.Structs.VideoInfoDmaDrm

Description

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

Exported types

newtype VideoInfoDmaDrm Source #

Memory-managed wrapper type.

Constructors

VideoInfoDmaDrm (ManagedPtr VideoInfoDmaDrm) 

Instances

Instances details
Eq VideoInfoDmaDrm Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoInfoDmaDrm

GBoxed VideoInfoDmaDrm Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoInfoDmaDrm

ManagedPtrNewtype VideoInfoDmaDrm Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoInfoDmaDrm

TypedObject VideoInfoDmaDrm Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoInfoDmaDrm

Methods

glibType :: IO GType

HasParentTypes VideoInfoDmaDrm Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoInfoDmaDrm

tag ~ 'AttrSet => Constructible VideoInfoDmaDrm tag Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoInfoDmaDrm

Methods

new :: MonadIO m => (ManagedPtr VideoInfoDmaDrm -> VideoInfoDmaDrm) -> [AttrOp VideoInfoDmaDrm tag] -> m VideoInfoDmaDrm

IsGValue (Maybe VideoInfoDmaDrm) Source #

Convert VideoInfoDmaDrm to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.GstVideo.Structs.VideoInfoDmaDrm

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe VideoInfoDmaDrm -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe VideoInfoDmaDrm)

type ParentTypes VideoInfoDmaDrm Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoInfoDmaDrm

type ParentTypes VideoInfoDmaDrm = '[] :: [Type]

newZeroVideoInfoDmaDrm :: MonadIO m => m VideoInfoDmaDrm Source #

Construct a VideoInfoDmaDrm struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

free, toCaps, toVideoInfo.

Getters

None.

Setters

None.

free

videoInfoDmaDrmFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfoDmaDrm

drmInfo: a VideoInfoDmaDrm

-> m () 

Free a VideoInfoDmaDrm structure previously allocated with videoInfoDmaDrmNew

Since: 1.24

fromCaps

videoInfoDmaDrmFromCaps Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Caps

caps: a Caps

-> m (Bool, VideoInfoDmaDrm)

Returns: TRUE if caps could be parsed

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 #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfo

info: a VideoInfo

-> Word64

modifier: the associated modifier value.

-> m (Bool, VideoInfoDmaDrm)

Returns: True if drmInfo is filled correctly.

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

videoInfoDmaDrmNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m VideoInfoDmaDrm

Returns: a new VideoInfoDmaDrm. Free it with videoInfoDmaDrmFree.

Allocate a new VideoInfoDmaDrm that is also initialized with videoInfoDmaDrmInit.

Since: 1.24

newFromCaps

videoInfoDmaDrmNewFromCaps Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Caps

caps: a Caps

-> m (Maybe VideoInfoDmaDrm)

Returns: A VideoInfoDmaDrm, or Nothing if caps couldn't be parsed.

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 #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfoDmaDrm

drmInfo: a VideoInfoDmaDrm

-> m (Maybe Caps)

Returns: a new Caps containing the info in drmInfo.

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 #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoInfoDmaDrm

drmInfo: a VideoInfoDmaDrm

-> m (Bool, VideoInfo)

Returns: True if info is converted correctly.

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