MinMax

Minimum and maximum

Supported Technologies

SSE2

Synopsis

FwStatus   fwsMinMax_8u ( const Fw8u * pSrc, int len, Fw8u * pMin, Fw8u * pMax );
FwStatus   fwsMinMax_16u ( const Fw16u * pSrc, int len, Fw16u * pMin, Fw16u * pMax );
FwStatus   fwsMinMax_16s ( const Fw16s * pSrc, int len, Fw16s * pMin, Fw16s * pMax );
FwStatus   fwsMinMax_32u ( const Fw32u * pSrc, int len, Fw32u * pMin, Fw32u * pMax );
FwStatus   fwsMinMax_32s ( const Fw32s * pSrc, int len, Fw32s * pMin, Fw32s * pMax );
FwStatus   fwsMinMax_32f ( const Fw32f * pSrc, int len, Fw32f * pMin, Fw32f * pMax );
FwStatus   fwsMinMax_64f ( const Fw64f * pSrc, int len, Fw64f * pMin, Fw64f * pMax );

Parameters

len   Specifies the number of elements in a buffer.
pMax   Pointer to the destination buffer that contains the maximum value in the source buffer.
pMin   Pointer to the destination buffer that contains the minimum value in the source buffer.
pSrc   Pointer to a source buffer.

Description

These functions step through vector elements in a source buffer, find the minimum and maximum values, and write the values to locations specified by pointers.