Set brightness, contrast, saturation and approximate gamma adjustment.
The filter accepts the following options:
- contrast
-
Set the contrast value. It accepts a float value in range
-2.0to2.0. The default value is0.0. - brightness
-
Set the brightness value. It accepts a float value in range
-1.0to1.0. The default value is0.0. - saturation
-
Set the saturation value. It accepts a float value in range
0.0to3.0. The default value is1.0. - gamma
-
Set the gamma value. It accepts a float value in range
0.1to10.0. The default value is1.0. - gamma_r
-
Set the gamma value for red. It accepts a float value in range
0.1to10.0. The default value is1.0. - gamma_g
-
Set the gamma value for green. It accepts a float value in range
0.1to10.0. The default value is1.0. - gamma_b
-
Set the gamma value for blue. It accepts a float value in range
0.1to10.0. The default value is1.0. - gamma_weight
-
Can be used to reduce the effect of a high gamma value on bright image areas, e.g. keep them from getting overamplified and just plain white. It accepts a float value in range
0.0to1.0.A value of0.0turns the gamma correction all the way down while1.0leaves it at its full strength. Default is1.0.
Commands
The filter supports the following commands:
- contrast
-
Set the contrast expression.
- brightness
-
Set the brightness expression.
- saturation
-
Set the saturation expression.
- gamma
-
Set the gamma expression.
- gamma_r
-
Set the gamma_r expression.
- gamma_g
-
Set gamma_g expression.
- gamma_b
-
Set gamma_b expression.
- gamma_weight
-
Set gamma_weight expression.
The command accepts the same syntax of the corresponding option.
If the specified expression is not valid, it is kept at its current value.