ss928_framework/ss928sdk/include/ss_ivs_md.h

109 lines
3.7 KiB
C
Raw Normal View History

2024-12-16 13:31:45 +08:00
/*
Copyright (c), 2001-2022, Shenshu Tech. Co., Ltd.
*/
#ifndef __SS_IVS_MD_H__
#define __SS_IVS_MD_H__
#include "ot_common_md.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Prototype : ss_ivs_md_init
* Description : Motion Detection(MD) initialization.
* Parameters : td_void.
*
* Return Value : TD_SUCCESS: Success;Error codes: Failure.
* Date : 2019-06-30
* Author : Multimedia software (SVP) group
*/
td_s32 ss_ivs_md_init(td_void);
/*
* Prototype : ss_ivs_md_exit
* Description : Motion Detection(MD) exit.
* Parameters : td_void.
*
* Return Value : TD_SUCCESS: Success;Error codes: Failure.
* Date : 2019-06-30
* Author : Multimedia software (SVP) group
*/
td_s32 ss_ivs_md_exit(td_void);
/*
* Prototype : ss_ivs_md_create_chn
* Description : Create Motion Detection(MD) Chn.
* Parameters : ot_md_chn md_chn Md chn.
* ot_md_attr *md_attr Md attribute parameters
* Return Value : TD_SUCCESS: Success;Error codes: Failure.
* Date : 2019-06-30
* Author : Multimedia software (SVP) group
*/
td_s32 ss_ivs_md_create_chn(ot_md_chn md_chn, const ot_md_attr *md_attr);
/*
* Prototype : ss_ivs_md_destroy_chn
* Description : Destroy Motion Detection(MD) chn.
* Parameters : ot_md_chn md_chn Md chn that would be destroy.
*
* Return Value : TD_SUCCESS: Success;Error codes: Failure.
* Date : 2019-06-30
* Author : Multimedia software (SVP) group
*/
td_s32 ss_ivs_md_destroy_chn(ot_md_chn md_chn);
/*
* Prototype : ss_ivs_md_set_chn_attr
* Description : Set Motion Detection(MD) chn attribute.
* Parameters : ot_md_chn md_chn Md chn.
* ot_md_attr *md_attr Md attribute parameters
* Return Value : TD_SUCCESS: Success;Error codes: Failure.
* Date : 2019-06-30
* Author : Multimedia software (SVP) group
*/
td_s32 ss_ivs_md_set_chn_attr(ot_md_chn md_chn, const ot_md_attr *md_attr);
/*
* Prototype : ss_ivs_md_get_chn_attr
* Description : Get Motion Detection(MD) chn attribute.
* Parameters : ot_md_chn md_chn Md chn.
* ot_md_attr *md_attr Md attribute parameters
* Return Value : TD_SUCCESS: Success;Error codes: Failure.
* Date : 2019-06-30
* Author : Multimedia software (SVP) group
*/
td_s32 ss_ivs_md_get_chn_attr(ot_md_chn md_chn, ot_md_attr *md_attr);
/*
* Prototype : ss_ivs_md_get_bg
* Description : Get Motion Detection(MD) background image.
* Parameters : ot_md_chn md_chn Md chn.
* ot_svp_dst_img *pstBg Output background image
* Return Value : TD_SUCCESS: Success;Error codes: Failure.
* Date : 2019-06-30
* Author : Multimedia software (SVP) group
*/
td_s32 ss_ivs_md_get_bg(ot_md_chn md_chn, const ot_svp_dst_img *bg);
/*
* Prototype : ss_ivs_md_proc
* Description : Motion Detection(MD) process.
* Parameters : ot_md_chn md_chn Md chn.
* ot_svp_src_img *cur Current image
* ot_svp_src_img *ref Reference image
* ot_svp_dst_img *sad Output result of sad value
* ot_svp_dst_mem_info *blob Output blob
* Return Value : TD_SUCCESS: Success;Error codes: Failure.
* Date : 2019-06-30
* Author : Multimedia software (SVP) group
*/
td_s32 ss_ivs_md_proc(ot_md_chn md_chn, const ot_svp_src_img *cur, const ot_svp_src_img *ref,
const ot_svp_dst_img *sad, const ot_svp_dst_mem_info *blob);
#ifdef __cplusplus
}
#endif
#endif /* __SS_IVS_MD_H__ */