chromahold

The chromahold element will remove all color information for all colors except a single one and converts them to grayscale.

Sample pipeline:

 gst-launch-1.0 videotestsrc pattern=smpte75 ! \
   chromahold target-r=0 target-g=0 target-b=255 ! \
   videoconvert ! autovideosink     \

This pipeline only keeps the red color.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseTransform
                    ╰──GstVideoFilter
                        ╰──chromahold

Factory details

Authors: – Sebastian Dröge

Classification:Filter/Effect/Video

Rank – none

Plugin – gstcoloreffects

Package – GStreamer Bad Plug-ins git

Pad Templates

sink

video/x-raw:
         format: { ARGB, BGRA, ABGR, RGBA, xRGB, BGRx, xBGR, RGBx }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsink


src

video/x-raw:
         format: { ARGB, BGRA, ABGR, RGBA, xRGB, BGRx, xBGR, RGBx }
          width: [ 1, 2147483647 ]
         height: [ 1, 2147483647 ]
      framerate: [ 0/1, 2147483647/1 ]

Presencealways

Directionsrc


Properties

name

“name” gchararray *

The name of the object

Flags : Read / Write / Construct

Default value : NULL


parent

“parent” GstObject *

The parent of the object

Flags : Read / Write


qos

“qos” gboolean *

Handle Quality-of-Service events

Flags : Read / Write

Default value : true


target-b

“target-b” guint *

The Blue target

Flags : Read / Write

Default value : 0


target-g

“target-g” guint *

The Green target

Flags : Read / Write

Default value : 0


target-r

“target-r” guint *

The Red target

Flags : Read / Write

Default value : 255


tolerance

“tolerance” guint *

Tolerance for the target color

Flags : Read / Write

Default value : 30


The results of the search are