fisheye_calibrate.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /******************************************************************************
  2. Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : histitch.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software group
  7. Created :
  8. Description :
  9. History :
  10. 1.Date : 2016/09/25
  11. Author :
  12. Modification: Created file
  13. ******************************************************************************/
  14. #ifndef __HIGDC_H__
  15. #define __HIGDC_H__
  16. #ifdef __cplusplus
  17. #if __cplusplus
  18. extern "C" {
  19. #endif
  20. #endif /* __cplusplus */
  21. #include "hi_comm_video.h"
  22. #define HI_ERR_FISHEYE_CALIBRATE_NULL_PTR 0xA0258011
  23. #define HI_ERR_FISHEYE_CALIBRATE_ILLEGAL_PARAM 0xA0258012
  24. #define HI_ERR_FISHEYE_CALIBRATE_NOT_SUPPORT 0xA0258013
  25. typedef enum hiFISHEYE_CALIBRATE_LEVEL_E
  26. {
  27. LEVEL_0 = 0, /*calibrate level 0*/
  28. LEVEL_1 = 1, /*calibrate level 1*/
  29. LEVEL_2 = 2, /*calibrate level 2*/
  30. LEVEL_BUTT
  31. } FISHEYE_CALIBRATE_LEVEL_E;
  32. typedef struct hiFISHEYE_CALIBTATE_RESULT_S
  33. {
  34. HI_S32 s32OffsetV; /* the horizontal offset between image center and physical center of len*/
  35. HI_S32 s32OffsetH; /* the vertical offset between image center and physical center of len*/
  36. HI_S32 s32Radius_X; /* the X coordinate of physical center of len*/
  37. HI_S32 s32Radius_Y; /* the Y coordinate of physical center of len*/
  38. HI_U32 u32Radius; /* the radius of len*/
  39. } FISHEYE_CALIBTATE_RESULT_S;
  40. typedef struct hiCALIBTATE_OUTPUT_S
  41. {
  42. FISHEYE_CALIBTATE_RESULT_S stCalibrateResult; /*the output of result*/
  43. } CALIBTATE_OUTPUT_S;
  44. HI_S32 HI_FISHEYE_ComputeCalibrateResult(VIDEO_FRAME_S *pstVFramIn, FISHEYE_CALIBRATE_LEVEL_E enLevel, CALIBTATE_OUTPUT_S *pOutCalibrate);
  45. HI_S32 HI_FISHEYE_MarkCalibrateResult(VIDEO_FRAME_S *pstPicIn, VIDEO_FRAME_S *pstPicOut, FISHEYE_CALIBTATE_RESULT_S *pCalibrateResult);
  46. #ifdef __cplusplus
  47. #if __cplusplus
  48. }
  49. #endif
  50. #endif /* __cplusplus */
  51. #endif /* __HISTITCH_H__ */