|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
31 #ifndef _DS_VIDEOOUTPUTPORT_H_
32 #define _DS_VIDEOOUTPUTPORT_H_
49 class VideoOutputPortType;
50 class AudioOutputPort;
51 class VideoResolution;
72 std::string _defaultResolution;
73 std::string _resolution;
75 static const char * kPropertyResolution;
89 bool _isSurroundCapable;
90 bool _isDeviceRepeater;
105 Display() :_handle(0), _productCode(0), _serialNumber(0), _manufacturerYear(0), _manufacturerWeek(0),_aspectRatio(0),_hdmiDeviceType(true), _isSurroundCapable(false), _isDeviceRepeater(false),
106 _physicalAddressA(1),_physicalAddressB(0),_physicalAddressC(0),_physicalAddressD(0){};
156 bool isConnectedDeviceRepeater()
const {
return _isDeviceRepeater;};
157 void getEDIDBytes(std::vector<uint8_t> &edid)
const;
165 bool hasSurround()
const;
173 int getSurroundMode()
const;
196 void getPhysicallAddress(uint8_t &physicalAddressA,uint8_t &physicalAddressB,uint8_t &physicalAddressC,uint8_t &physicalAddressD)
const
197 {physicalAddressA = _physicalAddressA;physicalAddressB = _physicalAddressB;
198 physicalAddressC = _physicalAddressC;physicalAddressD = _physicalAddressD;};
203 VideoOutputPort(
const int type,
const int index,
const int id,
int audioPortId,
const std::string &resolution);
225 const std::string &
getName()
const {
return _name;};
241 bool isDisplayConnected()
const;
242 bool isContentProtected()
const;
243 bool isEnabled()
const;
244 bool isActive()
const;
245 bool isDynamicResolutionSupported()
const;
256 void setResolution(
const std::string &resolution,
bool persist =
true,
bool isIgnoreEdid=
false);
257 void setDisplayConnected(
const bool connected);
261 int getHDCPProtocol();
262 int getHDCPReceiverProtocol();
263 int getHDCPCurrentProtocol();
264 void getTVHDRCapabilities(
int *capabilities)
const;
265 void getSupportedTvResolutions(
int *resolutions)
const;
266 int forceDisable4KSupport(
bool disable);
269 void ResetOutputToSDR();
270 bool SetHdmiPreference(dsHdcpProtocolVersion_t hdcpProtocol);
271 int GetHdmiPreference();
273 bool setScartParameter(
const std::string parameter,
const std::string value);
274 int getVideoEOTF()
const;
275 int getMatrixCoefficients()
const;
276 int getColorSpace()
const;
277 int getColorDepth()
const;
278 int getQuantizationRange()
const;
279 void getCurrentOutputSettings(
int &videoEOTF,
int &matrixCoefficients,
int &colorSpace,
int &colorDepth,
int &quantizationRange)
const;
280 const unsigned int getPreferredColorDepth(
bool persist =
true) ;
281 void setPreferredColorDepth(
const unsigned int colordepth,
bool persist =
true);
282 void getColorDepthCapabilities (
unsigned int *capabilities)
const;
int getManufacturerYear() const
This function returns the year of manufacture of the EDID video display device.
int getIndex() const
This function returns the index of the video output port.
int getConnectedDeviceType() const
This function returns the device type of the EDID video display device.
const std::string & getName() const
This API gets the name of the VideoOutputPort. The VideoOutputPort names can be HDMI,...
void getPhysicallAddress(uint8_t &physicalAddressA, uint8_t &physicalAddressB, uint8_t &physicalAddressC, uint8_t &physicalAddressD) const
This function gets the physical address of the HDMI node of the video display device.
int _serialNumber
Serial number of the EDID video display device.
uint8_t _physicalAddressB
Physical Address for HDMI node B.
Class extending DSConstant to implement the videoResolution interface.
const AspectRatio & getAspectRatio() const
This function returns the instance of the aspect ratio that is used currently in connected display de...
uint8_t _physicalAddressD
Physical Address for HDMI node D.
This file defines AspectRatio class for managing aspect ratio types.
Class extending enumerable to implement the videoooutputport interface.
Device Settings HAL types.
int _type
VideooOtputPortType.
bool _enabled
Method variable to check whether VideoPort is enabled or not.
int _index
Index of the video.
bool _contentProtected
Method variable tO check whether videoport is content protected or not.
Class extending Enumerable to implement the audiooutputport interface.
int _productCode
Product code of the EDID video display device.
uint8_t _physicalAddressC
Physical Address for HDMI node C.
This class is inherited by many classes in DS for getting the ID.
Display()
This function is default constructor and it is used to initialize the display handle and EDID informa...
enum _dsHDRStandard_t dsHDRStandard_t
This class extends DSConstant to implement AspectRatio. It manages the aspect ratios of the videos.
int _manufacturerYear
Year of manufacture of the EDID video display device.
int _manufacturerWeek
Week of manufacture of the EDID video display device.
This file defines Enumerable class.
bool _displayConnected
Method variable to check whether the video display is connected or not.
int getId() const
This function returns the video output port id.
void setAudioPort(int id)
This function set the audio output port id.
uint8_t _physicalAddressA
Physical Address for HDMI node A.
int getProductCode() const
This function returns the product code of the EDID video display device.
Class extending DSConstant to implement the VideoOutputporttype interface.
int getSerialNumber() const
This function returns the serial number of the EDID video display device.
int getManufacturerWeek() const
This function returns the week of manufacture of the EDID video display device.