OpenGL Formats
OpenGL Formats — utilities for dealing with OpenGL formats
|
|
Description
Some useful utilities for converting between various formats and OpenGL
formats.
Functions
gst_gl_format_type_n_bytes ()
guint
gst_gl_format_type_n_bytes (guint format,
guint type);
Returns
the number of bytes the specified format
, type
combination takes
per pixel
gst_gl_texture_type_n_bytes ()
guint
gst_gl_texture_type_n_bytes (GstVideoGLTextureType tex_format);
Returns
the number of bytes tex_format
used per pixel
gst_gl_format_from_gl_texture_type ()
guint
gst_gl_format_from_gl_texture_type (GstVideoGLTextureType tex_format);
Returns
the OpenGL format specified by tex_format
gst_gl_texture_type_from_format ()
GstVideoGLTextureType
gst_gl_texture_type_from_format (GstGLContext *context,
GstVideoFormat v_format,
guint plane);
Returns
the GstVideoGLTextureType for the specified format
and plane
that can be allocated using context
gst_gl_sized_gl_format_from_gl_format_type ()
guint
gst_gl_sized_gl_format_from_gl_format_type
(GstGLContext *context,
guint format,
guint type);
Returns
the sized internal format specified by format
and type
that can
be used in context
gst_gl_texture_target_to_string ()
const gchar *
gst_gl_texture_target_to_string (GstGLTextureTarget target);
Returns
the stringified version of target
or NULL
gst_gl_texture_target_to_gl ()
guint
gst_gl_texture_target_to_gl (GstGLTextureTarget target);
Returns
the OpenGL value for binding the target
with glBindTexture() and
similar functions or 0
gst_gl_texture_target_to_buffer_pool_option ()
const gchar *
gst_gl_texture_target_to_buffer_pool_option
(GstGLTextureTarget target);
Returns
a string representing the GstBufferPoolOption
specified by target
Types and Values
enum GstGLTextureTarget
Since 1.8
GST_GL_TEXTURE_TARGET_2D_STR
#define GST_GL_TEXTURE_TARGET_2D_STR "2D"
String used for GST_GL_TEXTURE_TARGET_2D in things like caps values
GST_GL_TEXTURE_TARGET_RECTANGLE_STR
#define GST_GL_TEXTURE_TARGET_RECTANGLE_STR "rectangle"
String used for GST_GL_TEXTURE_TARGET_RECTANGLE in things like caps values
GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR
#define GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR "external-oes"
String used for GST_GL_TEXTURE_TARGET_EXTERNAL_OES in things like caps values
GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D
#define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D "GstBufferPoolOptionGLTextureTarget2D"
String used for GST_GL_TEXTURE_TARGET_2D as a GstBufferPool pool option
GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE
#define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE "GstBufferPoolOptionGLTextureTargetRectangle"
String used for GST_GL_TEXTURE_TARGET_RECTANGLE as a GstBufferPool pool option
GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES
#define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES "GstBufferPoolOptionGLTextureTargetExternalOES"
String used for GST_GL_TEXTURE_TARGET_ESTERNAL_OES as a GstBufferPool pool option