GstGL.GLBufferPool

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.BufferPool Gst.BufferPool GstGL.GLBufferPool GstGL.GLBufferPool Gst.BufferPool->GstGL.GLBufferPool Gst.Object->Gst.BufferPool

Subclasses:

None

Methods

Inherited:

Gst.BufferPool (19), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (context)

get_gl_allocation_params ()

Virtual Methods

Inherited:

Gst.BufferPool (11), Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

bufferpool

Gst.BufferPool

r

context

GstGL.GLContext

r

Class Details

class GstGL.GLBufferPool(**kwargs)
Bases:

Gst.BufferPool

Abstract:

No

Structure:

GstGL.GLBufferPoolClass

a GstGL.GLBufferPool is an object that allocates buffers with GstGL.GLBaseMemory

A GstGL.GLBufferPool is created with GstGL.GLBufferPool.new()

GstGL.GLBufferPool implements the VideoMeta buffer pool option GstVideo.BUFFER_POOL_OPTION_VIDEO_META, the VideoAligment buffer pool option GstVideo.BUFFER_POOL_OPTION_VIDEO_ALIGNMENT as well as the OpenGL specific GstGL.BUFFER_POOL_OPTION_GL_SYNC_META buffer pool option.

classmethod new(context)[source]
Parameters:

context (GstGL.GLContext) – the GstGL.GLContext to use

Returns:

a Gst.BufferPool that allocates buffers with GstGL.GLMemory

Return type:

Gst.BufferPool

get_gl_allocation_params()[source]
Returns:

a copy of the GstGL.GLAllocationParams being used by the self

Return type:

GstGL.GLAllocationParams or None

The returned GstGL.GLAllocationParams will by None before the first successful call to Gst.BufferPool.set_config(). Subsequent successful calls to Gst.BufferPool.set_config() will cause this function to return a new GstGL.GLAllocationParams which may or may not contain the same information.

New in version 1.20.