# glcolorscale

glcolorscale implements scaling of GL video frames, equivalent to videoscale. The initial implementation also performed colorspace conversion, hence the name of the element, but support has since been removed. You should use glcolorconvert for that purpose.

## Examples

    gst-launch-1.0 videotestsrc ! video/x-raw, width=640, height=480 ! glupload ! \
    glcolorscale ! glcolorconvert ! gldownload ! video/x-raw, width=320, height=240 ! \
    autovideosink

A pipeline to test hardware scaling and colorspace conversion. FBO and GLSL are required.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseTransform
                        ╰──GstGLBaseFilter
                            ╰──GstGLFilter
                                ╰──glcolorscale

## Factory details

Authors: – Julien Isorce <julien.isorce>, Matthew Waters <matthew></matthew></julien.isorce>

Classification: – `Filter/Effect/Video`

Rank – none

Plugin – opengl

Package – GStreamer Base Plug-ins

## Pad Templates

### `sink`

    video/x-raw(ANY):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

    video/x-raw(memory:GLMemory):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw(memory:GLMemory):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

    video/x-raw(ANY):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

Presence – always

Direction – src

Object type – GstPad

The results of the search are