Class: Google::Apis::TranscoderV1::Denoise

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Denoise

Returns a new instance of Denoise.



554
555
556
# File 'lib/google/apis/transcoder_v1/classes.rb', line 554

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

Instance Attribute Details

#strengthFloat

Set strength of the denoise. Enter a value between 0 and 1. The higher the value, the smoother the image. 0 is no denoising. The default is 0. Corresponds to the JSON property strength

Returns:

  • (Float)


546
547
548
# File 'lib/google/apis/transcoder_v1/classes.rb', line 546

def strength
  @strength
end

#tuneString

Set the denoiser mode. The default is standard. Supported denoiser modes: - standard - grain Corresponds to the JSON property tune

Returns:

  • (String)


552
553
554
# File 'lib/google/apis/transcoder_v1/classes.rb', line 552

def tune
  @tune
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



559
560
561
562
# File 'lib/google/apis/transcoder_v1/classes.rb', line 559

def update!(**args)
  @strength = args[:strength] if args.key?(:strength)
  @tune = args[:tune] if args.key?(:tune)
end