Class: TencentCloud::Mps::V20190612::ImageSpriteTemplate

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

雪碧图模板详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition = nil, type = nil, name = nil, width = nil, height = nil, resolutionadaptive = nil, sampletype = nil, sampleinterval = nil, rowcount = nil, columncount = nil, createtime = nil, updatetime = nil, filltype = nil, comment = nil, format = nil) ⇒ ImageSpriteTemplate

Returns a new instance of ImageSpriteTemplate.



15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
# File 'lib/v20190612/models.rb', line 15559

def initialize(definition=nil, type=nil, name=nil, width=nil, height=nil, resolutionadaptive=nil, sampletype=nil, sampleinterval=nil, rowcount=nil, columncount=nil, createtime=nil, updatetime=nil, filltype=nil, comment=nil, format=nil)
  @Definition = definition
  @Type = type
  @Name = name
  @Width = width
  @Height = height
  @ResolutionAdaptive = resolutionadaptive
  @SampleType = sampletype
  @SampleInterval = sampleinterval
  @RowCount = rowcount
  @ColumnCount = columncount
  @CreateTime = createtime
  @UpdateTime = updatetime
  @FillType = filltype
  @Comment = comment
  @Format = format
end

Instance Attribute Details

#ColumnCountObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def ColumnCount
  @ColumnCount
end

#CommentObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def Comment
  @Comment
end

#CreateTimeObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def CreateTime
  @CreateTime
end

#DefinitionObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def Definition
  @Definition
end

#FillTypeObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def FillType
  @FillType
end

#FormatObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def Format
  @Format
end

#HeightObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def Height
  @Height
end

#NameObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def Name
  @Name
end

#ResolutionAdaptiveObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def ResolutionAdaptive
  @ResolutionAdaptive
end

#RowCountObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def RowCount
  @RowCount
end

#SampleIntervalObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def SampleInterval
  @SampleInterval
end

#SampleTypeObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def SampleType
  @SampleType
end

#TypeObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def Type
  @Type
end

#UpdateTimeObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def UpdateTime
  @UpdateTime
end

#WidthObject

<li>Preset:系统预置模板;</li> <li>Custom:用户自定义模板。</li> <li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>当 Width、Height 均为 0,则分辨率同源;</li> <li>当 Width 为 0,Height 非 0,则 Width 按比例缩放;</li> <li>当 Width 非 0,Height 为 0,则 Height 按比例缩放;</li> <li>当 Width、Height 均非 0,则分辨率按用户指定。</li> 默认值:0。<li>open:开启,此时,Width 代表视频的长边,Height 表示视频的短边;</li> <li>close:关闭,此时,Width 代表视频的宽度,Height 表示视频的高度。</li> 默认值:open。<li> stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;</li> <li>black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。</li> 默认值:black 。

Parameters:

  • Definition:

    雪碧图模板唯一标识。

  • Type:

    模板类型,取值范围:

  • Name:

    雪碧图模板名称。

  • Width:

    雪碧图中小图的宽度(或长边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • Height:

    雪碧图中小图的高度(或短边)的最大值,取值范围:0 和 [128, 4096],单位:px。

  • ResolutionAdaptive:

    分辨率自适应,可选值:

  • SampleType:

    采样类型。

  • SampleInterval:

    采样间隔。

  • RowCount:

    雪碧图中小图的行数。

  • ColumnCount:

    雪碧图中小图的列数。

  • CreateTime:

    模板创建时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • UpdateTime:

    模板最后修改时间,使用 [ISO 日期格式](cloud.tencent.com/document/product/862/37710#52)。

  • FillType:

    填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:

  • Comment:

    模板描述信息。

  • Format:

    图片格式。



15557
15558
15559
# File 'lib/v20190612/models.rb', line 15557

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
# File 'lib/v20190612/models.rb', line 15577

def deserialize(params)
  @Definition = params['Definition']
  @Type = params['Type']
  @Name = params['Name']
  @Width = params['Width']
  @Height = params['Height']
  @ResolutionAdaptive = params['ResolutionAdaptive']
  @SampleType = params['SampleType']
  @SampleInterval = params['SampleInterval']
  @RowCount = params['RowCount']
  @ColumnCount = params['ColumnCount']
  @CreateTime = params['CreateTime']
  @UpdateTime = params['UpdateTime']
  @FillType = params['FillType']
  @Comment = params['Comment']
  @Format = params['Format']
end