|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
37 #include "illegalArgumentException.hpp"
38 #include "videoOutputPortConfig.hpp"
44 const char *_names[] = {
49 inline const bool isValid(
int id) {
77 return VideoOutputPortConfig::getInstance().getAspectRatio(
id);
99 for (
size_t i = 0; i <
dsUTL_DIM(_names); i++) {
100 if (name.compare(_names[i]) == 0) {
124 _name = std::string(_names[
id]);
int _id
Indicates the id of the instance inheriting this class.
AspectRatio(int id)
This function is a parameterised constructor. It initializes the instance with the specified id and a...
@ dsVIDEO_ASPECT_RATIO_16x9
This file defines AspectRatio class for managing aspect ratio types.
Device Settings HAL types.
#define dsVideoPortAspectRatio_isValid(t)
static const int k16x9
Indicates 16x9 aspect ratio.
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 AspectRatio & getInstance(int id)
This function gets the instance of the AspectRatio against the id specified, only if the id passed is...
std::string _name
Indicates the name string of the instance inheriting this class.
static const int k4x3
Indicates 4x3 aspect ratio.
@ dsVIDEO_ASPECT_RATIO_4x3
static const int kMax
Indicates maximum number of aspect ratios supported.
This class extends DSConstant to implement AspectRatio. It manages the aspect ratios of the videos.
This class extends Exception class to manage the expections caused due to illegal arguments.
#define dsUTL_DIM(arr)
Device Settings general Array dimension calculation inline definition.
virtual ~AspectRatio()
This function is the default destructor of AspectRatio class.
@ dsVIDEO_ASPECT_RATIO_MAX