gf_layer_set_saturation()

Set a layer's saturation level

Synopsis:

#include <gf/gf.h>

void gf_layer_set_saturation( gf_layer_t layer,
                              int        saturation );

Arguments:

layer
A pointer to a gf_layer_t handle of the layer you want to set the saturation for.
saturation
The saturation level for the layer, in the range of -127 to 128, with 0 indicating normal saturation.

Library:

gf

Description:

This function controls the saturation level of a layer.


Note:
  • This function only affects layers in YUV format.
  • Changes to the layer's parameters are enqueued. You need to call gf_layer_update() to make them take effect. The gf_layer_update() call will return something other than GF_ERR_OK if the layer doesn't have the GF_LAYER_CAP_SET_SATURATION attribute (see gf_layer_query()).

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_display_attach(), gf_layer_detach(), gf_layer_disable(), gf_layer_enable(), gf_layer_query()