Class: TencentCloud::Mps::V20190612::CreateSampleSnapshotTemplateRequest

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

Overview

CreateSampleSnapshotTemplate请求参数结构体

Instance Attribute Summary collapse

  • #FillType ⇒ Object
  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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
  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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
  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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
  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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
  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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
  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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
  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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
  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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

    Constructor Details

    #initialize(sampletype = nil, sampleinterval = nil, name = nil, width = nil, height = nil, resolutionadaptive = nil, format = nil, comment = nil, filltype = nil) ⇒ CreateSampleSnapshotTemplateRequest

    
    
    9299
    9300
    9301
    9302
    9303
    9304
    9305
    9306
    9307
    9308
    9309
    # File 'lib/v20190612/models.rb', line 9299
    
    def initialize(sampletype=nil, sampleinterval=nil, name=nil, width=nil, height=nil, resolutionadaptive=nil, format=nil, comment=nil, filltype=nil)
      @SampleType = sampletype
      @SampleInterval = sampleinterval
      @Name = name
      @Width = width
      @Height = height
      @ResolutionAdaptive = resolutionadaptive
      @Format = format
      @Comment = comment
      @FillType = filltype
    end
    

    Instance Attribute Details

    #CommentObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def Comment
      @Comment
    end
    

    #FillTypeObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def FillType
      @FillType
    end
    

    #FormatObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def Format
      @Format
    end
    

    #HeightObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def Height
      @Height
    end
    

    #NameObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def Name
      @Name
    end
    

    #ResolutionAdaptiveObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def ResolutionAdaptive
      @ResolutionAdaptive
    end
    

    #SampleIntervalObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def SampleInterval
      @SampleInterval
    end
    

    #SampleTypeObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def SampleType
      @SampleType
    end
    

    #WidthObject

  • Percent:按百分比。
  • Time:按时间间隔。
  • 当 SampleType 为 Percent 时,指定采样间隔的百分比。
  • 当 SampleType 为 Time 时,指定采样间隔的时间,单位为秒。
  • 当 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 。
    
    
    9297
    9298
    9299
    # File 'lib/v20190612/models.rb', line 9297
    
    def Width
      @Width
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    9311
    9312
    9313
    9314
    9315
    9316
    9317
    9318
    9319
    9320
    9321
    # File 'lib/v20190612/models.rb', line 9311
    
    def deserialize(params)
      @SampleType = params['SampleType']
      @SampleInterval = params['SampleInterval']
      @Name = params['Name']
      @Width = params['Width']
      @Height = params['Height']
      @ResolutionAdaptive = params['ResolutionAdaptive']
      @Format = params['Format']
      @Comment = params['Comment']
      @FillType = params['FillType']
    end