mediaLib Library Functions mlibVectorSumAbsDiffU8Sat(3MLIB)
NAME
mlibVectorSumAbsDiffU8Sat, mlibVectorSumAbsDiffS8Sat,
mlibVectorSumAbsDiffS16Sat, mlibVectorSumAbsDiffS32Sat
- sum of the absolute values of the differences of two vec-
tors
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVectorSumAbsDiffU8Sat(mlibd64 *z,
const mlibu8 *x, const mlibu8 *y, mlibs32 n);
mlibstatus mlibVectorSumAbsDiffS8Sat(mlibd64 *z,
const mlibs8 *x, const mlibs8 *y, mlibs32 n);
mlibstatus mlibVectorSumAbsDiffS16Sat(mlibd64 *z,
const mlibs16 *x, const mlibs16 *y, mlibs32 n);
mlibstatus mlibVectorSumAbsDiffS32Sat(mlibd64 *z,
const mlibs32 *x, const mlibs32 *y, mlibs32 n);
DESCRIPTION
Each of these functions computes the sum of the absolute
values of the differences of two vectors.
The following equation is used:
n-1
z[0] = SUM x[i] - y[i]
i=0
PARAMETERS
Each of the functions takes the following arguments:
z Pointer to the sum of the absolute differences between
two vectors.
x Pointer to the first element of the first source vec-
tor.
y Pointer to the first element of the second source vec-
tor.
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVectorSumAbsDiffU8Sat(3MLIB)
n Number of elements in the vectors.
RETURN VALUES
Each of the functions returns MLIBSUCES if successful.
Otherwise it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|