Top | ![]() |
![]() |
![]() |
![]() |
GstGLColorConvert is an object that converts between color spaces and/or formats using OpenGL Shaders.
A GstGLColorConvert can be created with gst_gl_color_convert_new()
.
For handling stride scaling in the shader, see
gst_gl_color_convert_set_texture_scaling()
.
void gst_gl_color_convert_set_format (GstGLColorConvert *convert
,GstVideoInfo *in_info
,GstVideoInfo *out_info
);
Initializes convert
with the information required for conversion.
GstBuffer * gst_gl_color_convert_perform (GstGLColorConvert *convert
,GstBuffer *inbuf
);
Converts the data contained by inbuf
using the formats specified by the
GstVideoInfos passed to gst_gl_color_convert_set_format()
#define GST_GL_COLOR_CONVERT_FORMATS
The currently supported formats that can be converted
#define GST_GL_COLOR_CONVERT_VIDEO_CAPS GST_VIDEO_CAPS_MAKE (GST_GL_COLOR_CONVERT_FORMATS)
The currently supported GstCaps that can be converted
typedef struct _GstGLColorConvert GstGLColorConvert;
Opaque GstGLColorConvert object
typedef struct { GstObjectClass object_class; } GstGLColorConvertClass;
The GstGLColorConvertClass struct only contains private data