From 3a3e110de657c20ff8cb3f911e5fe6a9e16f1e0f Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Mon, 14 Oct 2019 16:35:50 +0800 Subject: [PATCH] [mpp_platform]: Add device id definition Change-Id: I108cfa3f4639517eed7ebaaaacf5f482002ea806 Signed-off-by: Herman Chen --- osal/inc/mpp_platform.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/osal/inc/mpp_platform.h b/osal/inc/mpp_platform.h index 0e03ed58..d2eb9635 100644 --- a/osal/inc/mpp_platform.h +++ b/osal/inc/mpp_platform.h @@ -23,10 +23,6 @@ * Platform flag detection is for rockchip hardware platform detection */ -#ifdef __cplusplus -extern "C" { -#endif - /* * Platform video codec hardware feature */ @@ -43,14 +39,25 @@ extern "C" { /* External encoder */ #define HAVE_H265ENC (0x01000000) -/* - * Platform image process hardware feature - */ +/* Platform image process hardware feature */ #define HAVE_IPP (0x00000001) #define HAVE_RGA (0x00000002) #define HAVE_RGA2 (0x00000004) #define HAVE_IEP (0x00000008) +/* Hal device id */ +typedef enum MppDeviceId_e { + DEV_VDPU, //!< vpu combined decoder + DEV_VEPU, //!< vpu combined encoder + DEV_RKVDEC, //!< rockchip h264 h265 vp9 combined decoder + DEV_RKVENC, //!< rockchip h264 h265 combined encoder + DEV_ID_BUTT, +} MppDeviceId; + +#ifdef __cplusplus +extern "C" { +#endif + const char *mpp_get_soc_name(void); RK_U32 mpp_get_vcodec_type(void); RK_U32 mpp_get_2d_hw_flag(void);