class Google::Apis::TranscoderV1beta1::Color
Color
preprocessing configuration.
Attributes
brightness[RW]
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` @return [Float]
contrast[RW]
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` @return [Float]
saturation[RW]
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` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/transcoder_v1beta1/classes.rb, line 384 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# 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