GstGL.GLQuery

Fields

Name

Type

Access

Description

context

GstGL.GLContext

r

debug

GstGL.GLAsyncDebug

r

query_id

int

r

query_type

int

r

start_called

bool

r

supported

bool

r

Methods

class

local_gl_context (element, direction, context_ptr)

counter ()

end ()

free ()

init (context, query_type)

result ()

start ()

unset ()

Details

class GstGL.GLQuery

A GstGL.GLQuery represents and holds an OpenGL query object. Various types of queries can be run or counters retrieved.

New in version 1.10.

classmethod local_gl_context(element, direction, context_ptr)[source]
Parameters:
Returns:

whether context_ptr contains a GstGL.GLContext

context_ptr:

location containing the current and/or resulting GstGL.GLContext

Return type:

(bool, context_ptr: GstGL.GLContext)

Performs a Gst.QueryType.CONTEXT query of type “gst.gl.local_context” on all Gst.Pads in element of direction for the local OpenGL context used by GStreamer elements.

counter()[source]

Record the result of a counter

New in version 1.10.

end()[source]

End counting the query

New in version 1.10.

free()[source]

Frees a GstGL.GLQuery

New in version 1.10.

init(context, query_type)[source]
Parameters:

New in version 1.10.

result()[source]
Returns:

the result of the query

Return type:

int

New in version 1.10.

start()[source]

Start counting the query

New in version 1.10.

unset()[source]

Free any dynamically allocated resources

New in version 1.10.