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.AllocationParams

Contents

Description

Parameters to control the allocation of memory

Synopsis

Exported types

newZeroAllocationParams :: MonadIO m => m AllocationParams Source #

Construct a AllocationParams struct initialized to zero.

Methods

copy

allocationParamsCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AllocationParams

params: a AllocationParams

-> m (Maybe AllocationParams)

Returns: a new #AllocationParams, free with allocationParamsFree.

Create a copy of params.

Free-function: gst_allocation_params_free

free

allocationParamsFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AllocationParams

params: a AllocationParams

-> m () 

Free params

init

allocationParamsInit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AllocationParams

params: a AllocationParams

-> m () 

Initialize params to its default values

Properties

align

the desired alignment of the memory

getAllocationParamsAlign :: MonadIO m => AllocationParams -> m Word64 Source #

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

get allocationParams #align

setAllocationParamsAlign :: MonadIO m => AllocationParams -> Word64 -> m () Source #

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

set allocationParams [ #align := value ]

flags

flags to control allocation

getAllocationParamsFlags :: MonadIO m => AllocationParams -> m [MemoryFlags] Source #

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

get allocationParams #flags

setAllocationParamsFlags :: MonadIO m => AllocationParams -> [MemoryFlags] -> m () Source #

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

set allocationParams [ #flags := value ]

padding

the desired padding

getAllocationParamsPadding :: MonadIO m => AllocationParams -> m Word64 Source #

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

get allocationParams #padding

setAllocationParamsPadding :: MonadIO m => AllocationParams -> Word64 -> m () Source #

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

set allocationParams [ #padding := value ]

prefix

the desired prefix

getAllocationParamsPrefix :: MonadIO m => AllocationParams -> m Word64 Source #

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

get allocationParams #prefix

setAllocationParamsPrefix :: MonadIO m => AllocationParams -> Word64 -> m () Source #

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

set allocationParams [ #prefix := value ]