AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
Av1Settings.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/model/AfdSignaling.h>
9#include <aws/medialive/model/Av1ColorSpaceSettings.h>
10#include <aws/medialive/model/FixedAfd.h>
11#include <aws/medialive/model/Av1GopSizeUnits.h>
12#include <aws/medialive/model/Av1Level.h>
13#include <aws/medialive/model/Av1LookAheadRateControl.h>
14#include <aws/medialive/model/Av1SceneChangeDetect.h>
15#include <aws/medialive/model/TimecodeBurninSettings.h>
16#include <aws/medialive/model/Av1RateControlMode.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace MediaLive
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_MEDIALIVE_API Av1Settings() = default;
43 AWS_MEDIALIVE_API Av1Settings(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MEDIALIVE_API Av1Settings& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
58 inline AfdSignaling GetAfdSignaling() const { return m_afdSignaling; }
59 inline bool AfdSignalingHasBeenSet() const { return m_afdSignalingHasBeenSet; }
60 inline void SetAfdSignaling(AfdSignaling value) { m_afdSignalingHasBeenSet = true; m_afdSignaling = value; }
61 inline Av1Settings& WithAfdSignaling(AfdSignaling value) { SetAfdSignaling(value); return *this;}
63
65
68 inline int GetBufSize() const { return m_bufSize; }
69 inline bool BufSizeHasBeenSet() const { return m_bufSizeHasBeenSet; }
70 inline void SetBufSize(int value) { m_bufSizeHasBeenSet = true; m_bufSize = value; }
71 inline Av1Settings& WithBufSize(int value) { SetBufSize(value); return *this;}
73
75
78 inline const Av1ColorSpaceSettings& GetColorSpaceSettings() const { return m_colorSpaceSettings; }
79 inline bool ColorSpaceSettingsHasBeenSet() const { return m_colorSpaceSettingsHasBeenSet; }
80 template<typename ColorSpaceSettingsT = Av1ColorSpaceSettings>
81 void SetColorSpaceSettings(ColorSpaceSettingsT&& value) { m_colorSpaceSettingsHasBeenSet = true; m_colorSpaceSettings = std::forward<ColorSpaceSettingsT>(value); }
82 template<typename ColorSpaceSettingsT = Av1ColorSpaceSettings>
83 Av1Settings& WithColorSpaceSettings(ColorSpaceSettingsT&& value) { SetColorSpaceSettings(std::forward<ColorSpaceSettingsT>(value)); return *this;}
85
87
91 inline FixedAfd GetFixedAfd() const { return m_fixedAfd; }
92 inline bool FixedAfdHasBeenSet() const { return m_fixedAfdHasBeenSet; }
93 inline void SetFixedAfd(FixedAfd value) { m_fixedAfdHasBeenSet = true; m_fixedAfd = value; }
94 inline Av1Settings& WithFixedAfd(FixedAfd value) { SetFixedAfd(value); return *this;}
96
98
102 inline int GetFramerateDenominator() const { return m_framerateDenominator; }
103 inline bool FramerateDenominatorHasBeenSet() const { return m_framerateDenominatorHasBeenSet; }
104 inline void SetFramerateDenominator(int value) { m_framerateDenominatorHasBeenSet = true; m_framerateDenominator = value; }
105 inline Av1Settings& WithFramerateDenominator(int value) { SetFramerateDenominator(value); return *this;}
107
109
113 inline int GetFramerateNumerator() const { return m_framerateNumerator; }
114 inline bool FramerateNumeratorHasBeenSet() const { return m_framerateNumeratorHasBeenSet; }
115 inline void SetFramerateNumerator(int value) { m_framerateNumeratorHasBeenSet = true; m_framerateNumerator = value; }
116 inline Av1Settings& WithFramerateNumerator(int value) { SetFramerateNumerator(value); return *this;}
118
120
127 inline double GetGopSize() const { return m_gopSize; }
128 inline bool GopSizeHasBeenSet() const { return m_gopSizeHasBeenSet; }
129 inline void SetGopSize(double value) { m_gopSizeHasBeenSet = true; m_gopSize = value; }
130 inline Av1Settings& WithGopSize(double value) { SetGopSize(value); return *this;}
132
134
138 inline Av1GopSizeUnits GetGopSizeUnits() const { return m_gopSizeUnits; }
139 inline bool GopSizeUnitsHasBeenSet() const { return m_gopSizeUnitsHasBeenSet; }
140 inline void SetGopSizeUnits(Av1GopSizeUnits value) { m_gopSizeUnitsHasBeenSet = true; m_gopSizeUnits = value; }
141 inline Av1Settings& WithGopSizeUnits(Av1GopSizeUnits value) { SetGopSizeUnits(value); return *this;}
143
145
149 inline Av1Level GetLevel() const { return m_level; }
150 inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
151 inline void SetLevel(Av1Level value) { m_levelHasBeenSet = true; m_level = value; }
152 inline Av1Settings& WithLevel(Av1Level value) { SetLevel(value); return *this;}
154
156
160 inline Av1LookAheadRateControl GetLookAheadRateControl() const { return m_lookAheadRateControl; }
161 inline bool LookAheadRateControlHasBeenSet() const { return m_lookAheadRateControlHasBeenSet; }
162 inline void SetLookAheadRateControl(Av1LookAheadRateControl value) { m_lookAheadRateControlHasBeenSet = true; m_lookAheadRateControl = value; }
165
167
172 inline int GetMaxBitrate() const { return m_maxBitrate; }
173 inline bool MaxBitrateHasBeenSet() const { return m_maxBitrateHasBeenSet; }
174 inline void SetMaxBitrate(int value) { m_maxBitrateHasBeenSet = true; m_maxBitrate = value; }
175 inline Av1Settings& WithMaxBitrate(int value) { SetMaxBitrate(value); return *this;}
177
179
192 inline int GetMinIInterval() const { return m_minIInterval; }
193 inline bool MinIIntervalHasBeenSet() const { return m_minIIntervalHasBeenSet; }
194 inline void SetMinIInterval(int value) { m_minIIntervalHasBeenSet = true; m_minIInterval = value; }
195 inline Av1Settings& WithMinIInterval(int value) { SetMinIInterval(value); return *this;}
197
199
202 inline int GetParDenominator() const { return m_parDenominator; }
203 inline bool ParDenominatorHasBeenSet() const { return m_parDenominatorHasBeenSet; }
204 inline void SetParDenominator(int value) { m_parDenominatorHasBeenSet = true; m_parDenominator = value; }
205 inline Av1Settings& WithParDenominator(int value) { SetParDenominator(value); return *this;}
207
209
212 inline int GetParNumerator() const { return m_parNumerator; }
213 inline bool ParNumeratorHasBeenSet() const { return m_parNumeratorHasBeenSet; }
214 inline void SetParNumerator(int value) { m_parNumeratorHasBeenSet = true; m_parNumerator = value; }
215 inline Av1Settings& WithParNumerator(int value) { SetParNumerator(value); return *this;}
217
219
242 inline int GetQvbrQualityLevel() const { return m_qvbrQualityLevel; }
243 inline bool QvbrQualityLevelHasBeenSet() const { return m_qvbrQualityLevelHasBeenSet; }
244 inline void SetQvbrQualityLevel(int value) { m_qvbrQualityLevelHasBeenSet = true; m_qvbrQualityLevel = value; }
245 inline Av1Settings& WithQvbrQualityLevel(int value) { SetQvbrQualityLevel(value); return *this;}
247
249
253 inline Av1SceneChangeDetect GetSceneChangeDetect() const { return m_sceneChangeDetect; }
254 inline bool SceneChangeDetectHasBeenSet() const { return m_sceneChangeDetectHasBeenSet; }
255 inline void SetSceneChangeDetect(Av1SceneChangeDetect value) { m_sceneChangeDetectHasBeenSet = true; m_sceneChangeDetect = value; }
258
260
264 inline const TimecodeBurninSettings& GetTimecodeBurninSettings() const { return m_timecodeBurninSettings; }
265 inline bool TimecodeBurninSettingsHasBeenSet() const { return m_timecodeBurninSettingsHasBeenSet; }
266 template<typename TimecodeBurninSettingsT = TimecodeBurninSettings>
267 void SetTimecodeBurninSettings(TimecodeBurninSettingsT&& value) { m_timecodeBurninSettingsHasBeenSet = true; m_timecodeBurninSettings = std::forward<TimecodeBurninSettingsT>(value); }
268 template<typename TimecodeBurninSettingsT = TimecodeBurninSettings>
269 Av1Settings& WithTimecodeBurninSettings(TimecodeBurninSettingsT&& value) { SetTimecodeBurninSettings(std::forward<TimecodeBurninSettingsT>(value)); return *this;}
271
273
277 inline int GetBitrate() const { return m_bitrate; }
278 inline bool BitrateHasBeenSet() const { return m_bitrateHasBeenSet; }
279 inline void SetBitrate(int value) { m_bitrateHasBeenSet = true; m_bitrate = value; }
280 inline Av1Settings& WithBitrate(int value) { SetBitrate(value); return *this;}
282
284
297 inline Av1RateControlMode GetRateControlMode() const { return m_rateControlMode; }
298 inline bool RateControlModeHasBeenSet() const { return m_rateControlModeHasBeenSet; }
299 inline void SetRateControlMode(Av1RateControlMode value) { m_rateControlModeHasBeenSet = true; m_rateControlMode = value; }
302 private:
303
304 AfdSignaling m_afdSignaling{AfdSignaling::NOT_SET};
305 bool m_afdSignalingHasBeenSet = false;
306
307 int m_bufSize{0};
308 bool m_bufSizeHasBeenSet = false;
309
310 Av1ColorSpaceSettings m_colorSpaceSettings;
311 bool m_colorSpaceSettingsHasBeenSet = false;
312
313 FixedAfd m_fixedAfd{FixedAfd::NOT_SET};
314 bool m_fixedAfdHasBeenSet = false;
315
316 int m_framerateDenominator{0};
317 bool m_framerateDenominatorHasBeenSet = false;
318
319 int m_framerateNumerator{0};
320 bool m_framerateNumeratorHasBeenSet = false;
321
322 double m_gopSize{0.0};
323 bool m_gopSizeHasBeenSet = false;
324
326 bool m_gopSizeUnitsHasBeenSet = false;
327
329 bool m_levelHasBeenSet = false;
330
332 bool m_lookAheadRateControlHasBeenSet = false;
333
334 int m_maxBitrate{0};
335 bool m_maxBitrateHasBeenSet = false;
336
337 int m_minIInterval{0};
338 bool m_minIIntervalHasBeenSet = false;
339
340 int m_parDenominator{0};
341 bool m_parDenominatorHasBeenSet = false;
342
343 int m_parNumerator{0};
344 bool m_parNumeratorHasBeenSet = false;
345
346 int m_qvbrQualityLevel{0};
347 bool m_qvbrQualityLevelHasBeenSet = false;
348
350 bool m_sceneChangeDetectHasBeenSet = false;
351
352 TimecodeBurninSettings m_timecodeBurninSettings;
353 bool m_timecodeBurninSettingsHasBeenSet = false;
354
355 int m_bitrate{0};
356 bool m_bitrateHasBeenSet = false;
357
359 bool m_rateControlModeHasBeenSet = false;
360 };
361
362} // namespace Model
363} // namespace MediaLive
364} // namespace Aws
void SetRateControlMode(Av1RateControlMode value)
Av1Settings & WithAfdSignaling(AfdSignaling value)
Definition Av1Settings.h:61
Av1Settings & WithFixedAfd(FixedAfd value)
Definition Av1Settings.h:94
Av1Settings & WithSceneChangeDetect(Av1SceneChangeDetect value)
AWS_MEDIALIVE_API Av1Settings & operator=(Aws::Utils::Json::JsonView jsonValue)
Av1Settings & WithParDenominator(int value)
void SetAfdSignaling(AfdSignaling value)
Definition Av1Settings.h:60
Av1RateControlMode GetRateControlMode() const
const Av1ColorSpaceSettings & GetColorSpaceSettings() const
Definition Av1Settings.h:78
AWS_MEDIALIVE_API Av1Settings()=default
Av1Settings & WithFramerateNumerator(int value)
Av1Settings & WithGopSizeUnits(Av1GopSizeUnits value)
Av1Settings & WithBufSize(int value)
Definition Av1Settings.h:71
Av1GopSizeUnits GetGopSizeUnits() const
Av1Settings & WithRateControlMode(Av1RateControlMode value)
AfdSignaling GetAfdSignaling() const
Definition Av1Settings.h:58
void SetFixedAfd(FixedAfd value)
Definition Av1Settings.h:93
Av1Settings & WithParNumerator(int value)
Av1Settings & WithLookAheadRateControl(Av1LookAheadRateControl value)
Av1Settings & WithMaxBitrate(int value)
AWS_MEDIALIVE_API Av1Settings(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const TimecodeBurninSettings & GetTimecodeBurninSettings() const
Av1Settings & WithQvbrQualityLevel(int value)
void SetColorSpaceSettings(ColorSpaceSettingsT &&value)
Definition Av1Settings.h:81
void SetLookAheadRateControl(Av1LookAheadRateControl value)
Av1Settings & WithColorSpaceSettings(ColorSpaceSettingsT &&value)
Definition Av1Settings.h:83
Av1Settings & WithTimecodeBurninSettings(TimecodeBurninSettingsT &&value)
Av1Settings & WithBitrate(int value)
Av1SceneChangeDetect GetSceneChangeDetect() const
void SetSceneChangeDetect(Av1SceneChangeDetect value)
Av1Settings & WithFramerateDenominator(int value)
void SetGopSizeUnits(Av1GopSizeUnits value)
Av1Settings & WithMinIInterval(int value)
Av1Settings & WithLevel(Av1Level value)
Av1LookAheadRateControl GetLookAheadRateControl() const
void SetTimecodeBurninSettings(TimecodeBurninSettingsT &&value)
Av1Settings & WithGopSize(double value)
Aws::Utils::Json::JsonValue JsonValue