hi_isp_defines.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /******************************************************************************
  2. Copyright (C), 2016, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : hi_isp_defines.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software group
  7. Created : 2013/11/07
  8. Description :
  9. History :
  10. 1.Date : 2013/11/07
  11. Author :
  12. Modification: Created file
  13. ******************************************************************************/
  14. #ifndef __HI_ISP_DEFINES_H__
  15. #define __HI_ISP_DEFINES_H__
  16. #ifdef __cplusplus
  17. #if __cplusplus
  18. extern "C" {
  19. #endif
  20. #endif /* End of #ifdef __cplusplus */
  21. /* isp sys part */
  22. #define ISP_STRIPING_MAX_NUM (3)
  23. #define ISP_NORMAL_BLOCK_NUM (1)
  24. #define ISP_DEFAULT_BLOCK_NUM (2)
  25. #define ISP_SBS_BLOCK_NUM (2)
  26. #define ISP_BE0_PIPE_ID (0)
  27. #define ISP_BE1_PIPE_ID (4)
  28. #define ISP_MAX_BE_NUM (2)
  29. #define ISP_MAX_STITCH_NUM (8)
  30. #define ISP_MAX_PIPE_NUM (8)
  31. #define ISP_STRIPING_OVERLAP_DEFAULT (128)
  32. #define ISP_WDR_CHN_MAX (4)
  33. #define ISP_SUPPORT_DE_MODULE (0)
  34. #define ISP_RES_WIDTH_MAX 8192,8192,8192,8192,8192,8192,8192,8192
  35. #define ISP_RES_HEIGHT_MAX 8192,8192,8192,8192,8192,8192,8192,8192
  36. extern HI_U16 g_au16ResWMax[ISP_MAX_PIPE_NUM];
  37. extern HI_U16 g_au16ResHMax[ISP_MAX_PIPE_NUM];
  38. /* isp alg part */
  39. #define HI_ISP_CLUT_LUT_LENGTH (22167)
  40. #define HI_ISP_CA_YRATIO_LUT_LENGTH (256)
  41. #define STATIC_DP_COUNT_NORMAL (4096)
  42. #define STATIC_DP_COUNT_MAX (STATIC_DP_COUNT_NORMAL * ISP_SBS_BLOCK_NUM)
  43. #define ISP_SUPPORT_OFFLINE_DPC_CALIBRATION (0)
  44. #define HI_ISP_SPECAWB_FACT_ELEMENT_LUT0 (4096)
  45. #define HI_ISP_SPECAWB_FACT_ELEMENT_LUT1 (4096)
  46. #define HI_ISP_SPECAWB_FACT_ELEMENT_LUT2 (4096)
  47. #define HI_ISP_SPECAWB_FACT_ELEMENT_LUT3 (4096)
  48. #define HI_ISP_SPECAWB_FACT_ELEMENT_LUT4 (4096)
  49. #define HI_ISP_SPECAWB_FACT_ELEMENT_LUT5 (4096)
  50. #define HI_ISP_SPECAWB_FACT_ELEMENT_LUT6 (4096)
  51. #define HI_ISP_SPECAWB_WB_CNVTBL_LUT (16384)
  52. #define HI_ISP_SPECAWB_KELDBB_LUT (16384)
  53. #define HI_ISP_SPECAWB_BBL_LUT (240)
  54. #define HI_ISP_SPECAWB_CAA_LUT1 (16384)
  55. #define HI_ISP_SPECAWB_CAA_LUT2 (16384)
  56. #define HI_ISP_SPECAWB_CAA_LUT3 (16384)
  57. #define ISP_SPECAWB_BUF_SIZE (110832)
  58. #define AWB_ZONE_BIN (4)
  59. #define AWB_LIB_NUM (8)
  60. #define AE_LIB_NUM (8)
  61. #define HI_ISP_SHARPEN_RGAIN (31)
  62. #define HI_ISP_SHARPEN_BGAIN (31)
  63. #define HI_ISP_SHARPEN_RGAIN_BIT (31)
  64. #define HI_ISP_SHARPEN_BGAIN_BIT (31)
  65. #define HI_ISP_DRC_STRENGTH_MAX (255)
  66. #define HI_ISP_DRC_SPA_FLT_COEF_MAX (10)
  67. #define HI_ISP_DEMOSAIC_DETAIL_SMOOTH_RANGE_MAX (8)
  68. #define HI_ISP_DEMOSAIC_DETAIL_SMOOTH_RANGE_MIN (1)
  69. #define HI_ISP_DEMOSAIC_NONDIR_MFDETALEHC_STR_MAX (16)
  70. #define HI_ISP_LDCI_HEPOSWGT_MAX (0x80)
  71. #define HI_ISP_LDCI_HENEGWGT_MAX (0x80)
  72. #define HI_ISP_PREGAMMA_LUT_MAX (0x100000)
  73. #ifdef __cplusplus
  74. #if __cplusplus
  75. }
  76. #endif
  77. #endif /* End of #ifdef __cplusplus */
  78. #endif /* __HI_ISP_DEFINES_H__ */