Class: Google::Apis::TranscoderV1::Deblock

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Deblock

Returns a new instance of Deblock.



501
502
503
# File 'lib/google/apis/transcoder_v1/classes.rb', line 501

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)


492
493
494
# File 'lib/google/apis/transcoder_v1/classes.rb', line 492

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)


499
500
501
# File 'lib/google/apis/transcoder_v1/classes.rb', line 499

def strength
  @strength
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



506
507
508
509
# File 'lib/google/apis/transcoder_v1/classes.rb', line 506

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