com.amazonaws.services.mediaconvert.model.transform.H264SettingsMarshaller Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-mediaconvert Show documentation
Show all versions of aws-java-sdk-mediaconvert Show documentation
The AWS Java SDK for AWS Elemental MediaConvert module holds the client classes that are used for communicating with AWS Elemental MediaConvert Service
/*
* 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.transform;
import javax.annotation.Generated;
import com.amazonaws.SdkClientException;
import com.amazonaws.services.mediaconvert.model.*;
import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;
/**
* H264SettingsMarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class H264SettingsMarshaller {
private static final MarshallingInfo ADAPTIVEQUANTIZATION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("adaptiveQuantization").build();
private static final MarshallingInfo BANDWIDTHREDUCTIONFILTER_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("bandwidthReductionFilter").build();
private static final MarshallingInfo BITRATE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("bitrate").build();
private static final MarshallingInfo CODECLEVEL_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("codecLevel").build();
private static final MarshallingInfo CODECPROFILE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("codecProfile").build();
private static final MarshallingInfo DYNAMICSUBGOP_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("dynamicSubGop").build();
private static final MarshallingInfo ENDOFSTREAMMARKERS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("endOfStreamMarkers").build();
private static final MarshallingInfo ENTROPYENCODING_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("entropyEncoding").build();
private static final MarshallingInfo FIELDENCODING_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("fieldEncoding").build();
private static final MarshallingInfo FLICKERADAPTIVEQUANTIZATION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("flickerAdaptiveQuantization").build();
private static final MarshallingInfo FRAMERATECONTROL_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerateControl").build();
private static final MarshallingInfo FRAMERATECONVERSIONALGORITHM_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerateConversionAlgorithm").build();
private static final MarshallingInfo FRAMERATEDENOMINATOR_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerateDenominator").build();
private static final MarshallingInfo FRAMERATENUMERATOR_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("framerateNumerator").build();
private static final MarshallingInfo GOPBREFERENCE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("gopBReference").build();
private static final MarshallingInfo GOPCLOSEDCADENCE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("gopClosedCadence").build();
private static final MarshallingInfo GOPSIZE_BINDING = MarshallingInfo.builder(MarshallingType.DOUBLE).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("gopSize").build();
private static final MarshallingInfo GOPSIZEUNITS_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("gopSizeUnits").build();
private static final MarshallingInfo HRDBUFFERFINALFILLPERCENTAGE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("hrdBufferFinalFillPercentage").build();
private static final MarshallingInfo HRDBUFFERINITIALFILLPERCENTAGE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("hrdBufferInitialFillPercentage").build();
private static final MarshallingInfo HRDBUFFERSIZE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("hrdBufferSize").build();
private static final MarshallingInfo INTERLACEMODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("interlaceMode").build();
private static final MarshallingInfo MAXBITRATE_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("maxBitrate").build();
private static final MarshallingInfo MINIINTERVAL_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("minIInterval").build();
private static final MarshallingInfo NUMBERBFRAMESBETWEENREFERENCEFRAMES_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("numberBFramesBetweenReferenceFrames").build();
private static final MarshallingInfo NUMBERREFERENCEFRAMES_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("numberReferenceFrames").build();
private static final MarshallingInfo PARCONTROL_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("parControl").build();
private static final MarshallingInfo PARDENOMINATOR_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("parDenominator").build();
private static final MarshallingInfo PARNUMERATOR_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("parNumerator").build();
private static final MarshallingInfo QUALITYTUNINGLEVEL_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("qualityTuningLevel").build();
private static final MarshallingInfo QVBRSETTINGS_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("qvbrSettings").build();
private static final MarshallingInfo RATECONTROLMODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("rateControlMode").build();
private static final MarshallingInfo REPEATPPS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("repeatPps").build();
private static final MarshallingInfo SCANTYPECONVERSIONMODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("scanTypeConversionMode").build();
private static final MarshallingInfo SCENECHANGEDETECT_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("sceneChangeDetect").build();
private static final MarshallingInfo SLICES_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("slices").build();
private static final MarshallingInfo SLOWPAL_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("slowPal").build();
private static final MarshallingInfo SOFTNESS_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("softness").build();
private static final MarshallingInfo SPATIALADAPTIVEQUANTIZATION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("spatialAdaptiveQuantization").build();
private static final MarshallingInfo SYNTAX_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("syntax").build();
private static final MarshallingInfo TELECINE_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("telecine").build();
private static final MarshallingInfo TEMPORALADAPTIVEQUANTIZATION_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("temporalAdaptiveQuantization").build();
private static final MarshallingInfo UNREGISTEREDSEITIMECODE_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("unregisteredSeiTimecode").build();
private static final H264SettingsMarshaller instance = new H264SettingsMarshaller();
public static H264SettingsMarshaller getInstance() {
return instance;
}
/**
* Marshall the given parameter object.
*/
public void marshall(H264Settings h264Settings, ProtocolMarshaller protocolMarshaller) {
if (h264Settings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(h264Settings.getAdaptiveQuantization(), ADAPTIVEQUANTIZATION_BINDING);
protocolMarshaller.marshall(h264Settings.getBandwidthReductionFilter(), BANDWIDTHREDUCTIONFILTER_BINDING);
protocolMarshaller.marshall(h264Settings.getBitrate(), BITRATE_BINDING);
protocolMarshaller.marshall(h264Settings.getCodecLevel(), CODECLEVEL_BINDING);
protocolMarshaller.marshall(h264Settings.getCodecProfile(), CODECPROFILE_BINDING);
protocolMarshaller.marshall(h264Settings.getDynamicSubGop(), DYNAMICSUBGOP_BINDING);
protocolMarshaller.marshall(h264Settings.getEndOfStreamMarkers(), ENDOFSTREAMMARKERS_BINDING);
protocolMarshaller.marshall(h264Settings.getEntropyEncoding(), ENTROPYENCODING_BINDING);
protocolMarshaller.marshall(h264Settings.getFieldEncoding(), FIELDENCODING_BINDING);
protocolMarshaller.marshall(h264Settings.getFlickerAdaptiveQuantization(), FLICKERADAPTIVEQUANTIZATION_BINDING);
protocolMarshaller.marshall(h264Settings.getFramerateControl(), FRAMERATECONTROL_BINDING);
protocolMarshaller.marshall(h264Settings.getFramerateConversionAlgorithm(), FRAMERATECONVERSIONALGORITHM_BINDING);
protocolMarshaller.marshall(h264Settings.getFramerateDenominator(), FRAMERATEDENOMINATOR_BINDING);
protocolMarshaller.marshall(h264Settings.getFramerateNumerator(), FRAMERATENUMERATOR_BINDING);
protocolMarshaller.marshall(h264Settings.getGopBReference(), GOPBREFERENCE_BINDING);
protocolMarshaller.marshall(h264Settings.getGopClosedCadence(), GOPCLOSEDCADENCE_BINDING);
protocolMarshaller.marshall(h264Settings.getGopSize(), GOPSIZE_BINDING);
protocolMarshaller.marshall(h264Settings.getGopSizeUnits(), GOPSIZEUNITS_BINDING);
protocolMarshaller.marshall(h264Settings.getHrdBufferFinalFillPercentage(), HRDBUFFERFINALFILLPERCENTAGE_BINDING);
protocolMarshaller.marshall(h264Settings.getHrdBufferInitialFillPercentage(), HRDBUFFERINITIALFILLPERCENTAGE_BINDING);
protocolMarshaller.marshall(h264Settings.getHrdBufferSize(), HRDBUFFERSIZE_BINDING);
protocolMarshaller.marshall(h264Settings.getInterlaceMode(), INTERLACEMODE_BINDING);
protocolMarshaller.marshall(h264Settings.getMaxBitrate(), MAXBITRATE_BINDING);
protocolMarshaller.marshall(h264Settings.getMinIInterval(), MINIINTERVAL_BINDING);
protocolMarshaller.marshall(h264Settings.getNumberBFramesBetweenReferenceFrames(), NUMBERBFRAMESBETWEENREFERENCEFRAMES_BINDING);
protocolMarshaller.marshall(h264Settings.getNumberReferenceFrames(), NUMBERREFERENCEFRAMES_BINDING);
protocolMarshaller.marshall(h264Settings.getParControl(), PARCONTROL_BINDING);
protocolMarshaller.marshall(h264Settings.getParDenominator(), PARDENOMINATOR_BINDING);
protocolMarshaller.marshall(h264Settings.getParNumerator(), PARNUMERATOR_BINDING);
protocolMarshaller.marshall(h264Settings.getQualityTuningLevel(), QUALITYTUNINGLEVEL_BINDING);
protocolMarshaller.marshall(h264Settings.getQvbrSettings(), QVBRSETTINGS_BINDING);
protocolMarshaller.marshall(h264Settings.getRateControlMode(), RATECONTROLMODE_BINDING);
protocolMarshaller.marshall(h264Settings.getRepeatPps(), REPEATPPS_BINDING);
protocolMarshaller.marshall(h264Settings.getScanTypeConversionMode(), SCANTYPECONVERSIONMODE_BINDING);
protocolMarshaller.marshall(h264Settings.getSceneChangeDetect(), SCENECHANGEDETECT_BINDING);
protocolMarshaller.marshall(h264Settings.getSlices(), SLICES_BINDING);
protocolMarshaller.marshall(h264Settings.getSlowPal(), SLOWPAL_BINDING);
protocolMarshaller.marshall(h264Settings.getSoftness(), SOFTNESS_BINDING);
protocolMarshaller.marshall(h264Settings.getSpatialAdaptiveQuantization(), SPATIALADAPTIVEQUANTIZATION_BINDING);
protocolMarshaller.marshall(h264Settings.getSyntax(), SYNTAX_BINDING);
protocolMarshaller.marshall(h264Settings.getTelecine(), TELECINE_BINDING);
protocolMarshaller.marshall(h264Settings.getTemporalAdaptiveQuantization(), TEMPORALADAPTIVEQUANTIZATION_BINDING);
protocolMarshaller.marshall(h264Settings.getUnregisteredSeiTimecode(), UNREGISTEREDSEITIMECODE_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
}
}