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

com.amazonaws.services.mediaconvert.model.Av1QvbrSettings Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elemental MediaConvert module holds the client classes that are used for communicating with AWS Elemental MediaConvert Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file 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.amazonaws.services.mediaconvert.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * Settings for quality-defined variable bitrate encoding with the AV1 codec. Use these settings only when you set QVBR
 * for Rate control mode.
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class Av1QvbrSettings implements Serializable, Cloneable, StructuredPojo {

    /**
     * Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output.
     * MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality
     * that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on
     * characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10.
     * Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for
     * most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also
     * provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be
     * 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     */
    private Integer qvbrQualityLevel;
    /**
     * Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if
     * you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     * MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set
     * qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
     */
    private Double qvbrQualityLevelFineTune;

    /**
     * Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output.
     * MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality
     * that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on
     * characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10.
     * Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for
     * most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also
     * provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be
     * 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     * 
     * @param qvbrQualityLevel
     *        Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this
     *        output. MediaConvert determines the right number of bits to use for each part of the video to maintain the
     *        video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level
     *        for you, based on characteristics of your input video. If you prefer to specify a quality level, specify a
     *        number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly lossless
     *        compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to
     *        specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For
     *        example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
     *        qvbrQualityLevelFineTune to .33.
     */

    public void setQvbrQualityLevel(Integer qvbrQualityLevel) {
        this.qvbrQualityLevel = qvbrQualityLevel;
    }

    /**
     * Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output.
     * MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality
     * that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on
     * characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10.
     * Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for
     * most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also
     * provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be
     * 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     * 
     * @return Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this
     *         output. MediaConvert determines the right number of bits to use for each part of the video to maintain
     *         the video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality
     *         level for you, based on characteristics of your input video. If you prefer to specify a quality level,
     *         specify a number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly
     *         lossless compression. The quality level for most broadcast-quality transcodes is between 6 and 9.
     *         Optionally, to specify a value between whole numbers, also provide a value for the setting
     *         qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be 7.33, set
     *         qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     */

    public Integer getQvbrQualityLevel() {
        return this.qvbrQualityLevel;
    }

    /**
     * Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this output.
     * MediaConvert determines the right number of bits to use for each part of the video to maintain the video quality
     * that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level for you, based on
     * characteristics of your input video. If you prefer to specify a quality level, specify a number from 1 through 10.
     * Use higher numbers for greater quality. Level 10 results in nearly lossless compression. The quality level for
     * most broadcast-quality transcodes is between 6 and 9. Optionally, to specify a value between whole numbers, also
     * provide a value for the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality level to be
     * 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     * 
     * @param qvbrQualityLevel
     *        Use this setting only when you set Rate control mode to QVBR. Specify the target quality level for this
     *        output. MediaConvert determines the right number of bits to use for each part of the video to maintain the
     *        video quality that you specify. When you keep the default value, AUTO, MediaConvert picks a quality level
     *        for you, based on characteristics of your input video. If you prefer to specify a quality level, specify a
     *        number from 1 through 10. Use higher numbers for greater quality. Level 10 results in nearly lossless
     *        compression. The quality level for most broadcast-quality transcodes is between 6 and 9. Optionally, to
     *        specify a value between whole numbers, also provide a value for the setting qvbrQualityLevelFineTune. For
     *        example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
     *        qvbrQualityLevelFineTune to .33.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public Av1QvbrSettings withQvbrQualityLevel(Integer qvbrQualityLevel) {
        setQvbrQualityLevel(qvbrQualityLevel);
        return this;
    }

    /**
     * Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if
     * you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     * MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set
     * qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
     * 
     * @param qvbrQualityLevelFineTune
     *        Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For
     *        example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
     *        qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a
     *        whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25,
     *        your actual QVBR quality level is 7.33.
     */

    public void setQvbrQualityLevelFineTune(Double qvbrQualityLevelFineTune) {
        this.qvbrQualityLevelFineTune = qvbrQualityLevelFineTune;
    }

    /**
     * Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if
     * you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     * MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set
     * qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
     * 
     * @return Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For
     *         example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
     *         qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a
     *         whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25,
     *         your actual QVBR quality level is 7.33.
     */

    public Double getQvbrQualityLevelFineTune() {
        return this.qvbrQualityLevelFineTune;
    }

    /**
     * Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For example, if
     * you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to .33.
     * MediaConvert rounds your QVBR quality level to the nearest third of a whole number. For example, if you set
     * qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33.
     * 
     * @param qvbrQualityLevelFineTune
     *        Optional. Specify a value here to set the QVBR quality to a level that is between whole numbers. For
     *        example, if you want your QVBR quality level to be 7.33, set qvbrQualityLevel to 7 and set
     *        qvbrQualityLevelFineTune to .33. MediaConvert rounds your QVBR quality level to the nearest third of a
     *        whole number. For example, if you set qvbrQualityLevel to 7 and you set qvbrQualityLevelFineTune to .25,
     *        your actual QVBR quality level is 7.33.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public Av1QvbrSettings withQvbrQualityLevelFineTune(Double qvbrQualityLevelFineTune) {
        setQvbrQualityLevelFineTune(qvbrQualityLevelFineTune);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getQvbrQualityLevel() != null)
            sb.append("QvbrQualityLevel: ").append(getQvbrQualityLevel()).append(",");
        if (getQvbrQualityLevelFineTune() != null)
            sb.append("QvbrQualityLevelFineTune: ").append(getQvbrQualityLevelFineTune());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof Av1QvbrSettings == false)
            return false;
        Av1QvbrSettings other = (Av1QvbrSettings) obj;
        if (other.getQvbrQualityLevel() == null ^ this.getQvbrQualityLevel() == null)
            return false;
        if (other.getQvbrQualityLevel() != null && other.getQvbrQualityLevel().equals(this.getQvbrQualityLevel()) == false)
            return false;
        if (other.getQvbrQualityLevelFineTune() == null ^ this.getQvbrQualityLevelFineTune() == null)
            return false;
        if (other.getQvbrQualityLevelFineTune() != null && other.getQvbrQualityLevelFineTune().equals(this.getQvbrQualityLevelFineTune()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getQvbrQualityLevel() == null) ? 0 : getQvbrQualityLevel().hashCode());
        hashCode = prime * hashCode + ((getQvbrQualityLevelFineTune() == null) ? 0 : getQvbrQualityLevelFineTune().hashCode());
        return hashCode;
    }

    @Override
    public Av1QvbrSettings clone() {
        try {
            return (Av1QvbrSettings) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

    @com.amazonaws.annotation.SdkInternalApi
    @Override
    public void marshall(ProtocolMarshaller protocolMarshaller) {
        com.amazonaws.services.mediaconvert.model.transform.Av1QvbrSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy