Class: TencentCloud::Mps::V20190612::ModifySnapshotByTimeOffsetTemplateRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::ModifySnapshotByTimeOffsetTemplateRequest
- Defined in:
- lib/v20190612/models.rb
Overview
ModifySnapshotByTimeOffsetTemplate请求参数结构体
Instance Attribute Summary collapse
-
#Comment ⇒ Object
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Definition ⇒ Object
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#FillType ⇒ Object
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Format ⇒ Object
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Height ⇒ Object
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Name ⇒ Object
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#ResolutionAdaptive ⇒ Object
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Width ⇒ Object
- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- 当 Width、Height 均为 0,则分辨率同源;
- 当 Width 为 0,Height 非 0,则 Width 按比例缩放;
- 当 Width 非 0,Height 为 0,则 Height 按比例缩放;
- 当 Width、Height 均非 0,则分辨率按用户指定。
默认值:0。- open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;
- close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。
默认值:open。- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(definition = nil, name = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, comment = nil, filltype = nil) ⇒ ModifySnapshotByTimeOffsetTemplateRequest
constructor
A new instance of ModifySnapshotByTimeOffsetTemplateRequest.
Constructor Details
#initialize(definition = nil, name = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, comment = nil, filltype = nil) ⇒ ModifySnapshotByTimeOffsetTemplateRequest
Returns a new instance of ModifySnapshotByTimeOffsetTemplateRequest.
23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 |
# File 'lib/v20190612/models.rb', line 23151 def initialize(definition=nil, name=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, comment=nil, filltype=nil) @Definition = definition @Name = name @Width = width @Height = height @ResolutionAdaptive = resolutionadaptive @Format = format @Comment = comment @FillType = filltype end |
Instance Attribute Details
#Comment ⇒ Object
23149 23150 23151 |
# File 'lib/v20190612/models.rb', line 23149 def Comment @Comment end |
#Definition ⇒ Object
23149 23150 23151 |
# File 'lib/v20190612/models.rb', line 23149 def Definition @Definition end |
#FillType ⇒ Object
23149 23150 23151 |
# File 'lib/v20190612/models.rb', line 23149 def FillType @FillType end |
#Format ⇒ Object
23149 23150 23151 |
# File 'lib/v20190612/models.rb', line 23149 def Format @Format end |
#Height ⇒ Object
23149 23150 23151 |
# File 'lib/v20190612/models.rb', line 23149 def Height @Height end |
#Name ⇒ Object
23149 23150 23151 |
# File 'lib/v20190612/models.rb', line 23149 def Name @Name end |
#ResolutionAdaptive ⇒ Object
23149 23150 23151 |
# File 'lib/v20190612/models.rb', line 23149 def ResolutionAdaptive @ResolutionAdaptive end |
#Width ⇒ Object
23149 23150 23151 |
# File 'lib/v20190612/models.rb', line 23149 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 |
# File 'lib/v20190612/models.rb', line 23162 def deserialize(params) @Definition = params['Definition'] @Name = params['Name'] @Width = params['Width'] @Height = params['Height'] @ResolutionAdaptive = params['ResolutionAdaptive'] @Format = params['Format'] @Comment = params['Comment'] @FillType = params['FillType'] end |