Editor_options_sethue, Editor_options_setsaturation – Google Flix Engine Linux Reference Manual User Manual

Page 95

Advertising
background image

5.22 Brightness/Contrast/Hue/Saturation

89

5.22.3.10

on2sc editor_options_SetContrast (FLIX2HANDLE flix, const double contrast)

Set the contrast adjustment factor.

Determines the level by which to adjust the contrast. Contrast is adjusted on a scale of -255 to 255, with 0
indicating no change. To increase the relative contrast of the video, use a positive number. To decrease the
relative contrast of the video, use a negative number.

Parameters:

← flix Handle to the Flix Engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← contrast Contrast Factor (-255 to 255)

Return values:

ON2_OK

The contrast value was successfully set in the engine.

ON2_INVALID_PARAMS

The value is out of range.

ON2_NET_ERROR

The underlying communication layer failed.

Note:

This call will have no effect on the encoded video unless the contrast filter is enabled with

editor_-

options_SetUseContrast()

. The default value is 1.

Deprecated

Use the

Filter Interface

along with

FE2_FILTER_BCHS

and the

FE2_BCHS_CONTRAST

parameter.

This function will be removed in a future release.

5.22.3.11

on2sc editor_options_SetHue (FLIX2HANDLE flix, const int32_t hue)

Set the hue adjustment factor.

Determines the level by which to adjust the hue. Hue is adjusted on a scale of -180 to 180, with 0 indicating
no change. To adjust the hue of the video towards red, use a negative number. To adjust the hue of the
video towards green, use a positive number.

Parameters:

← flix Handle to the Flix Engine returned from

Flix2_Create()

or

Flix2_CreateEx()

← hue Hue Factor (-180 to 180)

Return values:

ON2_OK

The hue value was successfully set in the engine.

ON2_INVALID_PARAMS

The value is out of range.

ON2_NET_ERROR

The underlying communication layer failed.

Note:

This call will have no effect on the encoded video unless the hue filter is enabled with

editor_options_-

SetUseHue()

. The default value is 0.

Deprecated

Use the

Filter Interface

along with

FE2_FILTER_BCHS

and the

FE2_BCHS_HUE

parameter. This

function will be removed in a future release.

Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen

Advertising