Class: TencentCloud::Mps::V20190612::SampleSnapshotTemplate
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::SampleSnapshotTemplate
- 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#SampleInterval ⇒ 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值:black 。. -
#SampleType ⇒ 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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
- white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充。
- gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊。
默认值: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, sampletype = nil, sampleinterval = nil, createtime = nil, updatetime = nil, filltype = nil) ⇒ SampleSnapshotTemplate
constructor
A new instance of SampleSnapshotTemplate.
Constructor Details
#initialize(definition = nil, type = nil, name = nil, comment = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, sampletype = nil, sampleinterval = nil, createtime = nil, updatetime = nil, filltype = nil) ⇒ SampleSnapshotTemplate
Returns a new instance of SampleSnapshotTemplate.
27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 |
# File 'lib/v20190612/models.rb', line 27128 def initialize(definition=nil, type=nil, name=nil, comment=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, sampletype=nil, sampleinterval=nil, createtime=nil, updatetime=nil, filltype=nil) @Definition = definition @Type = type @Name = name @Comment = comment @Width = width @Height = height @ResolutionAdaptive = resolutionadaptive @Format = format @SampleType = sampletype @SampleInterval = sampleinterval @CreateTime = createtime @UpdateTime = updatetime @FillType = filltype end |
Instance Attribute Details
#Comment ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def Comment @Comment end |
#CreateTime ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def CreateTime @CreateTime end |
#Definition ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def Definition @Definition end |
#FillType ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def FillType @FillType end |
#Format ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def Format @Format end |
#Height ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def Height @Height end |
#Name ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def Name @Name end |
#ResolutionAdaptive ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def ResolutionAdaptive @ResolutionAdaptive end |
#SampleInterval ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def SampleInterval @SampleInterval end |
#SampleType ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def SampleType @SampleType end |
#Type ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def Type @Type end |
#UpdateTime ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def UpdateTime @UpdateTime end |
#Width ⇒ Object
27126 27127 27128 |
# File 'lib/v20190612/models.rb', line 27126 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 |
# File 'lib/v20190612/models.rb', line 27144 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'] @SampleType = params['SampleType'] @SampleInterval = params['SampleInterval'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @FillType = params['FillType'] end |