/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MediaConvert { namespace Model { /** * Settings for embedded captions Source

See Also:

AWS * API Reference

*/ class EmbeddedSourceSettings { public: AWS_MEDIACONVERT_API EmbeddedSourceSettings(); AWS_MEDIACONVERT_API EmbeddedSourceSettings(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIACONVERT_API EmbeddedSourceSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const; /** * Specify whether this set of input captions appears in your outputs in both 608 * and 708 format. If you choose Upconvert, MediaConvert includes the captions data * in two ways: it passes the 608 data through using the 608 compatibility bytes * fields of the 708 wrapper, and it also translates the 608 data into 708. */ inline const EmbeddedConvert608To708& GetConvert608To708() const{ return m_convert608To708; } /** * Specify whether this set of input captions appears in your outputs in both 608 * and 708 format. If you choose Upconvert, MediaConvert includes the captions data * in two ways: it passes the 608 data through using the 608 compatibility bytes * fields of the 708 wrapper, and it also translates the 608 data into 708. */ inline bool Convert608To708HasBeenSet() const { return m_convert608To708HasBeenSet; } /** * Specify whether this set of input captions appears in your outputs in both 608 * and 708 format. If you choose Upconvert, MediaConvert includes the captions data * in two ways: it passes the 608 data through using the 608 compatibility bytes * fields of the 708 wrapper, and it also translates the 608 data into 708. */ inline void SetConvert608To708(const EmbeddedConvert608To708& value) { m_convert608To708HasBeenSet = true; m_convert608To708 = value; } /** * Specify whether this set of input captions appears in your outputs in both 608 * and 708 format. If you choose Upconvert, MediaConvert includes the captions data * in two ways: it passes the 608 data through using the 608 compatibility bytes * fields of the 708 wrapper, and it also translates the 608 data into 708. */ inline void SetConvert608To708(EmbeddedConvert608To708&& value) { m_convert608To708HasBeenSet = true; m_convert608To708 = std::move(value); } /** * Specify whether this set of input captions appears in your outputs in both 608 * and 708 format. If you choose Upconvert, MediaConvert includes the captions data * in two ways: it passes the 608 data through using the 608 compatibility bytes * fields of the 708 wrapper, and it also translates the 608 data into 708. */ inline EmbeddedSourceSettings& WithConvert608To708(const EmbeddedConvert608To708& value) { SetConvert608To708(value); return *this;} /** * Specify whether this set of input captions appears in your outputs in both 608 * and 708 format. If you choose Upconvert, MediaConvert includes the captions data * in two ways: it passes the 608 data through using the 608 compatibility bytes * fields of the 708 wrapper, and it also translates the 608 data into 708. */ inline EmbeddedSourceSettings& WithConvert608To708(EmbeddedConvert608To708&& value) { SetConvert608To708(std::move(value)); return *this;} /** * Specifies the 608/708 channel number within the video track from which to * extract captions. Unused for passthrough. */ inline int GetSource608ChannelNumber() const{ return m_source608ChannelNumber; } /** * Specifies the 608/708 channel number within the video track from which to * extract captions. Unused for passthrough. */ inline bool Source608ChannelNumberHasBeenSet() const { return m_source608ChannelNumberHasBeenSet; } /** * Specifies the 608/708 channel number within the video track from which to * extract captions. Unused for passthrough. */ inline void SetSource608ChannelNumber(int value) { m_source608ChannelNumberHasBeenSet = true; m_source608ChannelNumber = value; } /** * Specifies the 608/708 channel number within the video track from which to * extract captions. Unused for passthrough. */ inline EmbeddedSourceSettings& WithSource608ChannelNumber(int value) { SetSource608ChannelNumber(value); return *this;} /** * Specifies the video track index used for extracting captions. The system only * supports one input video track, so this should always be set to '1'. */ inline int GetSource608TrackNumber() const{ return m_source608TrackNumber; } /** * Specifies the video track index used for extracting captions. The system only * supports one input video track, so this should always be set to '1'. */ inline bool Source608TrackNumberHasBeenSet() const { return m_source608TrackNumberHasBeenSet; } /** * Specifies the video track index used for extracting captions. The system only * supports one input video track, so this should always be set to '1'. */ inline void SetSource608TrackNumber(int value) { m_source608TrackNumberHasBeenSet = true; m_source608TrackNumber = value; } /** * Specifies the video track index used for extracting captions. The system only * supports one input video track, so this should always be set to '1'. */ inline EmbeddedSourceSettings& WithSource608TrackNumber(int value) { SetSource608TrackNumber(value); return *this;} /** * By default, the service terminates any unterminated captions at the end of each * input. If you want the caption to continue onto your next input, disable this * setting. */ inline const EmbeddedTerminateCaptions& GetTerminateCaptions() const{ return m_terminateCaptions; } /** * By default, the service terminates any unterminated captions at the end of each * input. If you want the caption to continue onto your next input, disable this * setting. */ inline bool TerminateCaptionsHasBeenSet() const { return m_terminateCaptionsHasBeenSet; } /** * By default, the service terminates any unterminated captions at the end of each * input. If you want the caption to continue onto your next input, disable this * setting. */ inline void SetTerminateCaptions(const EmbeddedTerminateCaptions& value) { m_terminateCaptionsHasBeenSet = true; m_terminateCaptions = value; } /** * By default, the service terminates any unterminated captions at the end of each * input. If you want the caption to continue onto your next input, disable this * setting. */ inline void SetTerminateCaptions(EmbeddedTerminateCaptions&& value) { m_terminateCaptionsHasBeenSet = true; m_terminateCaptions = std::move(value); } /** * By default, the service terminates any unterminated captions at the end of each * input. If you want the caption to continue onto your next input, disable this * setting. */ inline EmbeddedSourceSettings& WithTerminateCaptions(const EmbeddedTerminateCaptions& value) { SetTerminateCaptions(value); return *this;} /** * By default, the service terminates any unterminated captions at the end of each * input. If you want the caption to continue onto your next input, disable this * setting. */ inline EmbeddedSourceSettings& WithTerminateCaptions(EmbeddedTerminateCaptions&& value) { SetTerminateCaptions(std::move(value)); return *this;} private: EmbeddedConvert608To708 m_convert608To708; bool m_convert608To708HasBeenSet = false; int m_source608ChannelNumber; bool m_source608ChannelNumberHasBeenSet = false; int m_source608TrackNumber; bool m_source608TrackNumberHasBeenSet = false; EmbeddedTerminateCaptions m_terminateCaptions; bool m_terminateCaptionsHasBeenSet = false; }; } // namespace Model } // namespace MediaConvert } // namespace Aws