GLFormat

Namespace for GLFormat enum

Members

Static functions

fromVideoInfo
gstgl.types.GLFormat fromVideoInfo(gstgl.glcontext.GLContext context, gstvideo.video_info.VideoInfo vinfo, uint plane)
isSupported
bool isSupported(gstgl.glcontext.GLContext context, gstgl.types.GLFormat format)
nComponents
uint nComponents(gstgl.types.GLFormat glFormat)
typeFromSizedGlFormat
void typeFromSizedGlFormat(gstgl.types.GLFormat format, gstgl.types.GLFormat unsizedFormat, uint glType)

Get the unsized format and type from format for usage in glReadPixels, glTex{Sub}Image*, glTexImage* and similar functions.

typeNBytes
uint typeNBytes(uint format, uint type)