Class: TencentCloud::Mps::V20190612::ModifyImageSpriteTemplateRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::ModifyImageSpriteTemplateRequest
- Defined in:
- lib/v20190612/models.rb
Overview
ModifyImageSpriteTemplate请求参数结构体
Instance Attribute Summary collapse
-
#ColumnCount ⇒ 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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值: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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值: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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值: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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值: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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值: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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值: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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#RowCount ⇒ 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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#SampleInterval ⇒ 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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。. -
#SampleType ⇒ 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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值: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。- Percent:按百分比。
- Time:按时间间隔。
- 当 SampleType 为 Percent 时,指定采样间隔的百分比。
- 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
- stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
- black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
默认值:black 。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(definition = nil, name = nil, width = nil, height = nil, resolutionadaptive = nil, sampletype = nil, sampleinterval = nil, rowcount = nil, columncount = nil, filltype = nil, comment = nil, format = nil) ⇒ ModifyImageSpriteTemplateRequest
constructor
A new instance of ModifyImageSpriteTemplateRequest.
Constructor Details
#initialize(definition = nil, name = nil, width = nil, height = nil, resolutionadaptive = nil, sampletype = nil, sampleinterval = nil, rowcount = nil, columncount = nil, filltype = nil, comment = nil, format = nil) ⇒ ModifyImageSpriteTemplateRequest
Returns a new instance of ModifyImageSpriteTemplateRequest.
21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 |
# File 'lib/v20190612/models.rb', line 21912 def initialize(definition=nil, name=nil, width=nil, height=nil, resolutionadaptive=nil, sampletype=nil, sampleinterval=nil, rowcount=nil, columncount=nil, filltype=nil, comment=nil, format=nil) @Definition = definition @Name = name @Width = width @Height = height @ResolutionAdaptive = resolutionadaptive @SampleType = sampletype @SampleInterval = sampleinterval @RowCount = rowcount @ColumnCount = columncount @FillType = filltype @Comment = comment @Format = format end |
Instance Attribute Details
#ColumnCount ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def ColumnCount @ColumnCount end |
#Comment ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def Comment @Comment end |
#Definition ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def Definition @Definition end |
#FillType ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def FillType @FillType end |
#Format ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def Format @Format end |
#Height ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def Height @Height end |
#Name ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def Name @Name end |
#ResolutionAdaptive ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def ResolutionAdaptive @ResolutionAdaptive end |
#RowCount ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def RowCount @RowCount end |
#SampleInterval ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def SampleInterval @SampleInterval end |
#SampleType ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def SampleType @SampleType end |
#Width ⇒ Object
21910 21911 21912 |
# File 'lib/v20190612/models.rb', line 21910 def Width @Width end |
Instance Method Details
#deserialize(params) ⇒ Object
21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 21939 21940 |
# File 'lib/v20190612/models.rb', line 21927 def deserialize(params) @Definition = params['Definition'] @Name = params['Name'] @Width = params['Width'] @Height = params['Height'] @ResolutionAdaptive = params['ResolutionAdaptive'] @SampleType = params['SampleType'] @SampleInterval = params['SampleInterval'] @RowCount = params['RowCount'] @ColumnCount = params['ColumnCount'] @FillType = params['FillType'] @Comment = params['Comment'] @Format = params['Format'] end |