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

GI.GstVideo.Structs.VideoCodecState

Description

Structure representing the state of an incoming or outgoing video stream for encoders and decoders.

Decoders and encoders will receive such a state through their respective setFormat vmethods.

Decoders and encoders can set the downstream state, by using the gstVideoDecoderSetOutputState() or gstVideoEncoderSetOutputState() methods.

Synopsis

Exported types

newtype VideoCodecState Source #

Memory-managed wrapper type.

Constructors

VideoCodecState (ManagedPtr VideoCodecState) 

Instances

Instances details
Eq VideoCodecState Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoCodecState

GBoxed VideoCodecState Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoCodecState

ManagedPtrNewtype VideoCodecState Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoCodecState

TypedObject VideoCodecState Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoCodecState

Methods

glibType :: IO GType

HasParentTypes VideoCodecState Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoCodecState

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

Defined in GI.GstVideo.Structs.VideoCodecState

Methods

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

IsGValue (Maybe VideoCodecState) Source #

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

Instance details

Defined in GI.GstVideo.Structs.VideoCodecState

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes VideoCodecState Source # 
Instance details

Defined in GI.GstVideo.Structs.VideoCodecState

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

newZeroVideoCodecState :: MonadIO m => m VideoCodecState Source #

Construct a VideoCodecState struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

None.

Setters

None.

ref

videoCodecStateRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoCodecState

state: a VideoCodecState

-> m VideoCodecState

Returns: buf

Increases the refcount of the given state by one.

unref

videoCodecStateUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoCodecState

state: a VideoCodecState

-> m () 

Decreases the refcount of the state. If the refcount reaches 0, the state will be freed.

Properties

allocationCaps

The Caps for allocation query and pool negotiation. Since: 1.10

clearVideoCodecStateAllocationCaps :: MonadIO m => VideoCodecState -> m () Source #

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

clear #allocationCaps

getVideoCodecStateAllocationCaps :: MonadIO m => VideoCodecState -> m (Maybe Caps) Source #

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

get videoCodecState #allocationCaps

setVideoCodecStateAllocationCaps :: MonadIO m => VideoCodecState -> Ptr Caps -> m () Source #

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

set videoCodecState [ #allocationCaps := value ]

caps

The Caps used in the caps negotiation of the pad.

clearVideoCodecStateCaps :: MonadIO m => VideoCodecState -> m () Source #

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

clear #caps

getVideoCodecStateCaps :: MonadIO m => VideoCodecState -> m (Maybe Caps) Source #

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

get videoCodecState #caps

setVideoCodecStateCaps :: MonadIO m => VideoCodecState -> Ptr Caps -> m () Source #

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

set videoCodecState [ #caps := value ]

codecData

a Buffer corresponding to the 'codec_data' field of a stream, or NULL.

clearVideoCodecStateCodecData :: MonadIO m => VideoCodecState -> m () Source #

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

clear #codecData

getVideoCodecStateCodecData :: MonadIO m => VideoCodecState -> m (Maybe Buffer) Source #

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

get videoCodecState #codecData

setVideoCodecStateCodecData :: MonadIO m => VideoCodecState -> Ptr Buffer -> m () Source #

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

set videoCodecState [ #codecData := value ]

info

The VideoInfo describing the stream

getVideoCodecStateInfo :: MonadIO m => VideoCodecState -> m VideoInfo Source #

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

get videoCodecState #info