Class: Google::Apis::TranscoderV1beta1::Deblock

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

Overview

Deblock preprocessing configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Deblock

Returns a new instance of Deblock.



450
451
452
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 450

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Enable deblocker. The default is false. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


441
442
443
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 441

def enabled
  @enabled
end

#strengthFloat

Set strength of the deblocker. Enter a value between 0 and 1. The higher the value, the stronger the block removal. 0 is no deblocking. The default is 0. Corresponds to the JSON property strength

Returns:

  • (Float)


448
449
450
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 448

def strength
  @strength
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



455
456
457
458
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 455

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