Class: TencentCloud::Mps::V20190612::SnapshotByTimeOffsetTemplate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::SnapshotByTimeOffsetTemplate
- Defined in:
- lib/v20190612/models.rb
Overview
时间点截图模板详情
Instance Attribute Summary collapse
-
#Comment ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#CreateTime ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Definition ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#FillType ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Format ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Height ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Name ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#ResolutionAdaptive ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Type ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#UpdateTime ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#Width ⇒ Object
- Preset:系统预置模板;
- Custom:用户自定义模板。
- 当 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- black:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- black:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(definition = nil, type = nil, name = nil, comment = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, createtime = nil, updatetime = nil, filltype = nil) ⇒ SnapshotByTimeOffsetTemplate
constructor
A new instance of SnapshotByTimeOffsetTemplate.
Constructor Details
#initialize(definition = nil, type = nil, name = nil, comment = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, createtime = nil, updatetime = nil, filltype = nil) ⇒ SnapshotByTimeOffsetTemplate
Returns a new instance of SnapshotByTimeOffsetTemplate.
29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 |
# File 'lib/v20190612/models.rb', line 29086 def initialize(definition=nil, type=nil, name=nil, comment=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, createtime=nil, updatetime=nil, filltype=nil) @Definition = definition @Type = type @Name = name @Comment = comment @Width = width @Height = height @ResolutionAdaptive = resolutionadaptive @Format = format @CreateTime = createtime @UpdateTime = updatetime @FillType = filltype end |
Instance Attribute Details
#Comment ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def Comment @Comment end |
#CreateTime ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def CreateTime @CreateTime end |
#Definition ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def Definition @Definition end |
#FillType ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def FillType @FillType end |
#Format ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def Format @Format end |
#Height ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def Height @Height end |
#Name ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def Name @Name end |
#ResolutionAdaptive ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def ResolutionAdaptive @ResolutionAdaptive end |
#Type ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def Type @Type end |
#UpdateTime ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def UpdateTime @UpdateTime end |
#Width ⇒ Object
29084 29085 29086 |
# File 'lib/v20190612/models.rb', line 29084 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 |
# File 'lib/v20190612/models.rb', line 29100 def deserialize(params) @Definition = params['Definition'] @Type = params['Type'] @Name = params['Name'] @Comment = params['Comment'] @Width = params['Width'] @Height = params['Height'] @ResolutionAdaptive = params['ResolutionAdaptive'] @Format = params['Format'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @FillType = params['FillType'] end |