#include <mw/mgr/mgr.h> typedef struct { s32 xsize ; /* Image data width (128 × 160). */ s32 ysize ; /* Image data height ( 96 × 120). */ PSRect mgrect ; /* [pixel] coordinate for the rectangular region targeted for processing. */ u8 mgmode ; /* Movement recognition mode (0,1). */ u8 frmparam ; /* Difference sensitivity between frames (0 through 10). */ u8 spdparam ; /* Speed sensitivity (0 through 4). */ u8 sknparam ; /* Skin-tone filter parameter (0 through 200). */ u8 reserve0 ; /* Reserve flag 0. */ u8 reserve1 ; /* Reserve flag 1. */ u8 reserve2 ; /* Reserve flag 2. */ u8 reserve3 ; /* Reserve flag 3. */ } MGConfig;
This structure is used to set parameters for the MGRcgGetWorkSize
,
MGRcgProcessInit
, and
MGRcgProcessExec
functions.
xsize
. ysize
. mgrect
. 0
or 1
in mgmode
.
0
: Motion detection mode. 1
: Reserved (unused). 0
through 10
) in frmparam
.
0
: Sensitive through 5
: Normal through 10
: Insensitive 0
through 4
) in spdparam
.
0
: For fast motions through 2
: Normal through 4
: For slow motions 0
through 200
in sknparam
.
0
. The default value is 100
. reserve0
through reserve3
are unused.
Restrictions
MGIMG_WIDMIN
,MGIMG_HEIMIN
) or (MGIMG_WIDMAX
,MGIMG_HEIMAX
) in (xsize
,ysize
). PSRect
. MGEXT_RECTMIN
≦(mgrect.ex-mgrect.sx+1)
. MGEXT_RECTMIN
≦(mgrect.ey-mgrect.sy+1)
. Name | Description | |
---|---|---|
in | xsize | Sets the image data width in pixels. |
in | ysize | Sets the image data height in pixels. |
in | mgrect | Sets the rectangular region targeted for processing in pixels. |
in | mgmode |
Sets the movement recognition mode. Set to 0 because values other than zero are not supported.
|
in | frmparam |
Sets the difference sensitivity between frames to a value from 0 to 10 . 0 (sensitive) through 10 (insensitive)
|
in | spdparam |
Sets the speed sensitivity to a value from 0 to 4 . 0 (fast motions) through 4 (slow motions)
|
in | sknparam |
Sets the skin-tone filter parameter to a value from 0 to 200 . 0 (Skin-tone filter disabled)100 (default)
|
CONFIDENTIAL