mw::mgr::MGRcgGetWorkSize Function

Syntax

#include <mw/mgr/mgr.h>

s32 MGRcgGetWorkSize(
     MGConfig *mgConfig,
     u32      *workSize
);

Parameters

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.

Return Values

Value Description
PSERR_TRUE Success.
PSERR_ARGU Argument error.
PSERR_IMAG Abnormal image.
PSERR_PROC Processing is impossible.

Description

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.

Revision History

2014/05/28
Initial version.

CONFIDENTIAL