RDK Documentation (Open Sourced RDK Components)
dsVideoPort.h File Reference
#include "dsError.h"
#include "dsTypes.h"
Include dependency graph for dsVideoPort.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* dsVideoFormatUpdateCB_t) (dsHDRStandard_t videoFormat)
 Callback function used to notify applications of Video Format change. More...
 
typedef void(* dsHDCPStatusCallback_t) (intptr_t handle, dsHdcpStatus_t status)
 Callback function used to notify applications of HDCP status. More...
 

Functions

dsError_t dsVideoPortInit ()
 Initialize underlying Video Port sub-system. More...
 
dsError_t dsGetVideoPort (dsVideoPortType_t type, int index, intptr_t *handle)
 Get the video port handle. More...
 
dsError_t dsIsVideoPortEnabled (intptr_t handle, bool *enabled)
 Indicate whether a video port is enabled. More...
 
dsError_t dsIsDisplayConnected (intptr_t handle, bool *connected)
 Indicate whether a video port is connected to a display. More...
 
dsError_t dsIsDisplaySurround (intptr_t handle, bool *surround)
 This function is used to indicate if the display connected supports surround audio. More...
 
dsError_t dsGetSurroundMode (intptr_t handle, int *surround)
 This function is used to get supported surround mode. More...
 
dsError_t dsIsVideoPortActive (intptr_t handle, bool *active)
 This function is used to indicate whether a video port is connected to a display. More...
 
dsError_t dsEnableDTCP (intptr_t handle, bool contentProtect)
 Toggle DTCP protection of a video port. More...
 
dsError_t dsEnableHDCP (intptr_t handle, bool contentProtect, char *hdcpKey, size_t keySize)
 Toggle HDCP protection of a video port. More...
 
dsError_t dsIsDTCPEnabled (intptr_t handle, bool *pContentProtected)
 Indicate whether a video port is DTCP protected. More...
 
dsError_t dsIsHDCPEnabled (intptr_t handle, bool *pContentProtected)
 Indicate whether a video port is HDCP protected. More...
 
dsError_t dsEnableVideoPort (intptr_t handle, bool enabled)
 Enable/disable a video port. More...
 
dsError_t dsSetResolution (intptr_t handle, dsVideoPortResolution_t *resolution, bool persist)
 Set video port's display resolution. More...
 
dsError_t dsGetResolution (intptr_t handle, dsVideoPortResolution_t *resolution)
 Get the video display resolution. More...
 
dsError_t dsSetActiveSource (intptr_t handle)
 Set the port to the the active source. More...
 
dsError_t dsVideoPortTerm ()
 Terminate the Video Port sub-system. More...
 
dsError_t dsInitResolution (dsVideoPortResolution_t *)
 Initialize the Video Resolution. More...
 
dsError_t dsRegisterHdcpStatusCallback (intptr_t handle, dsHDCPStatusCallback_t cb)
 Register a callback function to listen for HDCP status. More...
 
dsError_t dsGetHDCPStatus (intptr_t handle, dsHdcpStatus_t *status)
 Get current HDCP status. More...
 
dsError_t dsGetHDCPProtocol (intptr_t handle, dsHdcpProtocolVersion_t *protocolVersion)
 Get STB HDCP protocol version. More...
 
dsError_t dsGetHDCPReceiverProtocol (intptr_t handle, dsHdcpProtocolVersion_t *protocolVersion)
 Get Receiver/TV HDCP protocol version. More...
 
dsError_t dsGetHDCPCurrentProtocol (intptr_t handle, dsHdcpProtocolVersion_t *protocolVersion)
 Get current used HDCP protocol version. More...
 
dsError_t dsGetTVHDRCapabilities (intptr_t handle, int *capabilities)
 To find the HDR capabilities of TV. More...
 
dsError_t dsSupportedTvResolutions (intptr_t handle, int *resolutions)
 To find the TV supported resolutions. More...
 
dsError_t dsSetForceDisable4KSupport (intptr_t handle, bool disable)
 
dsError_t dsGetForceDisable4KSupport (intptr_t handle, bool *disable)
 
dsError_t dsSetScartParameter (intptr_t handle, const char *parameter_str, const char *value_str)
 Sets various SCART parameters. More...
 
dsError_t dsGetVideoEOTF (intptr_t handle, dsHDRStandard_t *video_eotf)
 Get current video Electro-Optical Transfer Function (EOT) value;. More...
 
dsError_t dsGetMatrixCoefficients (intptr_t handle, dsDisplayMatrixCoefficients_t *matrix_coefficients)
 Get current matrix coefficients value. More...
 
dsError_t dsGetColorDepth (intptr_t handle, unsigned int *color_depth)
 Get current color depth value. More...
 
dsError_t dsGetColorSpace (intptr_t handle, dsDisplayColorSpace_t *color_space)
 Get current color space setting. More...
 
dsError_t dsGetQuantizationRange (intptr_t handle, dsDisplayQuantizationRange_t *quantization_range)
 Get quatization range. More...
 
dsError_t dsGetCurrentOutputSettings (intptr_t handle, dsHDRStandard_t *video_eotf, dsDisplayMatrixCoefficients_t *matrix_coefficients, dsDisplayColorSpace_t *color_space, unsigned int *color_depth, dsDisplayQuantizationRange_t *quantization_range)
 Get current color space setting, color depth, matrix coefficients, video Electro-Optical Transfer Function (EOT) and quantization range in one call. More...
 
dsError_t dsIsOutputHDR (intptr_t handle, bool *hdr)
 Check Video Output is HDR or not. More...
 
dsError_t dsResetOutputToSDR ()
 Reset Video Output to SDR. More...
 
dsError_t dsSetHdmiPreference (intptr_t handle, dsHdcpProtocolVersion_t *hdcpCurrentProtocol)
 This API is used to set the Preferred HDMI Protocol. More...
 
dsError_t dsGetHdmiPreference (intptr_t handle, dsHdcpProtocolVersion_t *hdcpCurrentProtocol)
 This API is used to get the Preferred HDMI Protocol. More...
 
dsError_t dsGetIgnoreEDIDStatus (intptr_t handle, bool *status)
 
dsError_t dsSetBackgroundColor (intptr_t handle, dsVideoBackgroundColor_t color)
 This API is used to set the background color for video port. More...
 
dsError_t dsSetForceHDRMode (intptr_t handle, dsHDRStandard_t mode)
 This API is used to set/reset force HDR mode. More...
 
dsError_t dsColorDepthCapabilities (intptr_t handle, unsigned int *colorDepthCapability)
 To find the color depth capabilities. More...
 
dsError_t dsGetPreferredColorDepth (intptr_t handle, dsDisplayColorDepth_t *colorDepth, bool persist)
 To get the preffered color depth mode. More...
 
dsError_t dsSetPreferredColorDepth (intptr_t handle, dsDisplayColorDepth_t colorDepth, bool persist)
 To set the preffered color depth mode. More...