Class: Google::Apis::TranscoderV1beta1::PreprocessingConfig

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

Preprocessing configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreprocessingConfig

Returns a new instance of PreprocessingConfig.



1224
1225
1226
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1224

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

Instance Attribute Details

#audioGoogle::Apis::TranscoderV1beta1::Audio

Audio preprocessing configuration. Corresponds to the JSON property audio



1201
1202
1203
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1201

def audio
  @audio
end

#colorGoogle::Apis::TranscoderV1beta1::Color

Color preprocessing configuration. Corresponds to the JSON property color



1206
1207
1208
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1206

def color
  @color
end

#cropGoogle::Apis::TranscoderV1beta1::Crop

Video cropping configuration for the input video. The cropped input video is scaled to match the output resolution. Corresponds to the JSON property crop



1212
1213
1214
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1212

def crop
  @crop
end

#deblockGoogle::Apis::TranscoderV1beta1::Deblock

Deblock preprocessing configuration. Corresponds to the JSON property deblock



1217
1218
1219
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1217

def deblock
  @deblock
end

#denoiseGoogle::Apis::TranscoderV1beta1::Denoise

Denoise preprocessing configuration. Corresponds to the JSON property denoise



1222
1223
1224
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1222

def denoise
  @denoise
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1229
1230
1231
1232
1233
1234
1235
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1229

def update!(**args)
  @audio = args[:audio] if args.key?(:audio)
  @color = args[:color] if args.key?(:color)
  @crop = args[:crop] if args.key?(:crop)
  @deblock = args[:deblock] if args.key?(:deblock)
  @denoise = args[:denoise] if args.key?(:denoise)
end