Class: Google::Apis::TranscoderV1beta1::Pad

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Pad

Returns a new instance of Pad.



1221
1222
1223
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1221

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

Instance Attribute Details

#bottom_pixelsFixnum

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

Returns:

  • (Fixnum)


1204
1205
1206
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1204

def bottom_pixels
  @bottom_pixels
end

#left_pixelsFixnum

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

Returns:

  • (Fixnum)


1209
1210
1211
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1209

def left_pixels
  @left_pixels
end

#right_pixelsFixnum

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

Returns:

  • (Fixnum)


1214
1215
1216
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1214

def right_pixels
  @right_pixels
end

#top_pixelsFixnum

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

Returns:

  • (Fixnum)


1219
1220
1221
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1219

def top_pixels
  @top_pixels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1226
1227
1228
1229
1230
1231
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1226

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