#include <mw/mgr/mgr.h> s32 MGRcgGetWorkSize( MGConfig *mgConfig, u32 *workSize );
Name | Description | |
---|---|---|
in | mgConfig | Specifies the image size, rectangular region for processing, recognition mode, difference sensitivity between frames, and speed sensitivity parameters. |
out | workSize | The working memory size is specified in bytes. |
Value | Description |
---|---|
PSERR_TRUE | Success. |
PSERR_ARGU | Argument error. |
PSERR_IMAG | Abnormal image. |
PSERR_PROC | Processing is impossible. |
Gets the required working memory size.
If you set an appropriate value for mgConfig
and call the MGRcgGetWorkSize
function, the required working memory size will always be set in bytes in workSize
.
Allocate the working memory area set in workSize
to the application, and set it in the MGRcgProcessInit
initialization function.
CONFIDENTIAL