RDK Documentation (Open Sourced RDK Components)
|
This defines the videoResolution objects by the device settings module upon intialization.
Functions | |
static const VideoResolution & | device::VideoResolution::getInstance (int id) |
This API is used to get the instance of the video resolution port based on the port id returned by the getsupported video resolution . More... | |
static const VideoResolution & | device::VideoResolution::getInstance (const std::string &name, bool isIgnoreEdid=false) |
This API is used to get the instance of the video resolution port with the name as passed parameter and comparing name with the supported resolution . If matched, it returns the supported resolution. More... | |
device::VideoResolution::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 Resolution instance with the parameters passed. More... | |
virtual | device::VideoResolution::~VideoResolution () |
This is a default destructor of class VideoResolution. More... | |
const PixelResolution & | device::VideoResolution::getPixelResolution () const |
This API is used to get the pixel format of the given video output port. More... | |
const AspectRatio & | device::VideoResolution::getAspectRatio () const |
This API is used to get the current Aspect Ratio setting of the Display Device (i.e. TV) that is connected to the port. Its value is independent to the current zoom settings (which includes the Aspect Ratio of the output format) on the Video Output Port. IllegalStateException will be thrown if the display is not connected. UnsupportedOperationException will be thrown if the Display's Aspect Ratio setting is not available. More... | |
const StereoScopicMode & | device::VideoResolution::getStereoscopicMode () const |
This API is used to get the stereoscopic mode of the given video output port. More... | |
const FrameRate & | device::VideoResolution::getFrameRate () const |
This API is used to get the frame rate of the given video output port. More... | |
bool | device::VideoResolution::isInterlaced () const |
This API is used to check the video is interlaced or not. More... | |
bool | device::VideoResolution::isEnabled () const |
This API is used to check whether the current resolution is enabled or not. More... | |
|
static |
This API is used to get the instance of the video resolution port based on the port id returned by the getsupported video resolution .
[in] | id | port id |
Definition at line 56 of file videoResolution.cpp.
|
static |
This API is used to get the instance of the video resolution port with the name as passed parameter and comparing name with the supported resolution . If matched, it returns the supported resolution.
[in] | name | Name of the port |
[in] | isIgnoreEdid | request to ignore Edid Check. |
Definition at line 71 of file videoResolution.cpp.
device::VideoResolution::VideoResolution | ( | const int | id, |
const std::string & | name, | ||
int | pixelResolutionId, | ||
int | ratioId, | ||
int | ssModeId, | ||
int | frameRateId, | ||
bool | interlaced, | ||
bool | enabled = true |
||
) |
This function is a default constructor for videoResolution. It initialises the data members of video Resolution instance with the parameters passed.
[in] | type | Type of video Resolution. |
[in] | name | Name of the video Resolution port. |
[in] | pixelResolutionId | Pixel resolution[720x480,720x480,..] id. |
[in] | frameRateId | Frame rate[24,25, 59.94,.... frames per second] id. |
[in] | ratioId | Aspect ratio[4:3, 16:9,...] id. |
[in] | ssModeId | Stereoscopic mode[2D, 3D,...] id. |
[in] | interlaced | Scan mode type . True if interlaced or False. |
[in] | enabled | True if video port is enabled. Else, false. |
Definition at line 101 of file videoResolution.cpp.
|
virtual |
This is a default destructor of class VideoResolution.
Definition at line 123 of file videoResolution.cpp.
const PixelResolution & device::VideoResolution::getPixelResolution | ( | ) | const |
This API is used to get the pixel format of the given video output port.
Definition at line 134 of file videoResolution.cpp.
const AspectRatio & device::VideoResolution::getAspectRatio | ( | ) | const |
This API is used to get the current Aspect Ratio setting of the Display Device (i.e. TV) that is connected to the port. Its value is independent to the current zoom settings (which includes the Aspect Ratio of the output format) on the Video Output Port. IllegalStateException will be thrown if the display is not connected. UnsupportedOperationException will be thrown if the Display's Aspect Ratio setting is not available.
Definition at line 149 of file videoResolution.cpp.
const StereoScopicMode & device::VideoResolution::getStereoscopicMode | ( | ) | const |
This API is used to get the stereoscopic mode of the given video output port.
Definition at line 161 of file videoResolution.cpp.
const FrameRate & device::VideoResolution::getFrameRate | ( | ) | const |
This API is used to get the frame rate of the given video output port.
Definition at line 172 of file videoResolution.cpp.
bool device::VideoResolution::isInterlaced | ( | ) | const |
This API is used to check the video is interlaced or not.
True | If video is interlaced |
False | If video is not interlaced |
Definition at line 185 of file videoResolution.cpp.
bool device::VideoResolution::isEnabled | ( | ) | const |
This API is used to check whether the current resolution is enabled or not.
True | If current resolution is enabled |
False | If current resolution is disabled |
Definition at line 198 of file videoResolution.cpp.