hi_isp_debug.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /******************************************************************************
  2. Copyright (C), 2016, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : hi_isp_debug.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software group
  7. Created : 2010/08/30
  8. Description :
  9. History :
  10. 1.Date : 2010/08/30
  11. Author :
  12. Modification: Created file
  13. ******************************************************************************/
  14. #ifndef __HI_ISP_DEBUG_H__
  15. #define __HI_ISP_DEBUG_H__
  16. #include "hi_debug.h"
  17. #if 0
  18. #define PRINT_DEBUG_INFO
  19. #endif
  20. #if 0
  21. #define PRINT_INFO_2FILE
  22. #endif
  23. #define ISP_TRACE(level, fmt, ...)\
  24. do{ \
  25. HI_TRACE(level, HI_ID_ISP,"[Func]:%s [Line]:%d [Info]:"fmt,__FUNCTION__, __LINE__,##__VA_ARGS__);\
  26. }while(0)
  27. /* To avoid divide-0 exception in code. */
  28. #define DIV_0_TO_1(a) ( (0 == (a)) ? 1 : (a) )
  29. #define DIV_0_TO_1_FLOAT(a) ((((a) < 1E-10) && ((a) > -1E-10)) ? 1 : (a))
  30. #endif /* __HI_ISP_DEBUG_H__ */