mediaLib Library Functions mlibVectorAveU8(3MLIB)
NAME
mlibVectorAveU8, mlibVectorAveU8C, mlibVectorAveS8,
mlibVectorAveS8C, mlibVectorAveS16, mlibVectorAveS16C,
mlibVectorAveS32, mlibVectorAveS32C - vector average, in
place
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVectorAveU8(mlibu8 *xz,
const mlibu8 *y, mlibs32 n);
mlibstatus mlibVectorAveU8C(mlibu8 *xz,
const mlibu8 *y, mlibs32 n);
mlibstatus mlibVectorAveS8(mlibs8 *xz,
const mlibs8 *y, mlibs32 n);
mlibstatus mlibVectorAveS8C(mlibs8 *xz,
const mlibs8 *y, mlibs32 n);
mlibstatus mlibVectorAveS16(mlibs16 *xz,
const mlibs16 *y, mlibs32 n);
mlibstatus mlibVectorAveS16C(mlibs16 *xz,
const mlibs16 *y, mlibs32 n);
mlibstatus mlibVectorAveS32(mlibs32 *xz,
const mlibs32 *y, mlibs32 n);
mlibstatus mlibVectorAveS32C(mlibs32 *xz,
const mlibs32 *y, mlibs32 n);
DESCRIPTION
Each of these functions performs an in-place averaging of
two vectors.
It uses the following equation:
xz[i] = (xz[i] ] y[i] ] 1) / 2
SunOS 5.11 Last change: 23 May 2007 1
mediaLib Library Functions mlibVectorAveU8(3MLIB)
where i = 0, 1, ..., (n - 1) for real data; i = 0, 1, ...,
(2*n - 1) for complex data.
PARAMETERS
Each of the functions takes the following arguments:
xz Pointer to the first element of the first source and
destination vector.
y Pointer to the first element of the second source vec-
tor.
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
mlibVectorAveU8U8(3MLIB), attributes(5)
SunOS 5.11 Last change: 23 May 2007 2
|