Brightness/contrast/hue/saturation, 22 brightness/contrast/hue/saturation, 1 detailed description – Google Flix Engine Linux Reference Manual User Manual

Page 88: Deprecated functions

Advertising
background image

82

Flix Engine Linux Module Documentation

5.22

Brightness/Contrast/Hue/Saturation

5.22.1

Detailed Description

The BCHS video filter is a filter used to modify the brightness, contrast, hue and/or saturation of the source
image.

Filter Parameters:

Name

|

Type

| Opt/Reqd |

Range

=======================================================================================

FE2_BCHS_BRIGHTNESS

| Numeric

| Optional | [-255,255]

FE2_BCHS_CONTRAST

| Numeric

| Optional | [-255,255]

FE2_BCHS_HUE

| Numeric

| Optional | [-180,180]

FE2_BCHS_SATURATION

| Numeric

| Optional | [-255,255]

Example Usage:

sc = Flix2_AddFilter(&filter, flix, FE2_FILTER_BCHS);

//up the contrast by ~10%

if(sc == ON2_OK)

sc = Flix2_FilterSetParam(filter, FE2_BCHS_CONTRAST, 25.5);

Deprecated functions

on2sc editor_options_GetBrightness

(const

FLIX2HANDLE

flix,

int32_t

∗pBrightness)

Get the current brightness adjustment factor.

on2sc editor_options_SetBrightness

(

FLIX2HANDLE

flix, const

int32_t

brightness)

Set the brightness adjustment factor.

on2sc editor_options_GetUseBrightness

(const

FLIX2HANDLE

flix,

on2bool

∗pUseBrightness)

Determine if the brightness filter is enabled.

on2sc editor_options_SetUseBrightness

(

FLIX2HANDLE

flix, const

on2bool

bUseBrightness)

Enable/disable the brightness filter.

on2sc editor_options_GetContrast

(const

FLIX2HANDLE

flix, double ∗pContrast)

Get the current contrast adjustment factor.

on2sc editor_options_SetContrast

(

FLIX2HANDLE

flix, const double contrast)

Set the contrast adjustment factor.

on2sc editor_options_GetUseContrast

(const

FLIX2HANDLE

flix,

on2bool

∗pUseContrast)

Determine if the contrast filter is enabled.

on2sc editor_options_SetUseContrast

(

FLIX2HANDLE

flix, const

on2bool

bUseContrast)

Enable/disable the contrast filter.

on2sc editor_options_GetHue

(const

FLIX2HANDLE

flix,

int32_t

∗pHue)

Get the current hue adjustment factor.

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

Advertising