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

com.tencentcloudapi.mps.v20190612.models.MosaicInput Maven / Gradle / Ivy

There is a newer version: 3.0.1034
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.mps.v20190612.models;

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

public class MosaicInput extends AbstractModel {

    /**
    * Origin position, which currently can only be:
  • TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the blur is in the top-left corner of the image or text.
  • Default value: TopLeft. */ @SerializedName("CoordinateOrigin") @Expose private String CoordinateOrigin; /** * The horizontal position of the origin of the blur relative to the origin of coordinates of the video. % and px formats are supported:
  • If the string ends in %, the `XPos` of the blur will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
  • If the string ends in px, the `XPos` of the blur will be the specified px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. */ @SerializedName("XPos") @Expose private String XPos; /** * Vertical position of the origin of blur relative to the origin of coordinates of video. % and px formats are supported:
  • If the string ends in %, the `YPos` of the blur will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
  • If the string ends in px, the `YPos` of the blur will be the specified px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. */ @SerializedName("YPos") @Expose private String YPos; /** * Blur width. % and px formats are supported:
  • If the string ends in %, the `Width` of the blur will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
  • If the string ends in px, the `Width` of the blur will be in px; for example, `100px` means that `Width` is 100 px.
  • Default value: 10%. */ @SerializedName("Width") @Expose private String Width; /** * Blur height. % and px formats are supported:
  • If the string ends in %, the `Height` of the blur will be the specified percentage of the video height; for example, `10%` means that `Height` is 10% of the video height;
  • If the string ends in px, the `Height` of the blur will be in px; for example, `100px` means that `Height` is 100 px.
  • Default value: 10%. */ @SerializedName("Height") @Expose private String Height; /** * Start time offset of blur in seconds. If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame.
  • If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame;
  • If this value is greater than 0 (e.g., n), the blur will appear at second n after the first video frame;
  • If this value is smaller than 0 (e.g., -n), the blur will appear at second n before the last video frame.
  • */ @SerializedName("StartTimeOffset") @Expose private Float StartTimeOffset; /** * End time offset of blur in seconds.
  • If this parameter is left empty or 0 is entered, the blur will exist till the last video frame;
  • If this value is greater than 0 (e.g., n), the blur will exist till second n;
  • If this value is smaller than 0 (e.g., -n), the blur will exist till second n before the last video frame.
  • */ @SerializedName("EndTimeOffset") @Expose private Float EndTimeOffset; /** * Get Origin position, which currently can only be:
  • TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the blur is in the top-left corner of the image or text.
  • Default value: TopLeft. * @return CoordinateOrigin Origin position, which currently can only be:
  • TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the blur is in the top-left corner of the image or text.
  • Default value: TopLeft. */ public String getCoordinateOrigin() { return this.CoordinateOrigin; } /** * Set Origin position, which currently can only be:
  • TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the blur is in the top-left corner of the image or text.
  • Default value: TopLeft. * @param CoordinateOrigin Origin position, which currently can only be:
  • TopLeft: the origin of coordinates is in the top-left corner of the video, and the origin of the blur is in the top-left corner of the image or text.
  • Default value: TopLeft. */ public void setCoordinateOrigin(String CoordinateOrigin) { this.CoordinateOrigin = CoordinateOrigin; } /** * Get The horizontal position of the origin of the blur relative to the origin of coordinates of the video. % and px formats are supported:
  • If the string ends in %, the `XPos` of the blur will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
  • If the string ends in px, the `XPos` of the blur will be the specified px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. * @return XPos The horizontal position of the origin of the blur relative to the origin of coordinates of the video. % and px formats are supported:
  • If the string ends in %, the `XPos` of the blur will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
  • If the string ends in px, the `XPos` of the blur will be the specified px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. */ public String getXPos() { return this.XPos; } /** * Set The horizontal position of the origin of the blur relative to the origin of coordinates of the video. % and px formats are supported:
  • If the string ends in %, the `XPos` of the blur will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
  • If the string ends in px, the `XPos` of the blur will be the specified px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. * @param XPos The horizontal position of the origin of the blur relative to the origin of coordinates of the video. % and px formats are supported:
  • If the string ends in %, the `XPos` of the blur will be the specified percentage of the video width; for example, `10%` means that `XPos` is 10% of the video width;
  • If the string ends in px, the `XPos` of the blur will be the specified px; for example, `100px` means that `XPos` is 100 px.
  • Default value: 0 px. */ public void setXPos(String XPos) { this.XPos = XPos; } /** * Get Vertical position of the origin of blur relative to the origin of coordinates of video. % and px formats are supported:
  • If the string ends in %, the `YPos` of the blur will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
  • If the string ends in px, the `YPos` of the blur will be the specified px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. * @return YPos Vertical position of the origin of blur relative to the origin of coordinates of video. % and px formats are supported:
  • If the string ends in %, the `YPos` of the blur will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
  • If the string ends in px, the `YPos` of the blur will be the specified px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. */ public String getYPos() { return this.YPos; } /** * Set Vertical position of the origin of blur relative to the origin of coordinates of video. % and px formats are supported:
  • If the string ends in %, the `YPos` of the blur will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
  • If the string ends in px, the `YPos` of the blur will be the specified px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. * @param YPos Vertical position of the origin of blur relative to the origin of coordinates of video. % and px formats are supported:
  • If the string ends in %, the `YPos` of the blur will be the specified percentage of the video height; for example, `10%` means that `YPos` is 10% of the video height;
  • If the string ends in px, the `YPos` of the blur will be the specified px; for example, `100px` means that `YPos` is 100 px.
  • Default value: 0 px. */ public void setYPos(String YPos) { this.YPos = YPos; } /** * Get Blur width. % and px formats are supported:
  • If the string ends in %, the `Width` of the blur will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
  • If the string ends in px, the `Width` of the blur will be in px; for example, `100px` means that `Width` is 100 px.
  • Default value: 10%. * @return Width Blur width. % and px formats are supported:
  • If the string ends in %, the `Width` of the blur will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
  • If the string ends in px, the `Width` of the blur will be in px; for example, `100px` means that `Width` is 100 px.
  • Default value: 10%. */ public String getWidth() { return this.Width; } /** * Set Blur width. % and px formats are supported:
  • If the string ends in %, the `Width` of the blur will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
  • If the string ends in px, the `Width` of the blur will be in px; for example, `100px` means that `Width` is 100 px.
  • Default value: 10%. * @param Width Blur width. % and px formats are supported:
  • If the string ends in %, the `Width` of the blur will be the specified percentage of the video width; for example, `10%` means that `Width` is 10% of the video width;
  • If the string ends in px, the `Width` of the blur will be in px; for example, `100px` means that `Width` is 100 px.
  • Default value: 10%. */ public void setWidth(String Width) { this.Width = Width; } /** * Get Blur height. % and px formats are supported:
  • If the string ends in %, the `Height` of the blur will be the specified percentage of the video height; for example, `10%` means that `Height` is 10% of the video height;
  • If the string ends in px, the `Height` of the blur will be in px; for example, `100px` means that `Height` is 100 px.
  • Default value: 10%. * @return Height Blur height. % and px formats are supported:
  • If the string ends in %, the `Height` of the blur will be the specified percentage of the video height; for example, `10%` means that `Height` is 10% of the video height;
  • If the string ends in px, the `Height` of the blur will be in px; for example, `100px` means that `Height` is 100 px.
  • Default value: 10%. */ public String getHeight() { return this.Height; } /** * Set Blur height. % and px formats are supported:
  • If the string ends in %, the `Height` of the blur will be the specified percentage of the video height; for example, `10%` means that `Height` is 10% of the video height;
  • If the string ends in px, the `Height` of the blur will be in px; for example, `100px` means that `Height` is 100 px.
  • Default value: 10%. * @param Height Blur height. % and px formats are supported:
  • If the string ends in %, the `Height` of the blur will be the specified percentage of the video height; for example, `10%` means that `Height` is 10% of the video height;
  • If the string ends in px, the `Height` of the blur will be in px; for example, `100px` means that `Height` is 100 px.
  • Default value: 10%. */ public void setHeight(String Height) { this.Height = Height; } /** * Get Start time offset of blur in seconds. If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame.
  • If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame;
  • If this value is greater than 0 (e.g., n), the blur will appear at second n after the first video frame;
  • If this value is smaller than 0 (e.g., -n), the blur will appear at second n before the last video frame.
  • * @return StartTimeOffset Start time offset of blur in seconds. If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame.
  • If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame;
  • If this value is greater than 0 (e.g., n), the blur will appear at second n after the first video frame;
  • If this value is smaller than 0 (e.g., -n), the blur will appear at second n before the last video frame.
  • */ public Float getStartTimeOffset() { return this.StartTimeOffset; } /** * Set Start time offset of blur in seconds. If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame.
  • If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame;
  • If this value is greater than 0 (e.g., n), the blur will appear at second n after the first video frame;
  • If this value is smaller than 0 (e.g., -n), the blur will appear at second n before the last video frame.
  • * @param StartTimeOffset Start time offset of blur in seconds. If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame.
  • If this parameter is left empty or 0 is entered, the blur will appear upon the first video frame;
  • If this value is greater than 0 (e.g., n), the blur will appear at second n after the first video frame;
  • If this value is smaller than 0 (e.g., -n), the blur will appear at second n before the last video frame.
  • */ public void setStartTimeOffset(Float StartTimeOffset) { this.StartTimeOffset = StartTimeOffset; } /** * Get End time offset of blur in seconds.
  • If this parameter is left empty or 0 is entered, the blur will exist till the last video frame;
  • If this value is greater than 0 (e.g., n), the blur will exist till second n;
  • If this value is smaller than 0 (e.g., -n), the blur will exist till second n before the last video frame.
  • * @return EndTimeOffset End time offset of blur in seconds.
  • If this parameter is left empty or 0 is entered, the blur will exist till the last video frame;
  • If this value is greater than 0 (e.g., n), the blur will exist till second n;
  • If this value is smaller than 0 (e.g., -n), the blur will exist till second n before the last video frame.
  • */ public Float getEndTimeOffset() { return this.EndTimeOffset; } /** * Set End time offset of blur in seconds.
  • If this parameter is left empty or 0 is entered, the blur will exist till the last video frame;
  • If this value is greater than 0 (e.g., n), the blur will exist till second n;
  • If this value is smaller than 0 (e.g., -n), the blur will exist till second n before the last video frame.
  • * @param EndTimeOffset End time offset of blur in seconds.
  • If this parameter is left empty or 0 is entered, the blur will exist till the last video frame;
  • If this value is greater than 0 (e.g., n), the blur will exist till second n;
  • If this value is smaller than 0 (e.g., -n), the blur will exist till second n before the last video frame.
  • */ public void setEndTimeOffset(Float EndTimeOffset) { this.EndTimeOffset = EndTimeOffset; } public MosaicInput() { } /** * 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 MosaicInput(MosaicInput source) { if (source.CoordinateOrigin != null) { this.CoordinateOrigin = new String(source.CoordinateOrigin); } if (source.XPos != null) { this.XPos = new String(source.XPos); } if (source.YPos != null) { this.YPos = new String(source.YPos); } if (source.Width != null) { this.Width = new String(source.Width); } if (source.Height != null) { this.Height = new String(source.Height); } if (source.StartTimeOffset != null) { this.StartTimeOffset = new Float(source.StartTimeOffset); } if (source.EndTimeOffset != null) { this.EndTimeOffset = new Float(source.EndTimeOffset); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "CoordinateOrigin", this.CoordinateOrigin); this.setParamSimple(map, prefix + "XPos", this.XPos); this.setParamSimple(map, prefix + "YPos", this.YPos); this.setParamSimple(map, prefix + "Width", this.Width); this.setParamSimple(map, prefix + "Height", this.Height); this.setParamSimple(map, prefix + "StartTimeOffset", this.StartTimeOffset); this.setParamSimple(map, prefix + "EndTimeOffset", this.EndTimeOffset); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy