# glcolorbalance

Adjusts brightness, contrast, hue, saturation on a video stream.

## Example launch line

     gst-launch-1.0 videotestsrc ! glupload ! glcolorbalance saturation=0.0 ! glcolorconvert ! gldownload ! ximagesink

This pipeline converts the image to black and white by setting the saturation to 0.0.

## Hierarchy

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

## Implemented interfaces

    GstColorBalance

## Factory details

Authors: – Matthew Waters <matthew@centricular.com></matthew@centricular.com>

Classification: – `Filter/Effect/Video`

Rank – none

Plugin – opengl

Package – GStreamer Base Plug-ins

## Pad Templates

### `sink`

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

    video/x-raw(memory:GLMemory, meta:GstVideoOverlayComposition):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: { (string)2D, (string)external-oes }

    video/x-raw(memory:DMABuf):
             format: DMA_DRM
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

    video/x-raw(memory:DMABuf, meta:GstVideoOverlayComposition):
             format: DMA_DRM
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

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: { (string)2D, (string)external-oes }

    video/x-raw(memory:GLMemory, meta:GstVideoOverlayComposition):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: { (string)2D, (string)external-oes }

    video/x-raw(memory:DMABuf):
             format: DMA_DRM
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

    video/x-raw(memory:DMABuf, meta:GstVideoOverlayComposition):
             format: DMA_DRM
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### brightness

    “brightness” gdouble

brightness

Flags : Read / Write

Default value : 0

### contrast

    “contrast” gdouble

contrast

Flags : Read / Write

Default value : 1

### hue

    “hue” gdouble

hue

Flags : Read / Write

Default value : 0

### saturation

    “saturation” gdouble

saturation

Flags : Read / Write

Default value : 1

The results of the search are