Class: TencentCloud::Mps::V20190612::CreateSnapshotByTimeOffsetTemplateRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::CreateSnapshotByTimeOffsetTemplateRequest
- Defined in:
- lib/v20190612/models.rb
Overview
CreateSnapshotByTimeOffsetTemplate请求参数结构体
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 。. -
#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(name = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, comment = nil, filltype = nil) ⇒ CreateSnapshotByTimeOffsetTemplateRequest
constructor
A new instance of CreateSnapshotByTimeOffsetTemplateRequest.
Constructor Details
#initialize(name = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, comment = nil, filltype = nil) ⇒ CreateSnapshotByTimeOffsetTemplateRequest
Returns a new instance of CreateSnapshotByTimeOffsetTemplateRequest.
9994 9995 9996 9997 9998 9999 10000 10001 10002 |
# File 'lib/v20190612/models.rb', line 9994 def initialize(name=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, comment=nil, filltype=nil) @Name = name @Width = width @Height = height @ResolutionAdaptive = resolutionadaptive @Format = format @Comment = comment @FillType = filltype end |
Instance Attribute Details
#Comment ⇒ Object
9992 9993 9994 |
# File 'lib/v20190612/models.rb', line 9992 def Comment @Comment end |
#FillType ⇒ Object
9992 9993 9994 |
# File 'lib/v20190612/models.rb', line 9992 def FillType @FillType end |
#Format ⇒ Object
9992 9993 9994 |
# File 'lib/v20190612/models.rb', line 9992 def Format @Format end |
#Height ⇒ Object
9992 9993 9994 |
# File 'lib/v20190612/models.rb', line 9992 def Height @Height end |
#Name ⇒ Object
9992 9993 9994 |
# File 'lib/v20190612/models.rb', line 9992 def Name @Name end |
#ResolutionAdaptive ⇒ Object
9992 9993 9994 |
# File 'lib/v20190612/models.rb', line 9992 def ResolutionAdaptive @ResolutionAdaptive end |
#Width ⇒ Object
9992 9993 9994 |
# File 'lib/v20190612/models.rb', line 9992 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
10004 10005 10006 10007 10008 10009 10010 10011 10012 |
# File 'lib/v20190612/models.rb', line 10004 def deserialize(params) @Name = params['Name'] @Width = params['Width'] @Height = params['Height'] @ResolutionAdaptive = params['ResolutionAdaptive'] @Format = params['Format'] @Comment = params['Comment'] @FillType = params['FillType'] end |