![]() |
![]() |
![]() |
GStreamer Bad Plugins 1.0 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
enum GstGLTextureTarget; #define GST_GL_TEXTURE_TARGET_2D_STR #define GST_GL_TEXTURE_TARGET_RECTANGLE_STR #define GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR #define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D #define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE #define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES guint gst_gl_format_type_n_bytes (guint format
,guint type
); guint gst_gl_texture_type_n_bytes (GstVideoGLTextureType tex_format
); guint gst_gl_format_from_gl_texture_type (GstVideoGLTextureType tex_format
); GstVideoGLTextureType gst_gl_texture_type_from_format (GstGLContext *context
,GstVideoFormat v_format
,guint plane
); guint gst_gl_sized_gl_format_from_gl_format_type (GstGLContext *context
,guint format
,guint type
); GstGLTextureTarget gst_gl_texture_target_from_string (const gchar *str
); const gchar * gst_gl_texture_target_to_string (GstGLTextureTarget target
); guint gst_gl_texture_target_to_gl (GstGLTextureTarget target
); GstGLTextureTarget gst_gl_texture_target_from_gl (guint target
); const gchar * gst_gl_texture_target_to_buffer_pool_option (GstGLTextureTarget target
);
typedef enum { GST_GL_TEXTURE_TARGET_NONE, GST_GL_TEXTURE_TARGET_2D, GST_GL_TEXTURE_TARGET_RECTANGLE, GST_GL_TEXTURE_TARGET_EXTERNAL_OES, } GstGLTextureTarget;
no texture target | |
2D texture target | |
rectangle texture target | |
external oes texture target |
Since 1.8
#define GST_GL_TEXTURE_TARGET_2D_STR "2D"
String used for GST_GL_TEXTURE_TARGET_2D
in things like caps values
#define GST_GL_TEXTURE_TARGET_RECTANGLE_STR "rectangle"
String used for GST_GL_TEXTURE_TARGET_RECTANGLE
in things like caps values
#define GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR "external-oes"
String used for GST_GL_TEXTURE_TARGET_EXTERNAL_OES
in things like caps values
#define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D "GstBufferPoolOptionGLTextureTarget2D"
String used for GST_GL_TEXTURE_TARGET_2D
as a GstBufferPool pool option
#define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE "GstBufferPoolOptionGLTextureTargetRectangle"
String used for GST_GL_TEXTURE_TARGET_RECTANGLE
as a GstBufferPool pool option
#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
guint gst_gl_format_type_n_bytes (guint format
,guint type
);
|
the OpenGL format, GL_RGBA , GL_LUMINANCE , etc |
|
the OpenGL type, GL_UNSIGNED_BYTE , GL_FLOAT , etc |
Returns : |
the number of bytes the specified format , type combination takes
per pixel |
guint gst_gl_texture_type_n_bytes (GstVideoGLTextureType tex_format
);
|
a GstVideoGLTextureType |
Returns : |
the number of bytes tex_format used per pixel |
guint gst_gl_format_from_gl_texture_type (GstVideoGLTextureType tex_format
);
|
a GstVideoGLTextureType |
Returns : |
the OpenGL format specified by tex_format
|
GstVideoGLTextureType gst_gl_texture_type_from_format (GstGLContext *context
,GstVideoFormat v_format
,guint plane
);
|
a GstGLContext |
|
a GstVideoFormat |
|
the plane number (starting from 0) |
Returns : |
the GstVideoGLTextureType for the specified format and plane
that can be allocated using context
|
guint gst_gl_sized_gl_format_from_gl_format_type (GstGLContext *context
,guint format
,guint type
);
|
a GstGLContext |
|
an OpenGL format, GL_RGBA , GL_LUMINANCE , etc |
|
an OpenGL type, GL_UNSIGNED_BYTE , GL_FLOAT , etc |
Returns : |
the sized internal format specified by format and type that can
be used in context
|
GstGLTextureTarget gst_gl_texture_target_from_string (const gchar *str
);
const gchar * gst_gl_texture_target_to_string (GstGLTextureTarget target
);
|
a string equivalant to one of the GST_GL_TEXTURE_TARGET_*_STR values |
Returns : |
the GstGLTextureTarget represented by str or
GST_GL_TEXTURE_TARGET_NONE
|
guint gst_gl_texture_target_to_gl (GstGLTextureTarget target
);
|
a GstGLTextureTarget |
Returns : |
the OpenGL value for binding the target with glBindTexture() and
similar functions or 0 |
GstGLTextureTarget gst_gl_texture_target_from_gl (guint target
);
|
an OpenGL texture binding target |
Returns : |
the GstGLTextureTarget that's equiavalant to target or
GST_GL_TEXTURE_TARGET_NONE
|
const gchar * gst_gl_texture_target_to_buffer_pool_option
(GstGLTextureTarget target
);
|
a GstGLTextureTarget |
Returns : |
a string representing the GstBufferPoolOption specified by target
|