|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
39 #include "illegalArgumentException.hpp"
40 #include "videoOutputPortConfig.hpp"
44 const char *_names[] = {
55 inline const bool isValid(
int id) {
88 return VideoOutputPortConfig::getInstance().getPixelResolution(
id);
111 _name = std::string(_names[
id]);
int _id
Indicates the id of the instance inheriting this class.
static const int kMax
Indicates the maximum number of video resolutions supported.
@ dsVIDEO_PIXELRES_720x576
static const int k1280x720
Indicates 1280x720 video resolution.
This class extends DSConstant to manages the pixel resolution of the video.
Device Settings HAL types.
@ dsVIDEO_PIXELRES_1280x720
static const PixelResolution & getInstance(int id)
This function gets the instance of PixelResolution against the specified id, only if the id passed is...
static bool isValid(int min, int max, int val)
This function checks if the given value lies between min and max values provided.
static const int k3840x2160
Indicates 3840x2160 video resolution.
Device Settings HAL utilities.
static const int k1920x1080
Indicates 1920x1080 video resolution.
std::string _name
Indicates the name string of the instance inheriting this class.
static const int k720x480
Indicates 720x480 video resolution.
#define dsVideoPortPixelResolution_isValid(t)
@ dsVIDEO_PIXELRES_720x480
static const int k4096x2160
Indicates 4096x2160 video resolution.
This class extends Exception class to manage the expections caused due to illegal arguments.
static const int k720x576
Indicates 720x576 video resolution.
virtual ~PixelResolution()
This function is the default destructor for PixelResolution.
@ dsVIDEO_PIXELRES_1920x1080
PixelResolution(int id)
This function is a parameterised constructor for PixelResolution. It initializes the instance with th...
@ dsVIDEO_PIXELRES_4096x2160
#define dsUTL_DIM(arr)
Device Settings general Array dimension calculation inline definition.
This file defines PixelResolution class for managing video resolution types.
@ dsVIDEO_PIXELRES_3840x2160