All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.vod.v20180717.models.HeadTailTemplate Maven / Gradle / Ivy

There is a newer version: 3.1.1104
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.vod.v20180717.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class HeadTailTemplate extends AbstractModel{

    /**
    * 片头片尾模板号。
    */
    @SerializedName("Definition")
    @Expose
    private Long Definition;

    /**
    * 模板名,最大支持 64 个字符。
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * 模板描述,最大支持 256 个字符。
    */
    @SerializedName("Comment")
    @Expose
    private String Comment;

    /**
    * 片头候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。
    */
    @SerializedName("HeadCandidateSet")
    @Expose
    private String [] HeadCandidateSet;

    /**
    * 片尾候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。
    */
    @SerializedName("TailCandidateSet")
    @Expose
    private String [] TailCandidateSet;

    /**
    * 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊;
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • 默认值:stretch 。 */ @SerializedName("FillType") @Expose private String FillType; /** * Get 片头片尾模板号。 * @return Definition 片头片尾模板号。 */ public Long getDefinition() { return this.Definition; } /** * Set 片头片尾模板号。 * @param Definition 片头片尾模板号。 */ public void setDefinition(Long Definition) { this.Definition = Definition; } /** * Get 模板名,最大支持 64 个字符。 * @return Name 模板名,最大支持 64 个字符。 */ public String getName() { return this.Name; } /** * Set 模板名,最大支持 64 个字符。 * @param Name 模板名,最大支持 64 个字符。 */ public void setName(String Name) { this.Name = Name; } /** * Get 模板描述,最大支持 256 个字符。 * @return Comment 模板描述,最大支持 256 个字符。 */ public String getComment() { return this.Comment; } /** * Set 模板描述,最大支持 256 个字符。 * @param Comment 模板描述,最大支持 256 个字符。 */ public void setComment(String Comment) { this.Comment = Comment; } /** * Get 片头候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 * @return HeadCandidateSet 片头候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 */ public String [] getHeadCandidateSet() { return this.HeadCandidateSet; } /** * Set 片头候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 * @param HeadCandidateSet 片头候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 */ public void setHeadCandidateSet(String [] HeadCandidateSet) { this.HeadCandidateSet = HeadCandidateSet; } /** * Get 片尾候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 * @return TailCandidateSet 片尾候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 */ public String [] getTailCandidateSet() { return this.TailCandidateSet; } /** * Set 片尾候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 * @param TailCandidateSet 片尾候选列表。使用时会选择跟正片分辨率最贴近的一个使用,当存在相同的候选时,选择第一个使用,最大支持 5 个。 */ public void setTailCandidateSet(String [] TailCandidateSet) { this.TailCandidateSet = TailCandidateSet; } /** * Get 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊;
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • 默认值:stretch 。 * @return FillType 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊;
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • 默认值:stretch 。 */ public String getFillType() { return this.FillType; } /** * Set 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊;
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • 默认值:stretch 。 * @param FillType 填充方式,当视频流配置宽高参数与原始视频的宽高比不一致时,对转码的处理方式,即为“填充”。可选填充方式:
  • stretch:拉伸,对每一帧进行拉伸,填满整个画面,可能导致转码后的视频被“压扁“或者“拉长“;
  • gauss:高斯模糊,保持视频宽高比不变,边缘剩余部分使用高斯模糊;
  • white:留白,保持视频宽高比不变,边缘剩余部分使用白色填充;
  • black:留黑,保持视频宽高比不变,边缘剩余部分使用黑色填充。
  • 默认值:stretch 。 */ public void setFillType(String FillType) { this.FillType = FillType; } public HeadTailTemplate() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public HeadTailTemplate(HeadTailTemplate source) { if (source.Definition != null) { this.Definition = new Long(source.Definition); } if (source.Name != null) { this.Name = new String(source.Name); } if (source.Comment != null) { this.Comment = new String(source.Comment); } if (source.HeadCandidateSet != null) { this.HeadCandidateSet = new String[source.HeadCandidateSet.length]; for (int i = 0; i < source.HeadCandidateSet.length; i++) { this.HeadCandidateSet[i] = new String(source.HeadCandidateSet[i]); } } if (source.TailCandidateSet != null) { this.TailCandidateSet = new String[source.TailCandidateSet.length]; for (int i = 0; i < source.TailCandidateSet.length; i++) { this.TailCandidateSet[i] = new String(source.TailCandidateSet[i]); } } if (source.FillType != null) { this.FillType = new String(source.FillType); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Definition", this.Definition); this.setParamSimple(map, prefix + "Name", this.Name); this.setParamSimple(map, prefix + "Comment", this.Comment); this.setParamArraySimple(map, prefix + "HeadCandidateSet.", this.HeadCandidateSet); this.setParamArraySimple(map, prefix + "TailCandidateSet.", this.TailCandidateSet); this.setParamSimple(map, prefix + "FillType", this.FillType); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy