GstGLSL

GstGLSL — helpers for dealing with OpenGL shaders

Synopsis

#define             GST_GLSL_ERROR
GQuark              gst_glsl_error_quark                (void);
enum                GstGLSLError;
enum                GstGLSLProfile;
enum                GstGLSLVersion;
GstGLSLProfile      gst_glsl_profile_from_string        (const gchar *string);
const gchar *       gst_glsl_profile_to_string          (GstGLSLProfile profile);
GstGLSLVersion      gst_glsl_version_from_string        (const gchar *string);
const gchar *       gst_glsl_version_to_string          (GstGLSLVersion version);
gboolean            gst_glsl_version_profile_from_string
                                                        (const gchar *string,
                                                         GstGLSLVersion *version,
                                                         GstGLSLProfile *profile);
gchar *             gst_glsl_version_profile_to_string  (GstGLSLVersion version,
                                                         GstGLSLProfile profile);
gboolean            gst_glsl_string_get_version_profile (const gchar *s,
                                                         GstGLSLVersion *version,
                                                         GstGLSLProfile *profile);
gboolean            gst_gl_context_supports_glsl_profile_version
                                                        (GstGLContext *context,
                                                         GstGLSLVersion version,
                                                         GstGLSLProfile profile);
GstGLSLVersion      gst_gl_version_to_glsl_version      (GstGLAPI gl_api,
                                                         gint maj,
                                                         gint min);

Description

Details

GST_GLSL_ERROR

#define GST_GLSL_ERROR (gst_glsl_error_quark ())

gst_glsl_error_quark ()

GQuark              gst_glsl_error_quark                (void);

enum GstGLSLError

typedef enum {
  GST_GLSL_ERROR_COMPILE,
  GST_GLSL_ERROR_LINK,
  GST_GLSL_ERROR_PROGRAM,
} GstGLSLError;

GST_GLSL_ERROR_COMPILE

GST_GLSL_ERROR_LINK

GST_GLSL_ERROR_PROGRAM


enum GstGLSLProfile

typedef enum {
  /* XXX: maybe make GstGLAPI instead */
  GST_GLSL_PROFILE_NONE = 0,

  GST_GLSL_PROFILE_ES = (1 << 0),
  GST_GLSL_PROFILE_CORE = (1 << 1),
  GST_GLSL_PROFILE_COMPATIBILITY = (1 << 2),

  GST_GLSL_PROFILE_ANY = -1,
} GstGLSLProfile;

GST_GLSL_PROFILE_NONE

GST_GLSL_PROFILE_ES

GST_GLSL_PROFILE_CORE

GST_GLSL_PROFILE_COMPATIBILITY

GST_GLSL_PROFILE_ANY


enum GstGLSLVersion

typedef enum {
  GST_GLSL_VERSION_NONE = 0,

  GST_GLSL_VERSION_100 = 100, /* ES */
  GST_GLSL_VERSION_110 = 110, /* GL */
  GST_GLSL_VERSION_120 = 120, /* GL */
  GST_GLSL_VERSION_130 = 130, /* GL */
  GST_GLSL_VERSION_140 = 140, /* GL */
  GST_GLSL_VERSION_150 = 150, /* GL */
  GST_GLSL_VERSION_300 = 300, /* ES */
  GST_GLSL_VERSION_310 = 310, /* ES */
  GST_GLSL_VERSION_320 = 320, /* ES */
  GST_GLSL_VERSION_330 = 330, /* GL */
  GST_GLSL_VERSION_400 = 400, /* GL */
  GST_GLSL_VERSION_410 = 410, /* GL */
  GST_GLSL_VERSION_420 = 420, /* GL */
  GST_GLSL_VERSION_430 = 430, /* GL */
  GST_GLSL_VERSION_440 = 440, /* GL */
  GST_GLSL_VERSION_450 = 450, /* GL */

  GST_GLSL_VERSION_ANY = -1,
} GstGLSLVersion;

GST_GLSL_VERSION_NONE

GST_GLSL_VERSION_100

GST_GLSL_VERSION_110

GST_GLSL_VERSION_120

GST_GLSL_VERSION_130

GST_GLSL_VERSION_140

GST_GLSL_VERSION_150

GST_GLSL_VERSION_300

GST_GLSL_VERSION_310

GST_GLSL_VERSION_320

GST_GLSL_VERSION_330

GST_GLSL_VERSION_400

GST_GLSL_VERSION_410

GST_GLSL_VERSION_420

GST_GLSL_VERSION_430

GST_GLSL_VERSION_440

GST_GLSL_VERSION_450

GST_GLSL_VERSION_ANY


gst_glsl_profile_from_string ()

GstGLSLProfile      gst_glsl_profile_from_string        (const gchar *string);

gst_glsl_profile_to_string ()

const gchar *       gst_glsl_profile_to_string          (GstGLSLProfile profile);

gst_glsl_version_from_string ()

GstGLSLVersion      gst_glsl_version_from_string        (const gchar *string);

gst_glsl_version_to_string ()

const gchar *       gst_glsl_version_to_string          (GstGLSLVersion version);

gst_glsl_version_profile_from_string ()

gboolean            gst_glsl_version_profile_from_string
                                                        (const gchar *string,
                                                         GstGLSLVersion *version,
                                                         GstGLSLProfile *profile);

gst_glsl_version_profile_to_string ()

gchar *             gst_glsl_version_profile_to_string  (GstGLSLVersion version,
                                                         GstGLSLProfile profile);

gst_glsl_string_get_version_profile ()

gboolean            gst_glsl_string_get_version_profile (const gchar *s,
                                                         GstGLSLVersion *version,
                                                         GstGLSLProfile *profile);

gst_gl_context_supports_glsl_profile_version ()

gboolean            gst_gl_context_supports_glsl_profile_version
                                                        (GstGLContext *context,
                                                         GstGLSLVersion version,
                                                         GstGLSLProfile profile);

gst_gl_version_to_glsl_version ()

GstGLSLVersion      gst_gl_version_to_glsl_version      (GstGLAPI gl_api,
                                                         gint maj,
                                                         gint min);

See Also

GstGLSLStage, GstGLShader