hi_md.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /******************************************************************************
  2. Copyright (C), 2001-2015, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : hi_md.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software (IVE) group
  7. Created : 2014/11/10
  8. Description :
  9. History :
  10. 1.Date : 2014/11/10
  11. Author :
  12. Modification: Created file
  13. 2.Date : 2015/11/24
  14. Author :
  15. Modification: Modify MD_ATTR_S
  16. ******************************************************************************/
  17. #ifndef _HI_MD_H_
  18. #define _HI_MD_H_
  19. #include "hi_ive.h"
  20. #ifdef __cplusplus
  21. #if __cplusplus
  22. extern "C"{
  23. #endif
  24. #endif
  25. /*
  26. * Definition md algorithm mode
  27. */
  28. typedef enum hiMD_ALG_MODE_E
  29. {
  30. MD_ALG_MODE_BG = 0x0,/*Base on background image*/
  31. MD_ALG_MODE_REF = 0x1,/*Base on reference image*/
  32. MD_ALG_MODE_BUTT
  33. }MD_ALG_MODE_E;
  34. /*
  35. * Definition of md attribute
  36. */
  37. typedef struct hiMD_ATTR_S
  38. {
  39. MD_ALG_MODE_E enAlgMode; /*Md algorithm mode*/
  40. IVE_SAD_MODE_E enSadMode; /*Sad mode*/
  41. IVE_SAD_OUT_CTRL_E enSadOutCtrl; /*Sad output ctrl*/
  42. HI_U32 u32Width; /*Image width*/
  43. HI_U32 u32Height; /*Image height*/
  44. HI_U16 u16SadThr; /*Sad thresh*/
  45. IVE_CCL_CTRL_S stCclCtrl; /*Ccl ctrl*/
  46. IVE_ADD_CTRL_S stAddCtrl; /*Add ctrl*/
  47. }MD_ATTR_S;
  48. #ifdef __cplusplus
  49. #if __cplusplus
  50. }
  51. #endif
  52. #endif
  53. #endif/*_HI_MD_H_*/