Module gstreamer_gl::functions
source · Functions§
name
element
- Helper function for implementing
GstElementClass.set_context()
in OpenGL capable elements. - Given
swizzle
, produceinversion
such that: - Calculates the swizzle indices for
video_format
andgl_format
in order to access a texture such that accessing a texel from a texture through the swizzle index produces values in the order (R, G, B, A) or (Y, U, V, A). - Note: this function first searches the first 1 kilobytes for a
version
preprocessor directive and then executesGLSLVersion::profile_from_string()
.