GLMemoryPBO

#GstGLMemoryPBO is created or wrapped through gstgl.glbase_memory.GLBaseMemory.alloc with #GstGLVideoAllocationParams.

Data is uploaded or downloaded from the GPU as is necessary.

Constructors

this
this()

Create a glmemory_pbo.GLMemoryPBO boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
copyIntoTexture
bool copyIntoTexture(uint texId, gstgl.types.GLTextureTarget target, gstgl.types.GLFormat texFormat, int width, int height, int stride, bool respecify)

Copies gl_mem into the texture specified by tex_id. The format of tex_id is specified by tex_format, width and height.

downloadTransfer
void downloadTransfer()

Transfer the texture data from the texture into the PBO if necessary.

self
GLMemoryPBO self()

Returns this, for use in with statements.

uploadTransfer
void uploadTransfer()

Transfer the texture data from the PBO into the texture if necessary.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
initOnce
void initOnce()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.