Class: Google::Apis::TranscoderV1::PreprocessingConfig

Inherits:
Object
  • Object
show all
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

Preprocessing configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreprocessingConfig

Returns a new instance of PreprocessingConfig.



1447
1448
1449
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1447

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

Instance Attribute Details

#audioGoogle::Apis::TranscoderV1::Audio

Audio preprocessing configuration. Corresponds to the JSON property audio



1415
1416
1417
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1415

def audio
  @audio
end

#colorGoogle::Apis::TranscoderV1::Color

Color preprocessing configuration. Note: This configuration is not supported. Corresponds to the JSON property color



1421
1422
1423
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1421

def color
  @color
end

#cropGoogle::Apis::TranscoderV1::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



1427
1428
1429
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1427

def crop
  @crop
end

#deblockGoogle::Apis::TranscoderV1::Deblock

Deblock preprocessing configuration. Note: This configuration is not supported. Corresponds to the JSON property deblock



1433
1434
1435
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1433

def deblock
  @deblock
end

#denoiseGoogle::Apis::TranscoderV1::Denoise

Denoise preprocessing configuration. Note: This configuration is not supported. Corresponds to the JSON property denoise



1439
1440
1441
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1439

def denoise
  @denoise
end

#padGoogle::Apis::TranscoderV1::Pad

Pad filter configuration for the input video. The padded input video is scaled after padding with black to match the output resolution. Corresponds to the JSON property pad



1445
1446
1447
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1445

def pad
  @pad
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1452
1453
1454
1455
1456
1457
1458
1459
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1452

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)
  @pad = args[:pad] if args.key?(:pad)
end