|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
34 #ifndef _DS_VIDEOPORT_H
35 #define _DS_VIDEOPORT_H
395 dsError_t dsSetForceDisable4KSupport(intptr_t handle,
bool disable);
396 dsError_t dsGetForceDisable4KSupport(intptr_t handle,
bool *disable);
498 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);
558 dsError_t dsGetIgnoreEDIDStatus(intptr_t handle,
bool* status);
dsError_t dsGetHDCPProtocol(intptr_t handle, dsHdcpProtocolVersion_t *protocolVersion)
Get STB HDCP protocol version.
dsError_t dsGetTVHDRCapabilities(intptr_t handle, int *capabilities)
To find the HDR capabilities of TV.
dsError_t dsRegisterHdcpStatusCallback(intptr_t handle, dsHDCPStatusCallback_t cb)
Register a callback function to listen for HDCP status.
dsError_t dsGetColorSpace(intptr_t handle, dsDisplayColorSpace_t *color_space)
Get current color space setting.
dsError_t dsGetMatrixCoefficients(intptr_t handle, dsDisplayMatrixCoefficients_t *matrix_coefficients)
Get current matrix coefficients value.
dsError_t dsSetBackgroundColor(intptr_t handle, dsVideoBackgroundColor_t color)
This API is used to set the background color for video port.
dsError_t dsSetHdmiPreference(intptr_t handle, dsHdcpProtocolVersion_t *hdcpCurrentProtocol)
This API is used to set the Preferred HDMI Protocol.
dsError_t dsVideoPortTerm()
Terminate the Video Port sub-system.
void(* dsVideoFormatUpdateCB_t)(dsHDRStandard_t videoFormat)
Callback function used to notify applications of Video Format change.
Device Settings HAL types.
dsError_t dsEnableDTCP(intptr_t handle, bool contentProtect)
Toggle DTCP protection of a video port.
enum _dsVideoPortType_t dsVideoPortType_t
dsError_t dsIsDTCPEnabled(intptr_t handle, bool *pContentProtected)
Indicate whether a video port is DTCP protected.
dsError_t dsEnableVideoPort(intptr_t handle, bool enabled)
Enable/disable a video port.
Device Settings HAL error codes.
dsError_t dsGetHDCPStatus(intptr_t handle, dsHdcpStatus_t *status)
Get current HDCP status.
dsError_t dsGetColorDepth(intptr_t handle, unsigned int *color_depth)
Get current color depth value.
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 Fun...
dsError_t dsIsHDCPEnabled(intptr_t handle, bool *pContentProtected)
Indicate whether a video port is HDCP protected.
dsError_t dsIsDisplaySurround(intptr_t handle, bool *surround)
This function is used to indicate if the display connected supports surround audio.
dsError_t dsSetForceHDRMode(intptr_t handle, dsHDRStandard_t mode)
This API is used to set/reset force HDR mode.
dsError_t dsGetPreferredColorDepth(intptr_t handle, dsDisplayColorDepth_t *colorDepth, bool persist)
To get the preffered color depth mode.
enum _dsVideoBackgroundColor_t dsVideoBackgroundColor_t
dsError_t dsColorDepthCapabilities(intptr_t handle, unsigned int *colorDepthCapability)
To find the color depth capabilities.
dsError_t dsIsOutputHDR(intptr_t handle, bool *hdr)
Check Video Output is HDR or not.
dsError_t dsIsVideoPortEnabled(intptr_t handle, bool *enabled)
Indicate whether a video port is enabled.
dsError_t dsGetHdmiPreference(intptr_t handle, dsHdcpProtocolVersion_t *hdcpCurrentProtocol)
This API is used to get the Preferred HDMI Protocol.
dsError_t dsVideoPortInit()
Initialize underlying Video Port sub-system.
dsError_t dsSupportedTvResolutions(intptr_t handle, int *resolutions)
To find the TV supported resolutions.
dsError_t dsSetResolution(intptr_t handle, dsVideoPortResolution_t *resolution, bool persist)
Set video port's display resolution.
dsError_t dsGetHDCPReceiverProtocol(intptr_t handle, dsHdcpProtocolVersion_t *protocolVersion)
Get Receiver/TV HDCP protocol version.
enum _dsHDRStandard_t dsHDRStandard_t
Structure that defines video port resolution settings of output video device.
dsError_t dsIsVideoPortActive(intptr_t handle, bool *active)
This function is used to indicate whether a video port is connected to a display.
void(* dsHDCPStatusCallback_t)(intptr_t handle, dsHdcpStatus_t status)
Callback function used to notify applications of HDCP status.
dsError_t dsGetResolution(intptr_t handle, dsVideoPortResolution_t *resolution)
Get the video display resolution.
dsError_t dsSetActiveSource(intptr_t handle)
Set the port to the the active source.
dsError_t dsSetScartParameter(intptr_t handle, const char *parameter_str, const char *value_str)
Sets various SCART parameters.
dsError_t dsGetQuantizationRange(intptr_t handle, dsDisplayQuantizationRange_t *quantization_range)
Get quatization range.
dsError_t dsIsDisplayConnected(intptr_t handle, bool *connected)
Indicate whether a video port is connected to a display.
dsError_t dsGetHDCPCurrentProtocol(intptr_t handle, dsHdcpProtocolVersion_t *protocolVersion)
Get current used HDCP protocol version.
dsError_t dsEnableHDCP(intptr_t handle, bool contentProtect, char *hdcpKey, size_t keySize)
Toggle HDCP protection of a video port.
dsError_t dsGetSurroundMode(intptr_t handle, int *surround)
This function is used to get supported surround mode.
dsError_t dsGetVideoEOTF(intptr_t handle, dsHDRStandard_t *video_eotf)
Get current video Electro-Optical Transfer Function (EOT) value;.
dsError_t
Device Settings API Error return codes.
dsError_t dsSetPreferredColorDepth(intptr_t handle, dsDisplayColorDepth_t colorDepth, bool persist)
To set the preffered color depth mode.
dsError_t dsInitResolution(dsVideoPortResolution_t *)
Initialize the Video Resolution.
dsError_t dsResetOutputToSDR()
Reset Video Output to SDR.
dsError_t dsGetVideoPort(dsVideoPortType_t type, int index, intptr_t *handle)
Get the video port handle.