Class: Google::Apis::TranscoderV1beta1::Color
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::Color
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/representations.rb
Overview
Color preprocessing configuration.
Instance Attribute Summary collapse
-
#brightness ⇒ Float
Control brightness of the video.
-
#contrast ⇒ Float
Control black and white contrast of the video.
-
#saturation ⇒ Float
Control color saturation of the video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Color
constructor
A new instance of Color.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Color
Returns a new instance of Color.
384 385 386 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 384 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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.
Corresponds to the JSON property brightness
368 369 370 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 368 def brightness @brightness end |
#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.
Corresponds to the JSON property contrast
375 376 377 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 375 def contrast @contrast end |
#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.
Corresponds to the JSON property saturation
382 383 384 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 382 def saturation @saturation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
389 390 391 392 393 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 389 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 |