# Playback tutorial 5: Color Balance # Goal Brightness, Contrast, Hue and Saturation are common video adjustments, which are collectively known as Color Balance settings in GStreamer. This tutorial shows: - How to find out the available color balance channels - How to change them # Introduction [Basic tutorial 5: GUI toolkit integration](Basic%2Btutorial%2B5%253A%2BGUI%2Btoolkit%2Bintegration.html) has already explained the concept of GObject interfaces: applications use them to find out if certain functionality is available, regardless of the actual element which implements it. `playbin` implements the Color Balance interface (`gstcolorbalance`), which allows access to the color balance settings. If any of the elements in the `playbin` pipeline support this interface, `playbin` simply forwards it to the application, otherwise, a colorbalance element is inserted in the pipeline. This interface allows querying for the available color balance channels (`gstcolorbalancechannel`), along with their name and valid range of values, and then modify the current value of any of them. # Color balance example Copy this code into a text file named `playback-tutorial-5.c`.
This tutorial is included in the SDK since release 2012.7. If you cannot find it in the downloaded code, please install the latest release of the GStreamer SDK. |