|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
32 #include "videoOutputPortConfig.hpp"
33 #include "illegalArgumentException.hpp"
58 return VideoOutputPortConfig::getInstance().getVideoResolution(
id);
73 const List<VideoResolution> supportedResollutions = VideoOutputPortConfig::getInstance().getSupportedResolutions(isIgnoreEdid);
75 for (
size_t i = 0; i < supportedResollutions.
size(); i++) {
76 if (name.compare(std::string(supportedResollutions.at(i).getName())) == 0) {
77 return supportedResollutions.at(i);
102 int pixelResolutionId,
int ratioId,
int ssModeId,
103 int frameRateId,
bool interlaced,
bool enabled) :
105 _pixelResolutionId(pixelResolutionId),
106 _aspectRatioId(ratioId),
107 _stereoScopicModeId(ssModeId),
108 _frameRateId(frameRateId),
109 _interlaced(interlaced),
int _id
Indicates the id of the instance inheriting this class.
This class extentds DSConstant to implement StereoScopicMode. It manages the stereoscopic mode of the...
bool _enabled
TRUE indicates this video resolution is enabled otherwise disabled.
This class is implemented using templates and it is used to maintain a container with the list of sup...
const FrameRate & getFrameRate() const
This API is used to get the frame rate of the given video output port.
Class extending DSConstant to implement the videoResolution interface.
This class extends DSConstant to manages the pixel resolution of the video.
This class extends DSConstant to handle the video frame rate.
VideoResolution(const int id, const std::string &name, int resolutionId, int ratioid, int ssModeId, int frameRateId, bool interlacedId, bool enabled=true)
This function is a default constructor for videoResolution. It initialises the data members of video ...
int _stereoScopicModeId
Indicates the stereoscopic mode of the video.
static const PixelResolution & getInstance(int id)
This function gets the instance of PixelResolution against the specified id, only if the id passed is...
This class is used to store and manage the names and id's. It is derived by many classes like VideoRe...
const StereoScopicMode & getStereoscopicMode() const
This API is used to get the stereoscopic mode of the given video output port.
size_t size()
This function gets the size of the container.
static const StereoScopicMode & getInstance(int id)
This function gets an instance of the StereoScopicMode against the specified id, only if the id passe...
bool isInterlaced() const
This API is used to check the video is interlaced or not.
int _frameRateId
Indicates frame rate of the video.
It contains class and structure refrenced by the videoResolution.cpp file.
static const VideoResolution & getInstance(int id)
This API is used to get the instance of the video resolution port based on the port id returned by th...
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.
const PixelResolution & getPixelResolution() const
This API is used to get the pixel format of the given video output port.
virtual ~VideoResolution()
This is a default destructor of class VideoResolution.
This class extends DSConstant to implement AspectRatio. It manages the aspect ratios of the videos.
int _aspectRatioId
Indicates aspect ratio type of the video.
This class extends Exception class to manage the expections caused due to illegal arguments.
const AspectRatio & getAspectRatio() const
This API is used to get the current Aspect Ratio setting of the Display Device (i....
bool isEnabled() const
This API is used to check whether the current resolution is enabled or not.
This file defines PixelResolution class for managing video resolution types.
int _pixelResolutionId
Indicates the video resolution.
bool _interlaced
TRUE indicates interlaced scan and FALSE indicates progressive scan.