RDK Documentation (Open Sourced RDK Components)
frameRate.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 frameRate.hpp
23  * @brief This file defines FrameRate class to manage the video frame rate types.
24  */
25 
26 
27 
28 /**
29 * @defgroup devicesettings
30 * @{
31 * @defgroup ds
32 * @{
33 **/
34 
35 
36 #ifndef _DS_FRAMERATE_HPP_
37 #define _DS_FRAMERATE_HPP_
38 
39 #include "dsConstant.hpp"
40 #include <string>
41 
42 namespace device {
43 
44 /**
45  * @class FrameRate
46  * @brief This class extends DSConstant to handle the video frame rate.
47  * @ingroup devicesettingsclass
48  */
49 class FrameRate : public DSConstant {
50  float _value; //!< Indicates the supported frame rate value in fps.
51 public:
52  static const int kUnknown; //!< Indicates video frame rate of unknown type.
53  static const int k24; //!< Indicates video frame rate of 24 fps.
54  static const int k25; //!< Indicates video frame rate of 25 fps.
55  static const int k30; //!< Indicates video frame rate of 30 fps.
56  static const int k60; //!< Indicates video frame rate of 60 fps.
57  static const int k23dot98; //!< Indicates video frame rate of 23.98 fps.
58  static const int k29dot97; //!< Indicates video frame rate of 29.97 fps.
59  static const int k50; //!< Indicates video frame rate of 50 fps.
60  static const int k59dot94; //!< Indicates video frame rate of 59.94 fps.
61  static const int kMax; //!< Indicates maximum number of frame rates supported.
62 
63  static const FrameRate & getInstance(int id);
64  static const FrameRate & getInstance(const std::string &name);
65 
66  FrameRate(float value);
67  FrameRate(int id);
68  virtual ~FrameRate();
69 };
70 
71 }
72 
73 #endif /* _DS_FRAMERATE_HPP_ */
74 
75 
76 /** @} */
77 /** @} */
device::FrameRate::_value
float _value
Indicates the supported frame rate value in fps.
Definition: frameRate.hpp:50
dsConstant.hpp
This file defines DSConstant class which is inherited by most of the device settings classes.
device::FrameRate
This class extends DSConstant to handle the video frame rate.
Definition: frameRate.hpp:49
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::FrameRate::k29dot97
static const int k29dot97
Indicates video frame rate of 29.97 fps.
Definition: frameRate.hpp:58
device::FrameRate::k50
static const int k50
Indicates video frame rate of 50 fps.
Definition: frameRate.hpp:59
device::FrameRate::k59dot94
static const int k59dot94
Indicates video frame rate of 59.94 fps.
Definition: frameRate.hpp:60
device::FrameRate::k24
static const int k24
Indicates video frame rate of 24 fps.
Definition: frameRate.hpp:53
device::FrameRate::k60
static const int k60
Indicates video frame rate of 60 fps.
Definition: frameRate.hpp:56
device::FrameRate::kMax
static const int kMax
Indicates maximum number of frame rates supported.
Definition: frameRate.hpp:61
device::FrameRate::k23dot98
static const int k23dot98
Indicates video frame rate of 23.98 fps.
Definition: frameRate.hpp:57
device::FrameRate::kUnknown
static const int kUnknown
Indicates video frame rate of unknown type.
Definition: frameRate.hpp:52
device::FrameRate::k30
static const int k30
Indicates video frame rate of 30 fps.
Definition: frameRate.hpp:55
device::FrameRate::k25
static const int k25
Indicates video frame rate of 25 fps.
Definition: frameRate.hpp:54