ax_ext_ipt.h 1.1 KB

12345678910111213141516171819202122232425
  1. #ifndef _DEF_AX_EXT_IPT_H_
  2. #define _DEF_AX_EXT_IPT_H_
  3. #include "ax_ivps_api.h"
  4. typedef struct {
  5. AX_U8 nEnable; /* GDC Enable. Accuracy: U1.0 Range: [0, 1] */
  6. AX_S64 nCameraMatrix[9];
  7. AX_S64 nDistortionCoeff[8];
  8. } AX_EXT_GDC_CFG_T;
  9. typedef struct {
  10. AX_U8 nEnable; /* LDC Enable. Accuracy: U1.0 Range: [0, 1] */
  11. AX_U8 nAspect; /* Accuracy: U1.0 Range: [0, 1], Whether aspect ration is keep */
  12. AX_S16 nXRatio; /* Range: [0, 100], field angle ration of horizontal, valid when bAspect=0. */
  13. AX_S16 nYRatio; /* Range: [0, 100], field angle ration of vertical, valid when bAspect=0. */
  14. AX_S16 nXYRatio; /* Range: [0, 100], field angle ration of all,valid when bAspect=1. */
  15. AX_S16 nCenterXOffset; /* Range: [-511, 511], horizontal offset of the image distortion center relative to image center. */
  16. AX_S16 nCenterYOffset; /* Range: [-511, 511], vertical offset of the image distortion center relative to image center. */
  17. AX_S16 nDistortionRatio; /* Range: [0, 1023], LDC distortion ratio. 512 is best undistortion */
  18. } AX_EXT_LDC_CFG_T;
  19. AX_S32 TransferLDCCfg(AX_EXT_LDC_CFG_T *ext_ldc_config, AX_IVPS_GDC_CFG_S *gdc_config);
  20. #endif