mw::mgr::MGConfig Structure

Syntax

#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; 

Description

This structure is used to set parameters for the MGRcgGetWorkSize, MGRcgProcessInit, and MGRcgProcessExec functions.

Restrictions

  • Set either (MGIMG_WIDMIN,MGIMG_HEIMIN) or (MGIMG_WIDMAX,MGIMG_HEIMAX) in (xsize,ysize).
  • Set the coordinate value (in pixels) in the image data size to PSRect.
  • Set the target rectangle so its width is MGEXT_RECTMIN≦(mgrect.ex-mgrect.sx+1).
  • Set the target rectangle so its height is MGEXT_RECTMIN≦(mgrect.ey-mgrect.sy+1).
  • The [pixel] coordinate is the coordinate that uses the top left as the origin (0, 0).
  • Member Variables

    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)

    Revision History

    2014/05/28
    Initial version.

    CONFIDENTIAL