hi_comm_snap.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /******************************************************************************
  2. Copyright (C), 2017, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : hi_comm_snap.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software group
  7. Created : 2017/06/19
  8. Last Modified :
  9. Description :
  10. Function List :
  11. History :
  12. ******************************************************************************/
  13. #ifndef __HI_COMM_SNAP_H__
  14. #define __HI_COMM_SNAP_H__
  15. #include "hi_common.h"
  16. #include "hi_comm_video.h"
  17. #include "hi_comm_isp.h"
  18. #ifdef __cplusplus
  19. #if __cplusplus
  20. extern "C"
  21. {
  22. #endif
  23. #endif /* __cplusplus */
  24. typedef enum hiSNAP_TYPE_E
  25. {
  26. SNAP_TYPE_NORMAL, /* ZSL and none-ZSL type */
  27. SNAP_TYPE_PRO, /* Professional type support HDR, AEB, LongExposure */
  28. SNAP_TYPE_BUTT
  29. } SNAP_TYPE_E;
  30. typedef struct hiSNAP_PRO_MANUAL_PARAM_S
  31. {
  32. HI_U32 au32ManExpTime[PRO_MAX_FRAME_NUM];/*RW; Range: [0x0, 0xFFFFFFFF];sensor exposure time (unit: us ), it's related to the specific sensor */
  33. HI_U32 au32ManSysgain[PRO_MAX_FRAME_NUM];/*RW; Range : [0x400, 0xFFFFFFFF];system gain (unit: times, 10bit precision) , it's related to the specific sensor and ISP Dgain range */
  34. } SNAP_PRO_MANUAL_PARAM_S;
  35. typedef struct hiSNAP_PRO_AUTO_PARAM_S
  36. {
  37. HI_U16 au16ProExpStep[PRO_MAX_FRAME_NUM];/*RW; Range:[0x0, 0xFFFF];Professional exposure step (unit: times, 8bit precision)*/
  38. } SNAP_PRO_AUTO_PARAM_S;
  39. typedef struct hiSNAP_PRO_PARAM_S
  40. {
  41. OPERATION_MODE_E enOperationMode;
  42. SNAP_PRO_AUTO_PARAM_S stAutoParam;
  43. SNAP_PRO_MANUAL_PARAM_S stManualParam;
  44. } SNAP_PRO_PARAM_S;
  45. typedef struct hiSNAP_NORMAL_ATTR_S
  46. {
  47. HI_U32 u32FrameCnt; /* RW;Set capture frame counts */
  48. HI_U32 u32RepeatSendTimes; /* [0,2]; When FE-BE is offline, the first raw frame that is triggered should be sent repeatedly to the BE. */
  49. /* ZSL struct */
  50. HI_BOOL bZSL; /* RW;statical attrs */
  51. HI_U32 u32FrameDepth; /* buffer depth */
  52. HI_U32 u32RollbackMs; /* RW;Rollback time, unit(ms), invalid when bZSL is HI_FALSE */
  53. HI_U32 u32Interval; /* RW;For continuous capture, select frame every u32Intercal frames */
  54. } SNAP_NORMAL_ATTR_S;
  55. typedef struct hiSNAP_PRO_ATTR_S
  56. {
  57. HI_U32 u32FrameCnt; /* [1, PRO_MAX_FRAME_NUM] */
  58. HI_U32 u32RepeatSendTimes; /* [0,2];When FE-BE is offline, the first raw frame that is triggered should be sent repeatedly to the BE. */
  59. SNAP_PRO_PARAM_S stProParam;
  60. } SNAP_PRO_ATTR_S;
  61. typedef struct hiSNAP_USER_ATTR_S
  62. {
  63. HI_U32 u32FrameDepth;
  64. } SNAP_USER_ATTR_S;
  65. typedef struct hiSNAP_ATTR_S
  66. {
  67. SNAP_TYPE_E enSnapType;
  68. HI_BOOL bLoadCCM; /*HI_TRUE:use CCM of SnapIspInfo, HI_FALSE: Algorithm calculate */
  69. union
  70. {
  71. SNAP_NORMAL_ATTR_S stNormalAttr;
  72. SNAP_PRO_ATTR_S stProAttr;
  73. };
  74. } SNAP_ATTR_S;
  75. typedef struct hiISP_PRO_BNR_PARAM_S
  76. {
  77. HI_BOOL bEnable;
  78. HI_U32 u32ParamNum;
  79. ISP_NR_AUTO_ATTR_S *pastNrAttr;
  80. } ISP_PRO_BNR_PARAM_S;
  81. typedef struct hiISP_PRO_SHARPEN_PARAM_S
  82. {
  83. HI_BOOL bEnable;
  84. HI_U32 u32ParamNum;
  85. ISP_SHARPEN_AUTO_ATTR_S *pastShpAttr;
  86. } ISP_PRO_SHARPEN_PARAM_S;
  87. typedef struct hiBNR_DUMP_ATTR_S
  88. {
  89. HI_BOOL bEnable;
  90. HI_U32 u32Depth;
  91. } BNR_DUMP_ATTR_S;
  92. #ifdef __cplusplus
  93. #if __cplusplus
  94. }
  95. #endif
  96. #endif /* __cplusplus */
  97. #endif /* End of #ifndef __HI_COMM_SNAP_H__ */