ivs_md.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /******************************************************************************
  2. Copyright (C), 2001-2015, Hisilicon Tech. Co., Ltd.
  3. ******************************************************************************
  4. File Name : ivs_md.h
  5. Version : Initial Draft
  6. Author : Hisilicon multimedia software (IVE) group
  7. Created : 2014/11/10
  8. Description :
  9. History :
  10. 1.Date : 2014/11/10
  11. Author :
  12. Modification: Created file
  13. 2.Date : 2015/11/24
  14. Author :
  15. Modification: Add HI_IVS_MD_Process sad parameter
  16. ******************************************************************************/
  17. #ifndef _HI_IVS_MD_H_
  18. #define _HI_IVS_MD_H_
  19. #include "hi_md.h"
  20. #ifdef __cplusplus
  21. #if __cplusplus
  22. extern "C"{
  23. #endif
  24. #endif /* End of #ifdef __cplusplus */
  25. /*****************************************************************************
  26. * Prototype : HI_IVS_MD_Init
  27. * Description : Motion Detection(MD) initialization.
  28. * Parameters : HI_VOID.
  29. *
  30. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  31. * Spec :
  32. * History:
  33. *
  34. * 1. Date : 2014/11/11
  35. * Author :
  36. * Modification : Created function
  37. *
  38. *****************************************************************************/
  39. HI_S32 HI_IVS_MD_Init(HI_VOID);
  40. /*****************************************************************************
  41. * Prototype : HI_IVS_MD_Exit
  42. * Description : Motion Detection(MD) exit.
  43. * Parameters : HI_VOID.
  44. *
  45. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  46. * Spec :
  47. * History:
  48. *
  49. * 1. Date : 2014/11/11
  50. * Author :
  51. * Modification : Created function
  52. *
  53. *****************************************************************************/
  54. HI_S32 HI_IVS_MD_Exit(HI_VOID);
  55. /*****************************************************************************
  56. * Prototype : HI_IVS_MD_CreateChn
  57. * Description : Create Motion Detection(MD) Chn.
  58. * Parameters : MD_CHN MdChn Md chn.
  59. * MD_ATTR_S *pstMdAttr Md attribute parameters
  60. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  61. * Spec :
  62. * History:
  63. *
  64. * 1. Date : 2014/11/11
  65. * Author :
  66. * Modification : Created function
  67. *
  68. *****************************************************************************/
  69. HI_S32 HI_IVS_MD_CreateChn(MD_CHN MdChn,MD_ATTR_S *pstMdAttr);
  70. /*****************************************************************************
  71. * Prototype : HI_IVS_MD_DestroyChn
  72. * Description : Destroy Motion Detection(MD) chn.
  73. * Parameters : MD_CHN MdChn Md chn that would be destroy.
  74. *
  75. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  76. * Spec :
  77. * History:
  78. *
  79. * 1. Date : 2014/11/11
  80. * Author :
  81. * Modification : Created function
  82. *
  83. *****************************************************************************/
  84. HI_S32 HI_IVS_MD_DestroyChn(MD_CHN MdChn);
  85. /*****************************************************************************
  86. * Prototype : HI_IVS_MD_SetChnAttr
  87. * Description : Set Motion Detection(MD) chn attribute.
  88. * Parameters : MD_CHN MdChn Md chn.
  89. * MD_ATTR_S *pstMdAttr Md attribute parameters
  90. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  91. * Spec :
  92. * History:
  93. *
  94. * 1. Date : 2015/04/10
  95. * Author :
  96. * Modification : Created function
  97. *
  98. *****************************************************************************/
  99. HI_S32 HI_IVS_MD_SetChnAttr(MD_CHN MdChn,MD_ATTR_S *pstMdAttr);
  100. /*****************************************************************************
  101. * Prototype : HI_IVS_MD_GetChnAttr
  102. * Description : Get Motion Detection(MD) chn attribute.
  103. * Parameters : MD_CHN MdChn Md chn.
  104. * MD_ATTR_S *pstMdAttr Md attribute parameters
  105. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  106. * Spec :
  107. * History:
  108. *
  109. * 1. Date : 2015/04/10
  110. * Author :
  111. * Modification : Created function
  112. *
  113. *****************************************************************************/
  114. HI_S32 HI_IVS_MD_GetChnAttr(MD_CHN MdChn,MD_ATTR_S *pstMdAttr);
  115. /*****************************************************************************
  116. * Prototype : HI_IVS_MD_GetBg
  117. * Description : Get Motion Detection(MD) background image.
  118. * Parameters : MD_CHN MdChn Md chn.
  119. * IVE_DST_IMAGE_S *pstBg Output background image
  120. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  121. * Spec :
  122. * History:
  123. *
  124. * 1. Date : 2014/11/11
  125. * Author :
  126. * Modification : Created function
  127. *
  128. *****************************************************************************/
  129. HI_S32 HI_IVS_MD_GetBg(MD_CHN MdChn,IVE_DST_IMAGE_S *pstBg);
  130. /*****************************************************************************
  131. * Prototype : HI_IVS_MD_Process
  132. * Description : Motion Detection(MD) process.
  133. * Parameters : MD_CHN MdChn Md chn.
  134. * IVE_SRC_IMAGE_S *pstCur Current image
  135. * IVE_SRC_IMAGE_S *pstRef Reference image
  136. * IVE_DST_IMAGE_S *pstSad Output result of sad value
  137. * IVE_DST_MEM_INFO_S *pstBlob Output blob
  138. * Return Value : HI_SUCCESS: Success;Error codes: Failure.
  139. * Spec :
  140. * History:
  141. *
  142. * 1. Date : 2014/11/11
  143. * Author :
  144. * Modification : Created function
  145. * 2. Date : 2015/11/24
  146. * Author :
  147. * Modification : Add pstSad parameter
  148. *
  149. *****************************************************************************/
  150. HI_S32 HI_IVS_MD_Process(MD_CHN MdChn,IVE_SRC_IMAGE_S *pstCur,IVE_SRC_IMAGE_S *pstRef,
  151. IVE_DST_IMAGE_S *pstSad,IVE_DST_MEM_INFO_S *pstBlob);
  152. #ifdef __cplusplus
  153. #if __cplusplus
  154. }
  155. #endif
  156. #endif
  157. #endif/*_HI_IVS_MD_H_*/