com.amazonaws.services.mediaconvert.model.H264QvbrSettings Maven / Gradle / Ivy
/*
* Copyright 2013-2018 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 H.264 codec. Required when you set Rate control mode
* to QVBR. Not valid when you set Rate control mode to a value other than QVBR, or when you don't define Rate control
* mode.
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class H264QvbrSettings implements Serializable, Cloneable, StructuredPojo {
/**
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average
* bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video
* part of this output to the value you choose. That is, the total size of the video element is less than or equal to
* the value you set multiplied by the number of seconds of encoded output.
*/
private Integer maxAverageBitrate;
/**
* Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings. Specify
* the target quality level for this output, from 1 to 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.
*/
private Integer qvbrQualityLevel;
/**
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average
* bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video
* part of this output to the value you choose. That is, the total size of the video element is less than or equal to
* the value you set multiplied by the number of seconds of encoded output.
*
* @param maxAverageBitrate
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max
* average bitrate values suited to the complexity of your input video, the service limits the average
* bitrate of the video part of this output to the value you choose. That is, the total size of the video
* element is less than or equal to the value you set multiplied by the number of seconds of encoded output.
*/
public void setMaxAverageBitrate(Integer maxAverageBitrate) {
this.maxAverageBitrate = maxAverageBitrate;
}
/**
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average
* bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video
* part of this output to the value you choose. That is, the total size of the video element is less than or equal to
* the value you set multiplied by the number of seconds of encoded output.
*
* @return Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max
* average bitrate values suited to the complexity of your input video, the service limits the average
* bitrate of the video part of this output to the value you choose. That is, the total size of the video
* element is less than or equal to the value you set multiplied by the number of seconds of encoded output.
*/
public Integer getMaxAverageBitrate() {
return this.maxAverageBitrate;
}
/**
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max average
* bitrate values suited to the complexity of your input video, the service limits the average bitrate of the video
* part of this output to the value you choose. That is, the total size of the video element is less than or equal to
* the value you set multiplied by the number of seconds of encoded output.
*
* @param maxAverageBitrate
* Use this setting only when Rate control mode is QVBR and Quality tuning level is Multi-pass HQ. For Max
* average bitrate values suited to the complexity of your input video, the service limits the average
* bitrate of the video part of this output to the value you choose. That is, the total size of the video
* element is less than or equal to the value you set multiplied by the number of seconds of encoded output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public H264QvbrSettings withMaxAverageBitrate(Integer maxAverageBitrate) {
setMaxAverageBitrate(maxAverageBitrate);
return this;
}
/**
* Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings. Specify
* the target quality level for this output, from 1 to 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.
*
* @param qvbrQualityLevel
* Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings.
* Specify the target quality level for this output, from 1 to 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.
*/
public void setQvbrQualityLevel(Integer qvbrQualityLevel) {
this.qvbrQualityLevel = qvbrQualityLevel;
}
/**
* Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings. Specify
* the target quality level for this output, from 1 to 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.
*
* @return Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings.
* Specify the target quality level for this output, from 1 to 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.
*/
public Integer getQvbrQualityLevel() {
return this.qvbrQualityLevel;
}
/**
* Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings. Specify
* the target quality level for this output, from 1 to 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.
*
* @param qvbrQualityLevel
* Required when you use QVBR rate control mode. That is, when you specify qvbrSettings within h264Settings.
* Specify the target quality level for this output, from 1 to 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public H264QvbrSettings withQvbrQualityLevel(Integer qvbrQualityLevel) {
setQvbrQualityLevel(qvbrQualityLevel);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getMaxAverageBitrate() != null)
sb.append("MaxAverageBitrate: ").append(getMaxAverageBitrate()).append(",");
if (getQvbrQualityLevel() != null)
sb.append("QvbrQualityLevel: ").append(getQvbrQualityLevel());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof H264QvbrSettings == false)
return false;
H264QvbrSettings other = (H264QvbrSettings) obj;
if (other.getMaxAverageBitrate() == null ^ this.getMaxAverageBitrate() == null)
return false;
if (other.getMaxAverageBitrate() != null && other.getMaxAverageBitrate().equals(this.getMaxAverageBitrate()) == false)
return false;
if (other.getQvbrQualityLevel() == null ^ this.getQvbrQualityLevel() == null)
return false;
if (other.getQvbrQualityLevel() != null && other.getQvbrQualityLevel().equals(this.getQvbrQualityLevel()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMaxAverageBitrate() == null) ? 0 : getMaxAverageBitrate().hashCode());
hashCode = prime * hashCode + ((getQvbrQualityLevel() == null) ? 0 : getQvbrQualityLevel().hashCode());
return hashCode;
}
@Override
public H264QvbrSettings clone() {
try {
return (H264QvbrSettings) 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.H264QvbrSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy