| Current File : //usr/man/man3mlib/mlib_SignalMulSShift_S16_S16_Sat.3mlib |
'\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
.TH mlib_SignalMulSShift_S16_S16_Sat 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions"
.SH NAME
mlib_SignalMulSShift_S16_S16_Sat, mlib_SignalMulSShift_S16S_S16S_Sat \- multiplication by a scalar with shifting
.SH SYNOPSIS
.LP
.nf
cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ]
#include <mlib.h>
\fBmlib_status\fR \fBmlib_SignalMulSShift_S16_S16_Sat\fR(\fBmlib_s16 *\fR\fIdst\fR,
\fBconst mlib_s16 *\fR\fIsrc\fR, \fBconst mlib_s16 *\fR\fIc\fR, \fBmlib_s32\fR \fIshift\fR,
\fBmlib_s32\fR \fIn\fR);
.fi
.LP
.nf
\fBmlib_status\fR \fBmlib_SignalMulSShift_S16S_S16S_Sat\fR(\fBmlib_s16 *\fR\fIdst\fR,
\fBconst mlib_s16 *\fR\fIsrc\fR, \fBconst mlib_s16 *\fR\fIc\fR, \fBmlib_s32\fR \fIshift\fR,
\fBmlib_s32\fR \fIn\fR);
.fi
.SH DESCRIPTION
.sp
.LP
Each of these functions performs multiplication by a scalar with shifting.
.SH PARAMETERS
.sp
.LP
Each of the functions takes the following arguments:
.sp
.ne 2
.mk
.na
\fB\fIdst\fR\fR
.ad
.RS 9n
.rt
Destination signal array.
.RE
.sp
.ne 2
.mk
.na
\fB\fIsrc\fR\fR
.ad
.RS 9n
.rt
Source signal array.
.RE
.sp
.ne 2
.mk
.na
\fB\fIc\fR\fR
.ad
.RS 9n
.rt
Scaling factor. The scaling factor is in Q15 format. In the stereo version; c[0] contains the scaling factor for channel 0, and c[1] holds the scaling factor for channel 1.
.RE
.sp
.ne 2
.mk
.na
\fB\fIshift\fR\fR
.ad
.RS 9n
.rt
Left shifting factor.
.RE
.sp
.ne 2
.mk
.na
\fB\fIn\fR\fR
.ad
.RS 9n
.rt
Number of samples in the input signal arrays.
.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_SignalMulSShift_S16_Sat\fR(3MLIB), \fBattributes\fR(5)