[mpp_platform]: Add device id definition

Change-Id: I108cfa3f4639517eed7ebaaaacf5f482002ea806
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2019-10-14 16:35:50 +08:00
parent 76d22d6ac0
commit 3a3e110de6

View File

@@ -23,10 +23,6 @@
* Platform flag detection is for rockchip hardware platform detection * Platform flag detection is for rockchip hardware platform detection
*/ */
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* Platform video codec hardware feature * Platform video codec hardware feature
*/ */
@@ -43,14 +39,25 @@ extern "C" {
/* External encoder */ /* External encoder */
#define HAVE_H265ENC (0x01000000) #define HAVE_H265ENC (0x01000000)
/* /* Platform image process hardware feature */
* Platform image process hardware feature
*/
#define HAVE_IPP (0x00000001) #define HAVE_IPP (0x00000001)
#define HAVE_RGA (0x00000002) #define HAVE_RGA (0x00000002)
#define HAVE_RGA2 (0x00000004) #define HAVE_RGA2 (0x00000004)
#define HAVE_IEP (0x00000008) #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); const char *mpp_get_soc_name(void);
RK_U32 mpp_get_vcodec_type(void); RK_U32 mpp_get_vcodec_type(void);
RK_U32 mpp_get_2d_hw_flag(void); RK_U32 mpp_get_2d_hw_flag(void);