Class: Google::Apis::TranscoderV1::PreprocessingConfig

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

Preprocessing configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreprocessingConfig

Returns a new instance of PreprocessingConfig.



1807
1808
1809
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1807

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

Instance Attribute Details

#audioGoogle::Apis::TranscoderV1::Audio

Audio preprocessing configuration. Corresponds to the JSON property audio



1770
1771
1772
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1770

def audio
  @audio
end

#colorGoogle::Apis::TranscoderV1::Color

Color preprocessing configuration. Note: This configuration is not supported. Corresponds to the JSON property color



1776
1777
1778
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1776

def color
  @color
end

#cropGoogle::Apis::TranscoderV1::Crop

Video cropping configuration for the input video. The cropped input video is scaled to match the output resolution. Corresponds to the JSON property crop



1782
1783
1784
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1782

def crop
  @crop
end

#deblockGoogle::Apis::TranscoderV1::Deblock

Deblock preprocessing configuration. Note: This configuration is not supported. Corresponds to the JSON property deblock



1788
1789
1790
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1788

def deblock
  @deblock
end

#deinterlaceGoogle::Apis::TranscoderV1::Deinterlace

Deinterlace configuration for input video. Corresponds to the JSON property deinterlace



1793
1794
1795
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1793

def deinterlace
  @deinterlace
end

#denoiseGoogle::Apis::TranscoderV1::Denoise

Denoise preprocessing configuration. Note: This configuration is not supported. Corresponds to the JSON property denoise



1799
1800
1801
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1799

def denoise
  @denoise
end

#padGoogle::Apis::TranscoderV1::Pad

Pad filter configuration for the input video. The padded input video is scaled after padding with black to match the output resolution. Corresponds to the JSON property pad



1805
1806
1807
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1805

def pad
  @pad
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1812
1813
1814
1815
1816
1817
1818
1819
1820
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1812

def update!(**args)
  @audio = args[:audio] if args.key?(:audio)
  @color = args[:color] if args.key?(:color)
  @crop = args[:crop] if args.key?(:crop)
  @deblock = args[:deblock] if args.key?(:deblock)
  @deinterlace = args[:deinterlace] if args.key?(:deinterlace)
  @denoise = args[:denoise] if args.key?(:denoise)
  @pad = args[:pad] if args.key?(:pad)
end