'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .TH mlib_MatrixScale_U8_U8_Mod 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions" .SH NAME mlib_MatrixScale_U8_U8_Mod, mlib_MatrixScale_U8_U8_Sat, mlib_MatrixScale_U8C_U8C_Mod, mlib_MatrixScale_U8C_U8C_Sat, mlib_MatrixScale_S8_S8_Mod, mlib_MatrixScale_S8_S8_Sat, mlib_MatrixScale_S8C_S8C_Mod, mlib_MatrixScale_S8C_S8C_Sat, mlib_MatrixScale_S16_U8_Mod, mlib_MatrixScale_S16_U8_Sat, mlib_MatrixScale_S16_S8_Mod, mlib_MatrixScale_S16_S8_Sat, mlib_MatrixScale_S16_S16_Mod, mlib_MatrixScale_S16_S16_Sat, mlib_MatrixScale_S16C_U8C_Mod, mlib_MatrixScale_S16C_U8C_Sat, mlib_MatrixScale_S16C_S8C_Mod, mlib_MatrixScale_S16C_S8C_Sat, mlib_MatrixScale_S16C_S16C_Mod, mlib_MatrixScale_S16C_S16C_Sat, mlib_MatrixScale_S32_S16_Mod, mlib_MatrixScale_S32_S16_Sat, mlib_MatrixScale_S32_S32_Mod, mlib_MatrixScale_S32_S32_Sat, mlib_MatrixScale_S32C_S16C_Mod, mlib_MatrixScale_S32C_S16C_Sat, mlib_MatrixScale_S32C_S32C_Mod, mlib_MatrixScale_S32C_S32C_Sat \- matrix linear scaling .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ] #include \fBmlib_status\fR \fBmlib_MatrixScale_U8_U8_Mod\fR(\fBmlib_u8 *\fR\fIz\fR, \fBconst mlib_u8 *\fR\fIx\fR, \fBconst mlib_u8 *\fR\fIa\fR, \fBconst mlib_u8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_U8_U8_Sat\fR(\fBmlib_u8 *\fR\fIz\fR, \fBconst mlib_u8 *\fR\fIx\fR, \fBconst mlib_u8 *\fR\fIa\fR, \fBconst mlib_u8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_U8C_U8C_Mod\fR(\fBmlib_u8 *\fR\fIz\fR, \fBconst mlib_u8 *\fR\fIx\fR, \fBconst mlib_u8 *\fR\fIa\fR, \fBconst mlib_u8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_U8C_U8C_Sat\fR(\fBmlib_u8 *\fR\fIz\fR, \fBconst mlib_u8 *\fR\fIx\fR, \fBconst mlib_u8 *\fR\fIa\fR, \fBconst mlib_u8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S8_S8_Mod\fR(\fBmlib_s8 *\fR\fIz\fR, \fBconst mlib_s8 *\fR\fIx\fR, \fBconst mlib_s8 *\fR\fIa\fR, \fBconst mlib_s8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S8_S8_Sat\fR(\fBmlib_s8 *\fR\fIz\fR, \fBconst mlib_s8 *\fR\fIx\fR, \fBconst mlib_s8 *\fR\fIa\fR, \fBconst mlib_s8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S8C_S8C_Mod\fR(\fBmlib_s8 *\fR\fIz\fR, \fBconst mlib_s8 *\fR\fIx\fR, \fBconst mlib_s8 *\fR\fIa\fR, \fBconst mlib_s8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S8C_S8C_Sat\fR(\fBmlib_s8 *\fR\fIz\fR, \fBconst mlib_s8 *\fR\fIx\fR, \fBconst mlib_s8 *\fR\fIa\fR, \fBconst mlib_s8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16_U8_Mod\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_u8 *\fR\fIx\fR, \fBconst mlib_u8 *\fR\fIa\fR, \fBconst mlib_u8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16_U8_Sat\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_u8 *\fR\fIx\fR, \fBconst mlib_u8 *\fR\fIa\fR, \fBconst mlib_u8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16_S8_Mod\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_s8 *\fR\fIx\fR, \fBconst mlib_s8 *\fR\fIa\fR, \fBconst mlib_s8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16_S8_Sat\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_s8 *\fR\fIx\fR, \fBconst mlib_s8 *\fR\fIa\fR, \fBconst mlib_s8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16_S16_Mod\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_s16 *\fR\fIx\fR, \fBconst mlib_s16 *\fR\fIa\fR, \fBconst mlib_s16 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16_S16_Sat\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_s16 *\fR\fIx\fR, \fBconst mlib_s16 *\fR\fIa\fR, \fBconst mlib_s16 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16C_U8C_Mod\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_u8 *\fR\fIx\fR, \fBconst mlib_u8 *\fR\fIa\fR, \fBconst mlib_u8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16C_U8C_Sat\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_u8 *\fR\fIx\fR, \fBconst mlib_u8 *\fR\fIa\fR, \fBconst mlib_u8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16C_S8C_Mod\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_s8 *\fR\fIx\fR, \fBconst mlib_s8 *\fR\fIa\fR, \fBconst mlib_s8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16C_S8C_Sat\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_s8 *\fR\fIx\fR, \fBconst mlib_s8 *\fR\fIa\fR, \fBconst mlib_s8 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16C_S16C_Mod\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_s16 *\fR\fIx\fR, \fBconst mlib_s16 *\fR\fIa\fR, \fBconst mlib_s16 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S16C_S16C_Sat\fR(\fBmlib_s16 *\fR\fIz\fR, \fBconst mlib_s16 *\fR\fIx\fR, \fBconst mlib_s16 *\fR\fIa\fR, \fBconst mlib_s16 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S32_S16_Mod\fR(\fBmlib_s32 *\fR\fIz\fR, \fBconst mlib_s16 *\fR\fIx\fR, \fBconst mlib_s16 *\fR\fIa\fR, \fBconst mlib_s16 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S32_S16_Sat\fR(\fBmlib_s32 *\fR\fIz\fR, \fBconst mlib_s16 *\fR\fIx\fR, \fBconst mlib_s16 *\fR\fIa\fR, \fBconst mlib_s16 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S32_S32_Mod\fR(\fBmlib_s32 *\fR\fIz\fR, \fBconst mlib_s32 *\fR\fIx\fR, \fBconst mlib_s32 *\fR\fIa\fR, \fBconst mlib_s32 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S32_S32_Sat\fR(\fBmlib_s32 *\fR\fIz\fR, \fBconst mlib_s32 *\fR\fIx\fR, \fBconst mlib_s32 *\fR\fIa\fR, \fBconst mlib_s32 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S32C_S16C_Mod\fR(\fBmlib_s32 *\fR\fIz\fR, \fBconst mlib_s16 *\fR\fIx\fR, \fBconst mlib_s16 *\fR\fIa\fR, \fBconst mlib_s16 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S32C_S16C_Sat\fR(\fBmlib_s32 *\fR\fIz\fR, \fBconst mlib_s16 *\fR\fIx\fR, \fBconst mlib_s16 *\fR\fIa\fR, \fBconst mlib_s16 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S32C_S32C_Mod\fR(\fBmlib_s32 *\fR\fIz\fR, \fBconst mlib_s32 *\fR\fIx\fR, \fBconst mlib_s32 *\fR\fIa\fR, \fBconst mlib_s32 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .LP .nf \fBmlib_status\fR \fBmlib_MatrixScale_S32C_S32C_Sat\fR(\fBmlib_s32 *\fR\fIz\fR, \fBconst mlib_s32 *\fR\fIx\fR, \fBconst mlib_s32 *\fR\fIa\fR, \fBconst mlib_s32 *\fR\fIb\fR, \fBmlib_s32\fR \fIm\fR, \fBmlib_s32\fR \fIn\fR); .fi .SH DESCRIPTION .sp .LP Each of these functions multiplies a matrix by a scalar and then adds an offset. .sp .LP For real data, the following equation is used: .sp .in +2 .nf z[i] = a[0]*x[i] + b[0] .fi .in -2 .sp .LP where \fBi = 0, 1, ..., (m*n - 1)\fR. .sp .LP For complex data, the following equation is used: .sp .in +2 .nf z[2*i] = a[0]*x[2*i] - a[1]*x[2*i + 1] + b[0] z[2*i + 1] = a[1]*x[2*i] + a[0]*x[2*i + 1] + b[1] .fi .in -2 .sp .LP where \fBi = 0, 1, ..., (m*n - 1)\fR. .SH PARAMETERS .sp .LP Each of the functions takes the following arguments: .sp .ne 2 .mk .na \fB\fIz\fR\fR .ad .RS 5n .rt Pointer to the destination matrix. .RE .sp .ne 2 .mk .na \fB\fIx\fR\fR .ad .RS 5n .rt Pointer to the source matrix. .RE .sp .ne 2 .mk .na \fB\fIa\fR\fR .ad .RS 5n .rt Pointer to the source scaling factor. When the function is used with complex data types, \fBa[0]\fR contains the scalar for the real part, and \fBa[1]\fR contains the scalar for the imaginary part. .RE .sp .ne 2 .mk .na \fB\fIb\fR\fR .ad .RS 5n .rt Pointer to the source offset. When the function is used with complex data types, \fBb[0]\fR contains the offset for the real part, and \fBb[1]\fR contains the offset for the imaginary part. .RE .sp .ne 2 .mk .na \fB\fIm\fR\fR .ad .RS 5n .rt Number of rows in each matrix. .RE .sp .ne 2 .mk .na \fB\fIn\fR\fR .ad .RS 5n .rt Number of columns in each matrix. .RE .SH RETURN VALUES .sp .LP Each of the functions returns \fBMLIB_SUCCESS\fR if successful. Otherwise it returns \fBMLIB_FAILURE\fR. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe .TE .SH SEE ALSO .sp .LP \fBmlib_MatrixScale_U8_Mod\fR(3MLIB), \fBattributes\fR(5)