mediaLib Library Functions mlibVectorMulSU8Mod(3MLIB)
NAME
mlibVectorMulSU8Mod, mlibVectorMulSU8Sat,
mlibVectorMulSU8CMod, mlibVectorMulSU8CSat,
mlibVectorMulS8Mod, mlibVectorMulS8Sat,
mlibVectorMulS8CMod, mlibVectorMulS8CSat,
mlibVectorMulS16Mod, mlibVectorMulS16Sat,
mlibVectorMulS16CMod, mlibVectorMulS16CSat,
mlibVectorMulS32Mod, mlibVectorMulS32Sat,
mlibVectorMulS32CMod, mlibVectorMulS32CSat - vector
multiplication by scalar, in place
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVectorMulSU8Mod(mlibu8 *xz,
const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorMulSU8Sat(mlibu8 *xz,
const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorMulSU8CMod(mlibu8 *xz,
const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorMulSU8CSat(mlibu8 *xz,
const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorMulS8Mod(mlibs8 *xz,
const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorMulS8Sat(mlibs8 *xz,
const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorMulS8CMod(mlibs8 *xz,
const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorMulS8CSat(mlibs8 *xz,
const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorMulS16Mod(mlibs16 *xz,
const mlibs16 *c, mlibs32 n);
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVectorMulSU8Mod(3MLIB)
mlibstatus mlibVectorMulS16Sat(mlibs16 *xz,
const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorMulS16CMod(mlibs16 *xz,
const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorMulS16CSat(mlibs16 *xz,
const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorMulS32Mod(mlibs32 *xz,
const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorMulS32Sat(mlibs32 *xz,
const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorMulS32CMod(mlibs32 *xz,
const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorMulS32CSat(mlibs32 *xz,
const mlibs32 *c, mlibs32 n);
DESCRIPTION
Each of these functions computes an in-place multiplication
of a vector by a scalar.
For real data, the following equation is used:
xz[i] = xz[i] * c[0]
where i = 0, 1, ..., (n - 1).
For complex data, the following equation is used:
tmp = xz[2*i]
xz[2*i] = tmp*c[0] - xz[2*i ] 1]*c[1]
xz[2*i ] 1] = tmp*c[1] ] xz[2*i ] 1]*c[0]
where i = 0, 1, ..., (n - 1).
SunOS 5.11 Last change: 2 Mar 2007 2
mediaLib Library Functions mlibVectorMulSU8Mod(3MLIB)
PARAMETERS
Each of the functions takes the following arguments:
xz Pointer to the first element of the source and desti-
nation vector.
c Pointer to the source scalar. When the function is
used with complex data types, c[0] contains the real
part of the scalar, and c[1] contains the imaginary
part of the scalar.
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
mlibVectorMulSU8U8Mod(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 3
|