mw::hgr::HGRcgGetWorkSize Function

Syntax

#include <mw/hgr/hgr.h>

s32 HGRcgGetWorkSize(
     HGConfig *hgConfig,
     u32      *workSize
);

Parameters

Name Description
in hgConfig Specifies the image size, rectangular region targeted for processing, recognition movement mode, 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 hgConfig and call the HGRcgGetWorkSize 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 HGRcgProcessInit initialization function.

Revision History

2014/05/28
Initial version.

CONFIDENTIAL