glcolorscale

glcolorscale

Synopsis

struct              GstGLColorscale;

Description

video frame scaling and colorspace conversion.

Scaling and Color space conversion

Equivalent to glupload ! gldownload.


Examples

gst-launch -v videotestsrc ! "video/x-raw-yuv" ! glcolorscale ! ximagesink
A pipeline to test colorspace conversion. FBO is required.
gst-launch -v videotestsrc ! "video/x-raw-yuv, width=640, height=480, format=(fourcc)AYUV" ! glcolorscale ! \
  "video/x-raw-yuv, width=320, height=240, format=(fourcc)YV12" ! autovideosink
A pipeline to test hardware scaling and colorspace conversion. FBO and GLSL are required.

Details

struct GstGLColorscale

struct GstGLColorscale {
    GstBaseTransform base_transform;

    GstPad *srcpad;
    GstPad *sinkpad;

    GstGLDisplay *display;

    GstVideoFormat input_video_format;
    gint input_video_width;
    gint input_video_height;

    GstVideoFormat output_video_format;
    gint output_video_width;
    gint output_video_height;  
};