|
RDK Documentation (Open Sourced RDK Components)
|
31 #include "illegalArgumentException.hpp"
32 #include "videoOutputPortConfig.hpp"
38 const float _values[] = {
49 const char * _names[] = {
61 inline const bool isValid(
int id) {
82 const FrameRate & FrameRate::getInstance(
int id)
85 return VideoOutputPortConfig::getInstance().getFrameRate(
id);
88 throw IllegalArgumentException();
92 FrameRate::FrameRate(
int id)
96 _name = std::string(_names[
id]);
100 throw IllegalArgumentException();
105 FrameRate::FrameRate(
float value) : _value(value){
106 if (_value == 24.0) {
109 else if (_value == 24.0) {
112 else if (_value == 24.0) {
115 else if (_value == 24.0) {
118 else if (_value == 24.0) {
121 else if (_value == 24.0) {
124 else if (_value == 24.0) {
127 else if (_value == 24.0) {
130 else if (_value == 24.0) {
134 throw IllegalArgumentException();
137 _name = std::string(_names[_id]);
141 FrameRate::~FrameRate() {
int _id
Indicates the id of the instance inheriting this class.
@ dsVIDEO_FRAMERATE_UNKNOWN
@ dsVIDEO_FRAMERATE_23dot98
float _value
Indicates the supported frame rate value in fps.
#define dsVideoPortFrameRate_isValid(t)
@ dsVIDEO_FRAMERATE_59dot94
Device Settings HAL types.
@ dsVIDEO_FRAMERATE_29dot97
static const int k29dot97
Indicates video frame rate of 29.97 fps.
static bool isValid(int min, int max, int val)
This function checks if the given value lies between min and max values provided.
Device Settings HAL utilities.
static const int k50
Indicates video frame rate of 50 fps.
static const int k59dot94
Indicates video frame rate of 59.94 fps.
static const int k24
Indicates video frame rate of 24 fps.
static const int k60
Indicates video frame rate of 60 fps.
This file defines FrameRate class to manage the video frame rate types.
static const int kMax
Indicates maximum number of frame rates supported.
std::string _name
Indicates the name string of the instance inheriting this class.
static const int k23dot98
Indicates video frame rate of 23.98 fps.
static const int kUnknown
Indicates video frame rate of unknown type.
#define dsUTL_DIM(arr)
Device Settings general Array dimension calculation inline definition.
static const int k30
Indicates video frame rate of 30 fps.
static const int k25
Indicates video frame rate of 25 fps.