31 #include "dsclientlogger.h"
32 #include <sys/types.h>
44 #include "safec_lib.h"
48 printf(
"<<<<< VID is initialized in Multi-App Mode >>>>>>>>\r\n");
50 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
53 (
char *)IARM_BUS_DSMGR_API_dsVideoDeviceInit,
57 if (IARM_RESULT_SUCCESS == rpcRet)
73 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
76 (
char *)IARM_BUS_DSMGR_API_dsGetVideoDevice,
80 if (IARM_RESULT_SUCCESS == rpcRet)
82 *handle =param.handle;
94 param.handle = handle;
97 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
102 (
char *)IARM_BUS_DSMGR_API_dsSetDFC,
106 if (IARM_RESULT_SUCCESS == rpcRet)
122 param.handle = handle;
125 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
128 (
char *)IARM_BUS_DSMGR_API_dsGetDFC,
132 if (IARM_RESULT_SUCCESS == rpcRet)
148 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
150 (
char *)IARM_BUS_DSMGR_API_dsVideoDeviceTerm,
154 if (IARM_RESULT_SUCCESS == rpcRet)
167 param.handle = handle;
170 (
char *) IARM_BUS_DSMGR_API_dsGetHDRCapabilities,
174 if (IARM_RESULT_SUCCESS == rpcRet)
176 *capabilities = param.capabilities;
188 param.handle = handle;
191 (
char *) IARM_BUS_DSMGR_API_dsGetSupportedVideoCodingFormats,
195 if (IARM_RESULT_SUCCESS == rpcRet)
197 *supported_formats = param.supported_formats;
208 memset(¶m, 0,
sizeof(param));
209 param.handle = handle;
210 param.format = format;
211 info->num_entries = 0;
214 (
char *) IARM_BUS_DSMGR_API_dsGetVideoCodecInfo,
218 if (IARM_RESULT_SUCCESS == rpcRet)
226 dsError_t dsForceDisableHDRSupport(intptr_t handle,
bool disable)
231 memset(¶m, 0,
sizeof(param));
232 param.handle = handle;
233 param.disable = disable;
236 (
char *) IARM_BUS_DSMGR_API_dsSetForceDisableHDR,
240 if (IARM_RESULT_SUCCESS == rpcRet)
248 dsError_t dsGetFRFMode(intptr_t handle,
int *frfmode)
251 param.handle = handle;
254 (
char *) IARM_BUS_DSMGR_API_dsGetFRFMode,
258 if (IARM_RESULT_SUCCESS == rpcRet)
260 *frfmode = param.frfmode;
266 dsError_t dsSetFRFMode(intptr_t handle,
int frfmode)
269 param.handle = handle;
270 param.frfmode = frfmode;
273 (
char *) IARM_BUS_DSMGR_API_dsSetFRFMode,
277 if (IARM_RESULT_SUCCESS == rpcRet)
285 dsError_t dsSetDisplayframerate(intptr_t handle,
char *framerate)
288 param.handle = handle;
290 rc = strcpy_s(param.framerate ,
sizeof(param.framerate), framerate);
296 (
char *) IARM_BUS_DSMGR_API_dsSetDisplayframerate,
300 if (IARM_RESULT_SUCCESS == rpcRet)
307 dsError_t dsGetCurrentDisplayframerate(intptr_t handle,
char *framerate)
311 param.handle = handle;
314 (
char *) IARM_BUS_DSMGR_API_dsGetCurrentDisframerate,
318 if (IARM_RESULT_SUCCESS == rpcRet)
321 rc = strcpy_s(framerate ,
sizeof(param.framerate), param.framerate);