Class: Google::Apis::TranscoderV1::Color

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb

Overview

Color preprocessing configuration. Note: This configuration is not supported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Color

Returns a new instance of Color.



388
389
390
# File 'lib/google/apis/transcoder_v1/classes.rb', line 388

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#brightnessFloat

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. Corresponds to the JSON property brightness

Returns:

  • (Float)


372
373
374
# File 'lib/google/apis/transcoder_v1/classes.rb', line 372

def brightness
  @brightness
end

#contrastFloat

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. Corresponds to the JSON property contrast

Returns:

  • (Float)


379
380
381
# File 'lib/google/apis/transcoder_v1/classes.rb', line 379

def contrast
  @contrast
end

#saturationFloat

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. Corresponds to the JSON property saturation

Returns:

  • (Float)


386
387
388
# File 'lib/google/apis/transcoder_v1/classes.rb', line 386

def saturation
  @saturation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



393
394
395
396
397
# File 'lib/google/apis/transcoder_v1/classes.rb', line 393

def update!(**args)
  @brightness = args[:brightness] if args.key?(:brightness)
  @contrast = args[:contrast] if args.key?(:contrast)
  @saturation = args[:saturation] if args.key?(:saturation)
end