mpi_hdmi.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /******************************************************************************
  2. Copyright (C), 2014-2018, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : mpi_hdmi.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software group
  7. Created : 2011/12/28
  8. Description :
  9. History :
  10. 1.Date : 2011/12/28
  11. Author :
  12. Modification: Created file
  13. 2.Date : 2015/01/13
  14. Author :
  15. Modification: 1)change HI_MPI_HDMI_Init param
  16. 2)change HI_MPI_HDMI_Open param
  17. 3)add HI_MPI_HDMI_RegCallbackFunc
  18. 4)add HI_MPI_HDMI_UnRegCallbackFunc
  19. ******************************************************************************/
  20. #ifndef __MPI_HDMI_H__
  21. #define __MPI_HDMI_H__
  22. #include "hi_comm_hdmi.h"
  23. #ifdef __cplusplus
  24. #if __cplusplus
  25. extern "C"{
  26. #endif
  27. #endif /* End of #ifdef __cplusplus */
  28. HI_S32 HI_MPI_HDMI_Init(HI_VOID);
  29. HI_S32 HI_MPI_HDMI_DeInit(HI_VOID);
  30. HI_S32 HI_MPI_HDMI_Open(HI_HDMI_ID_E enHdmi);
  31. HI_S32 HI_MPI_HDMI_Close(HI_HDMI_ID_E enHdmi);
  32. HI_S32 HI_MPI_HDMI_GetSinkCapability(HI_HDMI_ID_E enHdmi, HI_HDMI_SINK_CAPABILITY_S *pstSinkCap);
  33. HI_S32 HI_MPI_HDMI_SetAttr(HI_HDMI_ID_E enHdmi, const HI_HDMI_ATTR_S *pstAttr);
  34. HI_S32 HI_MPI_HDMI_GetAttr(HI_HDMI_ID_E enHdmi, HI_HDMI_ATTR_S *pstAttr);
  35. HI_S32 HI_MPI_HDMI_Start(HI_HDMI_ID_E enHdmi);
  36. HI_S32 HI_MPI_HDMI_Stop(HI_HDMI_ID_E enHdmi);
  37. HI_S32 HI_MPI_HDMI_Force_GetEDID(HI_HDMI_ID_E enHdmi, HI_HDMI_EDID_S *pstEdidData);
  38. HI_S32 HI_MPI_HDMI_RegCallbackFunc(HI_HDMI_ID_E enHdmi, const HI_HDMI_CALLBACK_FUNC_S *pstCallbackFunc);
  39. HI_S32 HI_MPI_HDMI_UnRegCallbackFunc(HI_HDMI_ID_E enHdmi, const HI_HDMI_CALLBACK_FUNC_S *pstCallbackFunc);
  40. HI_S32 HI_MPI_HDMI_RegCECCallBackFunc(HI_HDMI_ID_E enHdmi, const HI_HDMI_CECCALLBACK_FUNC_S *pstCECCallback);
  41. HI_S32 HI_MPI_HDMI_UnRegCECCallBackFunc(HI_HDMI_ID_E enHdmi, const HI_HDMI_CECCALLBACK_FUNC_S *pstCECCallback);
  42. HI_S32 HI_MPI_HDMI_SetCECCommand(HI_HDMI_ID_E enHdmi, const HI_HDMI_CEC_CMD_S *pCECCmd);
  43. HI_S32 HI_MPI_HDMI_CECStatus(HI_HDMI_ID_E enHdmi, HI_HDMI_CEC_STATUS_S *pStatus);
  44. HI_S32 HI_MPI_HDMI_CEC_Enable(HI_HDMI_ID_E enHdmi);
  45. HI_S32 HI_MPI_HDMI_CEC_Disable(HI_HDMI_ID_E enHdmi);
  46. /* Module Parameter */
  47. HI_S32 HI_MPI_HDMI_SetModParam(HI_HDMI_ID_E enHdmi, const HI_HDMI_MOD_PARAM_S *pstModParam);
  48. HI_S32 HI_MPI_HDMI_GetModParam(HI_HDMI_ID_E enHdmi, HI_HDMI_MOD_PARAM_S *pstModParam);
  49. /* Normally, these functions are not necessary */
  50. HI_S32 HI_MPI_HDMI_SetInfoFrame(HI_HDMI_ID_E enHdmi, const HI_HDMI_INFOFRAME_S *pstInfoFrame);
  51. HI_S32 HI_MPI_HDMI_GetInfoFrame(HI_HDMI_ID_E enHdmi, HI_HDMI_INFOFRAME_TYPE_E enInfoFrameType, HI_HDMI_INFOFRAME_S *pstInfoFrame);
  52. #ifdef __cplusplus
  53. #if __cplusplus
  54. }
  55. #endif
  56. #endif /* End of #ifdef __cplusplus */
  57. #endif /*__MPI_HDMI_H__ */