Google Cloud Video Transcoder V1beta1 Client - Class Color (0.7.1)

Reference documentation and code samples for the Google Cloud Video Transcoder V1beta1 Client class Color.

Color preprocessing configuration.

Generated from protobuf message google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Color

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ saturation float

Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0.

↳ contrast float

Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.

↳ brightness float

Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.

getSaturation

Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0.

Returns
TypeDescription
float

setSaturation

Control color saturation of the video. Enter a value between -1 and 1, where -1 is fully desaturated and 1 is maximum saturation. 0 is no change. The default is 0.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getContrast

Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.

Returns
TypeDescription
float

setContrast

Control black and white contrast of the video. Enter a value between -1 and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no change. The default is 0.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getBrightness

Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.

Returns
TypeDescription
float

setBrightness

Control brightness of the video. Enter a value between -1 and 1, where -1 is minimum brightness and 1 is maximum brightness. 0 is no change. The default is 0.

Parameter
NameDescription
var float
Returns
TypeDescription
$this