Class: Google::Apis::TranscoderV1::YadifConfig

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

Yet Another Deinterlacing Filter Configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YadifConfig

Returns a new instance of YadifConfig.



2043
2044
2045
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2043

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

Instance Attribute Details

#deinterlace_all_framesBoolean Also known as: deinterlace_all_frames?

Deinterlace all frames rather than just the frames identified as interlaced. The default is false. Corresponds to the JSON property deinterlaceAllFrames

Returns:

  • (Boolean)


2019
2020
2021
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2019

def deinterlace_all_frames
  @deinterlace_all_frames
end

#disable_spatial_interlacingBoolean Also known as: disable_spatial_interlacing?

Disable spacial interlacing. The default is false. Corresponds to the JSON property disableSpatialInterlacing

Returns:

  • (Boolean)


2025
2026
2027
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2025

def disable_spatial_interlacing
  @disable_spatial_interlacing
end

#modeString

Specifies the deinterlacing mode to adopt. The default is send_frame. Supported values: - send_frame: Output one frame for each frame - send_field: Output one frame for each field Corresponds to the JSON property mode

Returns:

  • (String)


2033
2034
2035
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2033

def mode
  @mode
end

#parityString

The picture field parity assumed for the input interlaced video. The default is auto. Supported values: - tff: Assume the top field is first - bff: Assume the bottom field is first - auto: Enable automatic detection of field parity Corresponds to the JSON property parity

Returns:

  • (String)


2041
2042
2043
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2041

def parity
  @parity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2048
2049
2050
2051
2052
2053
# File 'lib/google/apis/transcoder_v1/classes.rb', line 2048

def update!(**args)
  @deinterlace_all_frames = args[:deinterlace_all_frames] if args.key?(:deinterlace_all_frames)
  @disable_spatial_interlacing = args[:disable_spatial_interlacing] if args.key?(:disable_spatial_interlacing)
  @mode = args[:mode] if args.key?(:mode)
  @parity = args[:parity] if args.key?(:parity)
end