# NNS_G2dEntryOamManagerAffine

## Syntax

      #include <nnsys/g2d/g2d_Oam.h>

      u16 NNS_G2dEntryOamManagerAffine(
                             NNSG2dOamManagerInstance*   pMan,
                             const MtxFx22*              mtx );

## Arguments

`pMan` | [OUT] OAM manager entity
`mtx` | [IN] Affine parameter matrix

## Return Values

The registered affine parameters matrix. If registration fails, returns `NNS_G2D_OAM_AFFINE_IDX_NONE`.

## Description

Sets the affine parameters in the OAM manager. The affine index is returned as the return value.
The affine management section of the OAM manager must be initialized. If registration fails because there is not enough free space or for some other reason, the function returns `NNS_G2D_OAM_AFFINE_IDX_NONE`. Use `NNS_G2dSetOamManagerAffine` when the affine-management part is not used. This function is the `NNS_G2dEntryNewOamAffine` function under a new name. The previous function will remain to preserve compatibility.

## See Also

`NNS_G2dEntryNewOamAffine`
`NNS_G2dSetOamManagerAffine`

## Revision History

2004/08/02 Renamed function.

2004/05/28 Initial version.

CONFIDENTIAL