class Google::Apis::TranscoderV1::Crop
Video cropping configuration for the input video. The cropped input video is scaled to match the output resolution.
Attributes
bottom_pixels[RW]
The number of pixels to crop from the bottom. The default is 0. Corresponds to the JSON property ‘bottomPixels` @return [Fixnum]
left_pixels[RW]
The number of pixels to crop from the left. The default is 0. Corresponds to the JSON property ‘leftPixels` @return [Fixnum]
right_pixels[RW]
The number of pixels to crop from the right. The default is 0. Corresponds to the JSON property ‘rightPixels` @return [Fixnum]
top_pixels[RW]
The number of pixels to crop from the top. The default is 0. Corresponds to the JSON property ‘topPixels` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/transcoder_v1/classes.rb, line 372 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/transcoder_v1/classes.rb, line 377 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