RDK Documentation (Open Sourced RDK Components)
stereoScopicMode.hpp
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 /**
22  * @file stereoScopicMode.hpp
23  * @brief This file defines StereoScopicMode class to manage the video stereoscopy types.
24  */
25 
26 
27 
28 /**
29 * @defgroup devicesettings
30 * @{
31 * @defgroup ds
32 * @{
33 **/
34 
35 
36 #ifndef _DS_STEREOSCOPICMODE_HPP_
37 #define _DS_STEREOSCOPICMODE_HPP_
38 
39 #include "dsConstant.hpp"
40 #include <string>
41 
42 namespace device {
43 
44 /**
45  * @class StereoScopicMode
46  * @brief This class extentds DSConstant to implement StereoScopicMode.
47  * It manages the stereoscopic mode of the video.
48  * @ingroup devicesettingsclass
49  */
50 class StereoScopicMode : public DSConstant {
51 
52 public:
53  static const int kUnkown; //!< Indicates video stereoscopy of unknown type.
54  static const int k2D; //!< Indicates video stereoscopy of type 2D.
55  static const int k3DSidebySide; //!< Indicates video stereoscopy of type 3D Side-by-Side.
56  static const int k3dTopAndBottom; //!< Indicates video stereoscopy of type 3D top and bottom.
57  static const int kMax; //!< Indicates the maximum number of supported stereoscopy types.
58 
59  static const StereoScopicMode & getInstance(int id);
60  static const StereoScopicMode & getInstance(const std::string &name);
61 
62  StereoScopicMode(int id);
63  virtual ~StereoScopicMode();
64 };
65 
66 }
67 
68 #endif /* _DS_STEREOSCOPICMODE_HPP_ */
69 
70 
71 /** @} */
72 /** @} */
device::StereoScopicMode
This class extentds DSConstant to implement StereoScopicMode. It manages the stereoscopic mode of the...
Definition: stereoScopicMode.hpp:50
device::StereoScopicMode::kMax
static const int kMax
Indicates the maximum number of supported stereoscopy types.
Definition: stereoScopicMode.hpp:57
device::StereoScopicMode::StereoScopicMode
StereoScopicMode(int id)
This function is a parameterised constructor of StereoScopicMode class. It initializes the instance w...
Definition: stereoScopicMode.cpp:100
dsConstant.hpp
This file defines DSConstant class which is inherited by most of the device settings classes.
device::StereoScopicMode::kUnkown
static const int kUnkown
Indicates video stereoscopy of unknown type.
Definition: stereoScopicMode.hpp:53
device::DSConstant
This class is used to store and manage the names and id's. It is derived by many classes like VideoRe...
Definition: dsConstant.hpp:52
device::StereoScopicMode::getInstance
static const StereoScopicMode & getInstance(int id)
This function gets an instance of the StereoScopicMode against the specified id, only if the id passe...
Definition: stereoScopicMode.cpp:78
device::StereoScopicMode::~StereoScopicMode
virtual ~StereoScopicMode()
This function is the default destructor for StereoScopicMode class.
Definition: stereoScopicMode.cpp:118
device::StereoScopicMode::k3DSidebySide
static const int k3DSidebySide
Indicates video stereoscopy of type 3D Side-by-Side.
Definition: stereoScopicMode.hpp:55
device::StereoScopicMode::k3dTopAndBottom
static const int k3dTopAndBottom
Indicates video stereoscopy of type 3D top and bottom.
Definition: stereoScopicMode.hpp:56
device::StereoScopicMode::k2D
static const int k2D
Indicates video stereoscopy of type 2D.
Definition: stereoScopicMode.hpp:54