AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
APLVideoConfiguration.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDK_APLCAPABILITYCOMMONINTERFACES_APLVIDEOCONFIGURATION_H_
17 #define ACSDK_APLCAPABILITYCOMMONINTERFACES_APLVIDEOCONFIGURATION_H_
18 
19 #include <set>
20 #include <string>
21 
23 
24 namespace alexaClientSDK {
25 namespace aplCapabilityCommonInterfaces {
30 struct VideoSettings {
32  enum class Codec {
34  H_264_41,
35 
37  H_264_42
38  };
39 
41  std::set<Codec> codecs;
42 
48  static const std::string codecToString(const Codec codec) {
49  switch (codec) {
50  case Codec::H_264_41:
51  return "H_264_41";
52  case Codec::H_264_42:
53  return "H_264_42";
54  }
55  return "";
56  }
57 
65  if (codec == "H_264_41") {
67  } else if (codec == "H_264_42") {
69  }
70  return codecOpt;
71  }
72 };
73 
74 } // namespace aplCapabilityCommonInterfaces
75 } // namespace alexaClientSDK
76 
77 #endif // ACSDK_APLCAPABILITYCOMMONINTERFACES_APLVIDEOCONFIGURATION_H_
::std::string string
Definition: gtest-port.h:1097
static const std::string codecToString(const Codec codec)
Definition: APLVideoConfiguration.h:48
H.264 at a maximum resolution of 1080p @ 30fps (codec level 4.1)
std::set< Codec > codecs
A collection of one or more supported codecs by the device.
Definition: APLVideoConfiguration.h:41
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
void set(const ValueT &value)
Definition: Optional.h:185
Codec
Enum class defining the supported video codecs.
Definition: APLVideoConfiguration.h:32
static const alexaClientSDK::avsCommon::utils::Optional< Codec > stringToCodec(const std::string codec)
Definition: APLVideoConfiguration.h:63
H.264 at a maximum resolution of 1080p @ 60fps (codec level 4.2)

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0