c_pxmax - Determines the maximum values of two input arrays

SYNTAX

#include "worgen.h"

FUNCTION c_pxmax (in, map, out, ns, dtype)

     unsigned char          *in;
     unsigned char          *map;
     unsigned char          *out;
     long                   *ns;
     long                   *dtype;

PARAMETERS

in (input, 'dtype')

The input array.

map (input, 'dtype')

The mapping array.

out (output, 'dtype')

The output array.

ns (input, integer)

The number of samples to be scanned from the buffer.

dtype (input, integer)

An integer value that represents the type of data in the input and output arrays. Legal values include:

     = EBYTE(1):     unsigned byte data
     = EWORD(2):     signed two byte data
     = ELONG(3):     signed four byte data
     = EREAL(4):     four byte floating point data

DESCRIPTION

The c_pxmax() call is used to determine the maximum of an input array with a mapping array to generate an output array.

RETURN VALUE

c_pxmax() returns

     E_SUCC --> successful completion
     TYPERR --> invalid data type specified