mediaLib Library Functions mlibMatrixTransposeU8U8(3MLIB)
NAME
mlibMatrixTransposeU8U8, mlibMatrixTransposeU8CU8C,
mlibMatrixTransposeS8S8, mlibMatrixTransposeS8CS8C,
mlibMatrixTransposeS16S16,
mlibMatrixTransposeS16CS16C,
mlibMatrixTransposeS32S32, mlibMatrixTransposeS32CS32C
- matrix transpose
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibMatrixTransposeU8U8(mlibu8 *z,
const mlibu8 *x, mlibs32 m, mlibs32 n);
mlibstatus mlibMatrixTransposeU8CU8C(mlibu8 *z,
const mlibu8 *x, mlibs32 m, mlibs32 n);
mlibstatus mlibMatrixTransposeS8S8(mlibs8 *z,
const mlibs8 *x, mlibs32 m, mlibs32 n);
mlibstatus mlibMatrixTransposeS8CS8C(mlibs8 *z,
const mlibs8 *x, mlibs32 m, mlibs32 n);
mlibstatus mlibMatrixTransposeS16S16(mlibs16 *z,
const mlibs16 *x, mlibs32 m, mlibs32 n);
mlibstatus mlibMatrixTransposeS16CS16C(mlibs16 *z,
const mlibs16 *x, mlibs32 m, mlibs32 n);
mlibstatus mlibMatrixTransposeS32S32(mlibs32 *z,
const mlibs32 *x, mlibs32 m, mlibs32 n);
mlibstatus mlibMatrixTransposeS32CS32C(mlibs32 *z,
const mlibs32 *x, mlibs32 m, mlibs32 n);
DESCRIPTION
Each of these functions computes the transpose of the input
matrix.
For real data, the following equation is used:
z[j*m ] i] = x[i*n ] j]
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibMatrixTransposeU8U8(3MLIB)
where i = 0, 1, ..., (m - 1); j = 0, 1, ..., (n - 1).
For complex data, the following equation is used:
z[2*(j*m ] i)] = x[2*(i*n ] j)]
z[2*(j*m ] i) ] 1] = x[2*(i*n ] j) ] 1]
where i = 0, 1, ..., (m - 1); j = 0, 1, ..., (n - 1).
PARAMETERS
Each of the functions takes the following arguments:
z Pointer to the destination matrix. The output data type
must be the same as the input data type.
x Pointer to the source matrix.
m Number of rows in the source matrix.
n Number of columns in the source matrix.
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
mlibMatrixTransposeU8(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 2
|