mediaLib Library Functions mlibVectorScaleU8Mod(3MLIB)
NAME
mlibVectorScaleU8Mod, mlibVectorScaleU8Sat,
mlibVectorScaleU8CMod, mlibVectorScaleU8CSat,
mlibVectorScaleS8Mod, mlibVectorScaleS8Sat,
mlibVectorScaleS8CMod, mlibVectorScaleS8CSat,
mlibVectorScaleS16Mod, mlibVectorScaleS16Sat,
mlibVectorScaleS16CMod, mlibVectorScaleS16CSat,
mlibVectorScaleS32Mod, mlibVectorScaleS32Sat,
mlibVectorScaleS32CMod, mlibVectorScaleS32CSat - vec-
tor linear scaling, in place
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVectorScaleU8Mod(mlibu8 *xz,
const mlibu8 *a, const mlibu8 *b, mlibs32 n);
mlibstatus mlibVectorScaleU8Sat(mlibu8 *xz,
const mlibu8 *a, const mlibu8 *b, mlibs32 n);
mlibstatus mlibVectorScaleU8CMod(mlibu8 *xz,
const mlibu8 *a, const mlibu8 *b, mlibs32 n);
mlibstatus mlibVectorScaleU8CSat(mlibu8 *xz,
const mlibu8 *a, const mlibu8 *b, mlibs32 n);
mlibstatus mlibVectorScaleS8Mod(mlibs8 *xz,
const mlibs8 *a, const mlibs8 *b, mlibs32 n);
mlibstatus mlibVectorScaleS8Sat(mlibs8 *xz,
const mlibs8 *a, const mlibs8 *b, mlibs32 n);
mlibstatus mlibVectorScaleS8CMod(mlibs8 *xz,
const mlibs8 *a, const mlibs8 *b, mlibs32 n);
mlibstatus mlibVectorScaleS8CSat(mlibs8 *xz,
const mlibs8 *a, const mlibs8 *b, mlibs32 n);
mlibstatus mlibVectorScaleS16Mod(mlibs16 *xz,
const mlibs16 *a, const mlibs16 *b, mlibs32 n);
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVectorScaleU8Mod(3MLIB)
mlibstatus mlibVectorScaleS16Sat(mlibs16 *xz,
const mlibs16 *a, const mlibs16 *b, mlibs32 n);
mlibstatus mlibVectorScaleS16CMod(mlibs16 *xz,
const mlibs16 *a, const mlibs16 *b, mlibs32 n);
mlibstatus mlibVectorScaleS16CSat(mlibs16 *xz,
const mlibs16 *a, const mlibs16 *b, mlibs32 n);
mlibstatus mlibVectorScaleS32Mod(mlibs32 *xz,
const mlibs32 *a, const mlibs32 *b, mlibs32 n);
mlibstatus mlibVectorScaleS32Sat(mlibs32 *xz,
const mlibs32 *a, const mlibs32 *b, mlibs32 n);
mlibstatus mlibVectorScaleS32CMod(mlibs32 *xz,
const mlibs32 *a, const mlibs32 *b, mlibs32 n);
mlibstatus mlibVectorScaleS32CSat(mlibs32 *xz,
const mlibs32 *a, const mlibs32 *b, mlibs32 n);
DESCRIPTION
Each of these functions performs an in-place scaling of a
vector by multiplying by a scalar and adding an offset.
For real data, the following equation is used:
xz[i] = a[0]*xz[i] ] b[0]
where i = 0, 1, ..., (n - 1).
For complex data, the following equation is used:
tmp = xz[2*i]
xz[2*i] = a[0]*tmp - a[1]*xz[2*i ] 1] ] b[0]
xz[2*i ] 1] = a[1]*tmp ] a[0]*xz[2*i ] 1] ] b[1]
where i = 0, 1, ..., (n - 1).
SunOS 5.11 Last change: 2 Mar 2007 2
mediaLib Library Functions mlibVectorScaleU8Mod(3MLIB)
PARAMETERS
Each of the functions takes the following arguments:
xz Pointer to the first element of the source and desti-
nation vector.
a Pointer to the source scaling factor. When the func-
tion is used with complex data types, a[0] contains
the real part of the scaling factor, and a[1] contains
the imaginary part of the scaling factor.
b Pointer to the source offset. When the function is
used with complex data types, b[0] contains the real
part of the offset, and b[1] contains the imaginary
part of the offset.
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
mlibVectorScaleU8U8Mod(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 3
|