![]() |
![]() |
![]() |
GStreamer Bad Plugins 1.0 Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define GST_GL_COLOR_CONVERT_FORMATS #define GST_GL_COLOR_CONVERT_VIDEO_CAPS GstGLColorConvert; GstGLColorConvertClass; GstGLColorConvert * gst_gl_color_convert_new (GstGLContext *context
); gboolean gst_gl_color_convert_set_caps (GstGLColorConvert *convert
,GstCaps *in_caps
,GstCaps *out_caps
); GstCaps * gst_gl_color_convert_transform_caps (GstGLContext *convert
,GstPadDirection direction
,GstCaps *caps
,GstCaps *filter
); GstCaps * gst_gl_color_convert_fixate_caps (GstGLContext *convert
,GstPadDirection direction
,GstCaps *caps
,GstCaps *other
); gboolean gst_gl_color_convert_decide_allocation (GstGLColorConvert *convert
,GstQuery *query
); GstBuffer * gst_gl_color_convert_perform (GstGLColorConvert *convert
,GstBuffer *inbuf
);
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()
.
#define GST_GL_COLOR_CONVERT_FORMATS
The currently supported formats that can be converted
#define GST_GL_COLOR_CONVERT_VIDEO_CAPS
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
GstGLColorConvert * gst_gl_color_convert_new (GstGLContext *context
);
|
a GstGLContext |
Returns : |
a new GstGLColorConvert object |
gboolean gst_gl_color_convert_set_caps (GstGLColorConvert *convert
,GstCaps *in_caps
,GstCaps *out_caps
);
Initializes convert
with the information required for conversion.
|
a GstGLColorConvert |
|
input GstCaps |
|
output GstCaps |
GstCaps * gst_gl_color_convert_transform_caps (GstGLContext *convert
,GstPadDirection direction
,GstCaps *caps
,GstCaps *filter
);
GstCaps * gst_gl_color_convert_fixate_caps (GstGLContext *convert
,GstPadDirection direction
,GstCaps *caps
,GstCaps *other
);
gboolean gst_gl_color_convert_decide_allocation (GstGLColorConvert *convert
,GstQuery *query
);
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_caps()
|
a GstGLColorConvert |
|
the texture ids for input formatted according to in_info |
Returns : |
a converted GstBuffer or NULL % |