gi-gst-1.0.18: GStreamer bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gst.Structs.StaticCaps

Contents

Description

Datastructure to initialize Caps from a string description usually used in conjunction with GST_STATIC_CAPS() and staticCapsGet to instantiate a Caps.

Synopsis

Exported types

newZeroStaticCaps :: MonadIO m => m StaticCaps Source #

Construct a StaticCaps struct initialized to zero.

Methods

cleanup

staticCapsCleanup Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> StaticCaps

staticCaps: the StaticCaps to clean

-> m () 

Clean up the cached caps contained in staticCaps.

get

staticCapsGet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> StaticCaps

staticCaps: the StaticCaps to convert

-> m (Maybe Caps)

Returns: a pointer to the Caps. Unref after usage. Since the core holds an additional ref to the returned caps, use gst_caps_make_writable() on the returned caps to modify it.

Converts a StaticCaps to a Caps.

Properties

caps

the cached Caps

clearStaticCapsCaps :: MonadIO m => StaticCaps -> m () Source #

Set the value of the “caps” field to Nothing. When overloading is enabled, this is equivalent to

clear #caps

getStaticCapsCaps :: MonadIO m => StaticCaps -> m (Maybe Caps) Source #

Get the value of the “caps” field. When overloading is enabled, this is equivalent to

get staticCaps #caps

setStaticCapsCaps :: MonadIO m => StaticCaps -> Ptr Caps -> m () Source #

Set the value of the “caps” field. When overloading is enabled, this is equivalent to

set staticCaps [ #caps := value ]

string

a string describing a caps

clearStaticCapsString :: MonadIO m => StaticCaps -> m () Source #

Set the value of the “string” field to Nothing. When overloading is enabled, this is equivalent to

clear #string

getStaticCapsString :: MonadIO m => StaticCaps -> m (Maybe Text) Source #

Get the value of the “string” field. When overloading is enabled, this is equivalent to

get staticCaps #string

setStaticCapsString :: MonadIO m => StaticCaps -> CString -> m () Source #

Set the value of the “string” field. When overloading is enabled, this is equivalent to

set staticCaps [ #string := value ]