/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MediaConvert { namespace Model { /** * Video codec settings, (CodecSettings) under (VideoDescription), contains the * group of settings related to video encoding. The settings in this group vary * depending on the value that you choose for Video codec (Codec). For each codec * enum that you choose, define the corresponding settings object. The following * lists the codec enum, settings object pairs. * AV1, Av1Settings * AVC_INTRA, * AvcIntraSettings * FRAME_CAPTURE, FrameCaptureSettings * H_264, H264Settings * * H_265, H265Settings * MPEG2, Mpeg2Settings * PRORES, ProresSettings * VC3, * Vc3Settings * VP8, Vp8Settings * VP9, Vp9Settings * XAVC, XavcSettings

See * Also:

AWS * API Reference

*/ class AWS_MEDIACONVERT_API VideoCodecSettings { public: VideoCodecSettings(); VideoCodecSettings(Aws::Utils::Json::JsonView jsonValue); VideoCodecSettings& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** * Required when you set Codec, under VideoDescription>CodecSettings to the value * AV1. */ inline const Av1Settings& GetAv1Settings() const{ return m_av1Settings; } /** * Required when you set Codec, under VideoDescription>CodecSettings to the value * AV1. */ inline bool Av1SettingsHasBeenSet() const { return m_av1SettingsHasBeenSet; } /** * Required when you set Codec, under VideoDescription>CodecSettings to the value * AV1. */ inline void SetAv1Settings(const Av1Settings& value) { m_av1SettingsHasBeenSet = true; m_av1Settings = value; } /** * Required when you set Codec, under VideoDescription>CodecSettings to the value * AV1. */ inline void SetAv1Settings(Av1Settings&& value) { m_av1SettingsHasBeenSet = true; m_av1Settings = std::move(value); } /** * Required when you set Codec, under VideoDescription>CodecSettings to the value * AV1. */ inline VideoCodecSettings& WithAv1Settings(const Av1Settings& value) { SetAv1Settings(value); return *this;} /** * Required when you set Codec, under VideoDescription>CodecSettings to the value * AV1. */ inline VideoCodecSettings& WithAv1Settings(Av1Settings&& value) { SetAv1Settings(std::move(value)); return *this;} /** * Required when you choose AVC-Intra for your output video codec. For more * information about the AVC-Intra settings, see the relevant specification. For * detailed information about SD and HD in AVC-Intra, see * https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in * AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf. */ inline const AvcIntraSettings& GetAvcIntraSettings() const{ return m_avcIntraSettings; } /** * Required when you choose AVC-Intra for your output video codec. For more * information about the AVC-Intra settings, see the relevant specification. For * detailed information about SD and HD in AVC-Intra, see * https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in * AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf. */ inline bool AvcIntraSettingsHasBeenSet() const { return m_avcIntraSettingsHasBeenSet; } /** * Required when you choose AVC-Intra for your output video codec. For more * information about the AVC-Intra settings, see the relevant specification. For * detailed information about SD and HD in AVC-Intra, see * https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in * AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf. */ inline void SetAvcIntraSettings(const AvcIntraSettings& value) { m_avcIntraSettingsHasBeenSet = true; m_avcIntraSettings = value; } /** * Required when you choose AVC-Intra for your output video codec. For more * information about the AVC-Intra settings, see the relevant specification. For * detailed information about SD and HD in AVC-Intra, see * https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in * AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf. */ inline void SetAvcIntraSettings(AvcIntraSettings&& value) { m_avcIntraSettingsHasBeenSet = true; m_avcIntraSettings = std::move(value); } /** * Required when you choose AVC-Intra for your output video codec. For more * information about the AVC-Intra settings, see the relevant specification. For * detailed information about SD and HD in AVC-Intra, see * https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in * AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf. */ inline VideoCodecSettings& WithAvcIntraSettings(const AvcIntraSettings& value) { SetAvcIntraSettings(value); return *this;} /** * Required when you choose AVC-Intra for your output video codec. For more * information about the AVC-Intra settings, see the relevant specification. For * detailed information about SD and HD in AVC-Intra, see * https://ieeexplore.ieee.org/document/7290936. For information about 4K/2K in * AVC-Intra, see https://pro-av.panasonic.net/en/avc-ultra/AVC-ULTRAoverview.pdf. */ inline VideoCodecSettings& WithAvcIntraSettings(AvcIntraSettings&& value) { SetAvcIntraSettings(std::move(value)); return *this;} /** * Specifies the video codec. This must be equal to one of the enum values defined * by the object VideoCodec. */ inline const VideoCodec& GetCodec() const{ return m_codec; } /** * Specifies the video codec. This must be equal to one of the enum values defined * by the object VideoCodec. */ inline bool CodecHasBeenSet() const { return m_codecHasBeenSet; } /** * Specifies the video codec. This must be equal to one of the enum values defined * by the object VideoCodec. */ inline void SetCodec(const VideoCodec& value) { m_codecHasBeenSet = true; m_codec = value; } /** * Specifies the video codec. This must be equal to one of the enum values defined * by the object VideoCodec. */ inline void SetCodec(VideoCodec&& value) { m_codecHasBeenSet = true; m_codec = std::move(value); } /** * Specifies the video codec. This must be equal to one of the enum values defined * by the object VideoCodec. */ inline VideoCodecSettings& WithCodec(const VideoCodec& value) { SetCodec(value); return *this;} /** * Specifies the video codec. This must be equal to one of the enum values defined * by the object VideoCodec. */ inline VideoCodecSettings& WithCodec(VideoCodec&& value) { SetCodec(std::move(value)); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value FRAME_CAPTURE. */ inline const FrameCaptureSettings& GetFrameCaptureSettings() const{ return m_frameCaptureSettings; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value FRAME_CAPTURE. */ inline bool FrameCaptureSettingsHasBeenSet() const { return m_frameCaptureSettingsHasBeenSet; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value FRAME_CAPTURE. */ inline void SetFrameCaptureSettings(const FrameCaptureSettings& value) { m_frameCaptureSettingsHasBeenSet = true; m_frameCaptureSettings = value; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value FRAME_CAPTURE. */ inline void SetFrameCaptureSettings(FrameCaptureSettings&& value) { m_frameCaptureSettingsHasBeenSet = true; m_frameCaptureSettings = std::move(value); } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value FRAME_CAPTURE. */ inline VideoCodecSettings& WithFrameCaptureSettings(const FrameCaptureSettings& value) { SetFrameCaptureSettings(value); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value FRAME_CAPTURE. */ inline VideoCodecSettings& WithFrameCaptureSettings(FrameCaptureSettings&& value) { SetFrameCaptureSettings(std::move(value)); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value H_264. */ inline const H264Settings& GetH264Settings() const{ return m_h264Settings; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value H_264. */ inline bool H264SettingsHasBeenSet() const { return m_h264SettingsHasBeenSet; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value H_264. */ inline void SetH264Settings(const H264Settings& value) { m_h264SettingsHasBeenSet = true; m_h264Settings = value; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value H_264. */ inline void SetH264Settings(H264Settings&& value) { m_h264SettingsHasBeenSet = true; m_h264Settings = std::move(value); } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value H_264. */ inline VideoCodecSettings& WithH264Settings(const H264Settings& value) { SetH264Settings(value); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value H_264. */ inline VideoCodecSettings& WithH264Settings(H264Settings&& value) { SetH264Settings(std::move(value)); return *this;} /** * Settings for H265 codec */ inline const H265Settings& GetH265Settings() const{ return m_h265Settings; } /** * Settings for H265 codec */ inline bool H265SettingsHasBeenSet() const { return m_h265SettingsHasBeenSet; } /** * Settings for H265 codec */ inline void SetH265Settings(const H265Settings& value) { m_h265SettingsHasBeenSet = true; m_h265Settings = value; } /** * Settings for H265 codec */ inline void SetH265Settings(H265Settings&& value) { m_h265SettingsHasBeenSet = true; m_h265Settings = std::move(value); } /** * Settings for H265 codec */ inline VideoCodecSettings& WithH265Settings(const H265Settings& value) { SetH265Settings(value); return *this;} /** * Settings for H265 codec */ inline VideoCodecSettings& WithH265Settings(H265Settings&& value) { SetH265Settings(std::move(value)); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value MPEG2. */ inline const Mpeg2Settings& GetMpeg2Settings() const{ return m_mpeg2Settings; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value MPEG2. */ inline bool Mpeg2SettingsHasBeenSet() const { return m_mpeg2SettingsHasBeenSet; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value MPEG2. */ inline void SetMpeg2Settings(const Mpeg2Settings& value) { m_mpeg2SettingsHasBeenSet = true; m_mpeg2Settings = value; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value MPEG2. */ inline void SetMpeg2Settings(Mpeg2Settings&& value) { m_mpeg2SettingsHasBeenSet = true; m_mpeg2Settings = std::move(value); } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value MPEG2. */ inline VideoCodecSettings& WithMpeg2Settings(const Mpeg2Settings& value) { SetMpeg2Settings(value); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value MPEG2. */ inline VideoCodecSettings& WithMpeg2Settings(Mpeg2Settings&& value) { SetMpeg2Settings(std::move(value)); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value PRORES. */ inline const ProresSettings& GetProresSettings() const{ return m_proresSettings; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value PRORES. */ inline bool ProresSettingsHasBeenSet() const { return m_proresSettingsHasBeenSet; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value PRORES. */ inline void SetProresSettings(const ProresSettings& value) { m_proresSettingsHasBeenSet = true; m_proresSettings = value; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value PRORES. */ inline void SetProresSettings(ProresSettings&& value) { m_proresSettingsHasBeenSet = true; m_proresSettings = std::move(value); } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value PRORES. */ inline VideoCodecSettings& WithProresSettings(const ProresSettings& value) { SetProresSettings(value); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value PRORES. */ inline VideoCodecSettings& WithProresSettings(ProresSettings&& value) { SetProresSettings(std::move(value)); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VC3 */ inline const Vc3Settings& GetVc3Settings() const{ return m_vc3Settings; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VC3 */ inline bool Vc3SettingsHasBeenSet() const { return m_vc3SettingsHasBeenSet; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VC3 */ inline void SetVc3Settings(const Vc3Settings& value) { m_vc3SettingsHasBeenSet = true; m_vc3Settings = value; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VC3 */ inline void SetVc3Settings(Vc3Settings&& value) { m_vc3SettingsHasBeenSet = true; m_vc3Settings = std::move(value); } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VC3 */ inline VideoCodecSettings& WithVc3Settings(const Vc3Settings& value) { SetVc3Settings(value); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VC3 */ inline VideoCodecSettings& WithVc3Settings(Vc3Settings&& value) { SetVc3Settings(std::move(value)); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP8. */ inline const Vp8Settings& GetVp8Settings() const{ return m_vp8Settings; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP8. */ inline bool Vp8SettingsHasBeenSet() const { return m_vp8SettingsHasBeenSet; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP8. */ inline void SetVp8Settings(const Vp8Settings& value) { m_vp8SettingsHasBeenSet = true; m_vp8Settings = value; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP8. */ inline void SetVp8Settings(Vp8Settings&& value) { m_vp8SettingsHasBeenSet = true; m_vp8Settings = std::move(value); } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP8. */ inline VideoCodecSettings& WithVp8Settings(const Vp8Settings& value) { SetVp8Settings(value); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP8. */ inline VideoCodecSettings& WithVp8Settings(Vp8Settings&& value) { SetVp8Settings(std::move(value)); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP9. */ inline const Vp9Settings& GetVp9Settings() const{ return m_vp9Settings; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP9. */ inline bool Vp9SettingsHasBeenSet() const { return m_vp9SettingsHasBeenSet; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP9. */ inline void SetVp9Settings(const Vp9Settings& value) { m_vp9SettingsHasBeenSet = true; m_vp9Settings = value; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP9. */ inline void SetVp9Settings(Vp9Settings&& value) { m_vp9SettingsHasBeenSet = true; m_vp9Settings = std::move(value); } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP9. */ inline VideoCodecSettings& WithVp9Settings(const Vp9Settings& value) { SetVp9Settings(value); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value VP9. */ inline VideoCodecSettings& WithVp9Settings(Vp9Settings&& value) { SetVp9Settings(std::move(value)); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value XAVC. */ inline const XavcSettings& GetXavcSettings() const{ return m_xavcSettings; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value XAVC. */ inline bool XavcSettingsHasBeenSet() const { return m_xavcSettingsHasBeenSet; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value XAVC. */ inline void SetXavcSettings(const XavcSettings& value) { m_xavcSettingsHasBeenSet = true; m_xavcSettings = value; } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value XAVC. */ inline void SetXavcSettings(XavcSettings&& value) { m_xavcSettingsHasBeenSet = true; m_xavcSettings = std::move(value); } /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value XAVC. */ inline VideoCodecSettings& WithXavcSettings(const XavcSettings& value) { SetXavcSettings(value); return *this;} /** * Required when you set (Codec) under (VideoDescription)>(CodecSettings) to the * value XAVC. */ inline VideoCodecSettings& WithXavcSettings(XavcSettings&& value) { SetXavcSettings(std::move(value)); return *this;} private: Av1Settings m_av1Settings; bool m_av1SettingsHasBeenSet; AvcIntraSettings m_avcIntraSettings; bool m_avcIntraSettingsHasBeenSet; VideoCodec m_codec; bool m_codecHasBeenSet; FrameCaptureSettings m_frameCaptureSettings; bool m_frameCaptureSettingsHasBeenSet; H264Settings m_h264Settings; bool m_h264SettingsHasBeenSet; H265Settings m_h265Settings; bool m_h265SettingsHasBeenSet; Mpeg2Settings m_mpeg2Settings; bool m_mpeg2SettingsHasBeenSet; ProresSettings m_proresSettings; bool m_proresSettingsHasBeenSet; Vc3Settings m_vc3Settings; bool m_vc3SettingsHasBeenSet; Vp8Settings m_vp8Settings; bool m_vp8SettingsHasBeenSet; Vp9Settings m_vp9Settings; bool m_vp9SettingsHasBeenSet; XavcSettings m_xavcSettings; bool m_xavcSettingsHasBeenSet; }; } // namespace Model } // namespace MediaConvert } // namespace Aws