Described herein are the DeviceSettings HAL types and functions that are part of the Video Device subsystem. The Video Device subsystem manages video decoder hardware operations.
|
dsError_t | dsVideoDeviceInit () |
| This function initialize all the video devices in the system. More...
|
|
dsError_t | dsGetVideoDevice (int index, intptr_t *handle) |
| This function gets the handle for the video device requested. More...
|
|
dsError_t | dsSetDFC (intptr_t handle, dsVideoZoom_t dfc) |
| This function is used to set the screen zoom mode (decoder format conversion). This function sets the screen zoom mode (Pan & Scan, LetterBox, PillarBox, etc.) for the specified video device. More...
|
|
dsError_t | dsGetDFC (intptr_t handle, dsVideoZoom_t *dfc) |
| This function is used to get the screen zoom mode (decoder format conversion). This function Gets the screen zoom mode (None,Full ,Pan & Scan, LetterBox, PillarBox, etc.) for the specified video device. More...
|
|
dsError_t | dsVideoDeviceTerm () |
| This function deinitialize all the video devices in the system. It reset any data structures used within this module and release any handles specific to the video devices. More...
|
|
dsError_t | dsGetHDRCapabilities (intptr_t handle, int *capabilities) |
| To find the HDR capabilities of SoC. More...
|
|
dsError_t | dsGetSupportedVideoCodingFormats (intptr_t handle, unsigned int *supported_formats) |
| To find the Video formats supported by the SoC. More...
|
|
dsError_t | dsGetVideoCodecInfo (intptr_t handle, dsVideoCodingFormat_t codec, dsVideoCodecInfo_t *info) |
| This API is used to get the video codec information. More...
|
|
dsError_t | dsForceDisableHDRSupport (intptr_t handle, bool disable) |
|
◆ dsVideoDeviceInit()
This function initialize all the video devices in the system.
- Returns
- dsError_t
- Return values
-
dsERR_NONE | If sucessfully dsVideoDeviceInit api has been called using IARM support. |
dsERR_GENERAL | General failure. |
Definition at line 46 of file dsVideoDevice.c.
◆ dsGetVideoDevice()
dsError_t dsGetVideoDevice |
( |
int |
index, |
|
|
intptr_t * |
handle |
|
) |
| |
This function gets the handle for the video device requested.
- Parameters
-
[in] | index | Index of video device (0, 1, ...). |
[out] | handle | The address of a location to hold the video device handle on return. |
- Returns
- dsError_t
- Return values
-
dsERR_NONE | If sucessfully dsGetVideoDevice api has been called using IARM support. |
dsERR_GENERAL | General failure. |
Definition at line 64 of file dsVideoDevice.c.
◆ dsSetDFC()
This function is used to set the screen zoom mode (decoder format conversion). This function sets the screen zoom mode (Pan & Scan, LetterBox, PillarBox, etc.) for the specified video device.
- Parameters
-
[in] | handle | Handle of the video output port. |
[in] | dfc | Type of zoom mode to be used. |
- Returns
- dsError_t
- Return values
-
dsERR_NONE | If sucessfully dsSetDFC api has been called using IARM support. |
dsERR_GENERAL | General failure. |
Definition at line 89 of file dsVideoDevice.c.
◆ dsGetDFC()
This function is used to get the screen zoom mode (decoder format conversion). This function Gets the screen zoom mode (None,Full ,Pan & Scan, LetterBox, PillarBox, etc.) for the specified video device.
- Parameters
-
[in] | handle | Handle of the video output port. |
[in] | dfc | Type of zoom mode to be used. |
- Returns
- dsError_t
- Return values
-
dsERR_NONE | If sucessfully dsGetDFC api has been called using IARM support. |
dsERR_GENERAL | General failure. |
Definition at line 117 of file dsVideoDevice.c.
◆ dsVideoDeviceTerm()
This function deinitialize all the video devices in the system. It reset any data structures used within this module and release any handles specific to the video devices.
- Returns
- dsError_t
- Return values
-
dsERR_NONE | If sucessfully dsVideoDeviceTerm has been called using IARM support. |
dsERR_GENERAL | General failure. |
Definition at line 144 of file dsVideoDevice.c.
◆ dsGetHDRCapabilities()
dsError_t dsGetHDRCapabilities |
( |
intptr_t |
handle, |
|
|
int * |
capabilities |
|
) |
| |
To find the HDR capabilities of SoC.
This function is used to check which HDR capabilities the SoC supports
- Parameters
-
[in] | handle | Handle for the video device (video decoder) |
[out] | *capabilities | OR-ed value of supported HDR standards. |
- Returns
- dsError_t Error code.
Definition at line 162 of file dsVideoDevice.c.
◆ dsGetSupportedVideoCodingFormats()
dsError_t dsGetSupportedVideoCodingFormats |
( |
intptr_t |
handle, |
|
|
unsigned int * |
supported_formats |
|
) |
| |
To find the Video formats supported by the SoC.
This function is used to check which video formats the SoC supports
- Parameters
-
[in] | handle | Handle for the video device (video decoder) |
[out] | supported_formats | OR-ed value of supported video codec formats. |
- Returns
- dsError_t Error code.
Definition at line 183 of file dsVideoDevice.c.
◆ dsGetVideoCodecInfo()
This API is used to get the video codec information.
- Parameters
-
[in] | handle | Handle for the video device (video decoder) |
[in] | codec | OR-ed value of supported video codec formats. |
[out] | info | Video codec information like profile, level etc. |
- Returns
- dsError_t Error code.
Definition at line 203 of file dsVideoDevice.c.