Table of Contents

Class BufferPool

Namespace
Gst
Assembly
Gst-1.0.dll
public class BufferPool : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
BufferPool
Implements
Derived
Inherited Members

Constructors

BufferPool(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public BufferPool(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

BufferPool(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected BufferPool(CreationData data)

Parameters

data CreationData

BufferPool(BufferPoolHandle)

protected BufferPool(BufferPoolHandle handle)

Parameters

handle BufferPoolHandle

Methods

ConfigAddOption(Structure, string)

public static void ConfigAddOption(Structure config, string option)

Parameters

config Structure
option string

ConfigGetOption(Structure, uint)

public static string? ConfigGetOption(Structure config, uint index)

Parameters

config Structure
index uint

Returns

string

ConfigHasOption(Structure, string)

public static bool ConfigHasOption(Structure config, string option)

Parameters

config Structure
option string

Returns

bool

ConfigNOptions(Structure)

public static uint ConfigNOptions(Structure config)

Parameters

config Structure

Returns

uint

ConfigSetAllocator(Structure, Allocator?, AllocationParams?)

public static void ConfigSetAllocator(Structure config, Allocator? allocator, AllocationParams? @params)

Parameters

config Structure
allocator Allocator
params AllocationParams

ConfigSetParams(Structure, Caps?, uint, uint, uint)

public static void ConfigSetParams(Structure config, Caps? caps, uint size, uint minBuffers, uint maxBuffers)

Parameters

config Structure
caps Caps
size uint
minBuffers uint
maxBuffers uint

ConfigValidateParams(Structure, Caps?, uint, uint, uint)

[Version("1.4")]
public static bool ConfigValidateParams(Structure config, Caps? caps, uint size, uint minBuffers, uint maxBuffers)

Parameters

config Structure
caps Caps
size uint
minBuffers uint
maxBuffers uint

Returns

bool

GetConfig()

public Structure GetConfig()

Returns

Structure

GetGType()

public static Type GetGType()

Returns

Type

GetOptions()

public string[] GetOptions()

Returns

string[]

HasOption(string)

public bool HasOption(string option)

Parameters

option string

Returns

bool

IsActive()

public bool IsActive()

Returns

bool

New()

public static BufferPool New()

Returns

BufferPool

NewFromPointer(nint, bool)

Creates a new managed BufferPool instance for a given pointer.

public static BufferPool NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

BufferPool

NewWithProperties(ConstructArgument[])

Creates a new BufferPool and sets the properties specified by the construct arguments.

public static BufferPool NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

BufferPool

ReleaseBuffer(Buffer)

public void ReleaseBuffer(Buffer buffer)

Parameters

buffer Buffer

SetActive(bool)

public bool SetActive(bool active)

Parameters

active bool

Returns

bool

SetConfig(Structure)

public bool SetConfig(Structure config)

Parameters

config Structure

Returns

bool

SetFlushing(bool)

[Version("1.4")]
public void SetFlushing(bool flushing)

Parameters

flushing bool