Class: Google::Apis::TranscoderV1beta1::Crop

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Crop

Returns a new instance of Crop.



421
422
423
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 421

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

Instance Attribute Details

#bottom_pixelsFixnum

The number of pixels to crop from the bottom. The default is 0. Corresponds to the JSON property bottomPixels

Returns:

  • (Fixnum)


404
405
406
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 404

def bottom_pixels
  @bottom_pixels
end

#left_pixelsFixnum

The number of pixels to crop from the left. The default is 0. Corresponds to the JSON property leftPixels

Returns:

  • (Fixnum)


409
410
411
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 409

def left_pixels
  @left_pixels
end

#right_pixelsFixnum

The number of pixels to crop from the right. The default is 0. Corresponds to the JSON property rightPixels

Returns:

  • (Fixnum)


414
415
416
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 414

def right_pixels
  @right_pixels
end

#top_pixelsFixnum

The number of pixels to crop from the top. The default is 0. Corresponds to the JSON property topPixels

Returns:

  • (Fixnum)


419
420
421
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 419

def top_pixels
  @top_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



426
427
428
429
430
431
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 426

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