Class: Google::Apis::TranscoderV1::Pad
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::Pad
- 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
Pad filter configuration for the input video. The padded input video is scaled after padding with black to match the output resolution.
Instance Attribute Summary collapse
-
#bottom_pixels ⇒ Fixnum
The number of pixels to add to the bottom.
-
#left_pixels ⇒ Fixnum
The number of pixels to add to the left.
-
#right_pixels ⇒ Fixnum
The number of pixels to add to the right.
-
#top_pixels ⇒ Fixnum
The number of pixels to add to the top.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Pad
constructor
A new instance of Pad.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Pad
Returns a new instance of Pad.
1838 1839 1840 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1838 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bottom_pixels ⇒ Fixnum
The number of pixels to add to the bottom. The default is 0.
Corresponds to the JSON property bottomPixels
1821 1822 1823 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1821 def bottom_pixels @bottom_pixels end |
#left_pixels ⇒ Fixnum
The number of pixels to add to the left. The default is 0.
Corresponds to the JSON property leftPixels
1826 1827 1828 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1826 def left_pixels @left_pixels end |
#right_pixels ⇒ Fixnum
The number of pixels to add to the right. The default is 0.
Corresponds to the JSON property rightPixels
1831 1832 1833 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1831 def right_pixels @right_pixels end |
#top_pixels ⇒ Fixnum
The number of pixels to add to the top. The default is 0.
Corresponds to the JSON property topPixels
1836 1837 1838 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1836 def top_pixels @top_pixels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1843 1844 1845 1846 1847 1848 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1843 def update!(**args) @bottom_pixels = args[:bottom_pixels] if args.key?(:bottom_pixels) @left_pixels = args[:left_pixels] if args.key?(:left_pixels) @right_pixels = args[:right_pixels] if args.key?(:right_pixels) @top_pixels = args[:top_pixels] if args.key?(:top_pixels) end |