Top | ![]() |
![]() |
![]() |
![]() |
OpenGL Miscellaneous UtilitiesOpenGL Miscellaneous Utilities — some miscellaneous utilities for OpenGL |
gboolean gst_gl_handle_set_context (GstElement *element
,GstContext *context
,GstGLDisplay **display
,GstGLContext **other_context
);
gboolean gst_gl_handle_context_query (GstElement *element
,GstQuery *query
,GstGLDisplay **display
,GstGLContext **other_context
);
gboolean
gst_gl_context_check_framebuffer_status
(GstGLContext *context
);
Since: 1.10
GstCaps * gst_gl_caps_replace_all_caps_features (const GstCaps *caps
,const gchar *feature_name
);
gboolean gst_gl_ensure_element_data (gpointer element
,GstGLDisplay **display_ptr
,GstGLContext **other_context_ptr
);
gsize gst_gl_get_plane_data_size (GstVideoInfo *info
,GstVideoAlignment *align
,guint plane
);
gsize gst_gl_get_plane_start (GstVideoInfo *info
,GstVideoAlignment *valign
,guint plane
);
gboolean gst_gl_run_query (GstElement *element
,GstQuery *query
,GstPadDirection direction
);
GstGLTextureTarget
gst_gl_value_get_texture_target_mask (const GValue *value
);
See gst_gl_value_set_texture_target_from_mask()
for what entails a mask
gboolean gst_gl_value_set_texture_target (GValue *value
,GstGLTextureTarget target
);
gboolean gst_gl_value_set_texture_target_from_mask (GValue *value
,GstGLTextureTarget target_mask
);
A mask is a bitwise OR of (1 << target) where target is a valid GstGLTextureTarget
void gst_gl_get_affine_transformation_meta_as_ndc (GstVideoAffineTransformationMeta *meta
,gfloat *matrix
);
void gst_gl_multiply_matrix4 (const gfloat *a
,const gfloat *b
,gfloat *result
);
gboolean gst_gl_context_gen_shader (GstGLContext *context
,const gchar *shader_vertex_source
,const gchar *shader_fragment_source
,GstGLShader **shader
);
void gst_gl_context_del_shader (GstGLContext *context
,GstGLShader *shader
);