Class: Google::Apis::TranscoderV1::Crop
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::Crop
- 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
Video cropping configuration for the input video. The cropped input video is scaled to match the output resolution.
Instance Attribute Summary collapse
-
#bottom_pixels ⇒ Fixnum
The number of pixels to crop from the bottom.
-
#left_pixels ⇒ Fixnum
The number of pixels to crop from the left.
-
#right_pixels ⇒ Fixnum
The number of pixels to crop from the right.
-
#top_pixels ⇒ Fixnum
The number of pixels to crop from the top.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Crop
constructor
A new instance of Crop.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Crop
Returns a new instance of Crop.
451 452 453 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 451 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bottom_pixels ⇒ Fixnum
The number of pixels to crop from the bottom. The default is 0.
Corresponds to the JSON property bottomPixels
434 435 436 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 434 def bottom_pixels @bottom_pixels end |
#left_pixels ⇒ Fixnum
The number of pixels to crop from the left. The default is 0.
Corresponds to the JSON property leftPixels
439 440 441 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 439 def left_pixels @left_pixels end |
#right_pixels ⇒ Fixnum
The number of pixels to crop from the right. The default is 0.
Corresponds to the JSON property rightPixels
444 445 446 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 444 def right_pixels @right_pixels end |
#top_pixels ⇒ Fixnum
The number of pixels to crop from the top. The default is 0.
Corresponds to the JSON property topPixels
449 450 451 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 449 def top_pixels @top_pixels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
456 457 458 459 460 461 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 456 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 |