gi-gst-1.0.19: 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.ParentBufferMeta

Contents

Description

The ParentBufferMeta is a Meta which can be attached to a Buffer to hold a reference to another buffer that is only released when the child Buffer is released.

Typically, ParentBufferMeta is used when the child buffer is directly using the Memory of the parent buffer, and wants to prevent the parent buffer from being returned to a buffer pool until the Memory is available for re-use.

Since: 1.6

Synopsis

Exported types

newZeroParentBufferMeta :: MonadIO m => m ParentBufferMeta Source #

Construct a ParentBufferMeta struct initialized to zero.

Methods

getInfo

parentBufferMetaGetInfo Source #

Arguments

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

Returns: The MetaInfo

Get the global MetaInfo describing the ParentBufferMeta meta.

Since: 1.6

Properties

buffer

the Buffer on which a reference is being held.

clearParentBufferMetaBuffer :: MonadIO m => ParentBufferMeta -> m () Source #

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

clear #buffer

getParentBufferMetaBuffer :: MonadIO m => ParentBufferMeta -> m (Maybe Buffer) Source #

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

get parentBufferMeta #buffer

setParentBufferMetaBuffer :: MonadIO m => ParentBufferMeta -> Ptr Buffer -> m () Source #

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

set parentBufferMeta [ #buffer := value ]

parent

the parent Meta structure

getParentBufferMetaParent :: MonadIO m => ParentBufferMeta -> m Meta Source #

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

get parentBufferMeta #parent