| Current File : //usr/share/man/man3mlib/mlib_VideoQuantizeInit_S16.3mlib |
'\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
.TH mlib_VideoQuantizeInit_S16 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions"
.SH NAME
mlib_VideoQuantizeInit_S16 \- quantization of forward Discrete Cosine Transform (DCT) coefficients
.SH SYNOPSIS
.LP
.nf
cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ]
#include <mlib.h>
\fBmlib_status\fR \fBmlib_VideoQuantizeInit_S16\fR(\fBmlib_d64\fR \fIdqtable[64]\fR,
\fBconst mlib_s16\fR \fIiqtable[64]\fR);
.fi
.SH DESCRIPTION
.sp
.LP
The \fBmlib_VideoQuantizeInit_S16()\fR function initializes the quantization table.
.sp
.LP
The following equation is used:
.sp
.in +2
.nf
dqtable[i] = 1.0 / iqtable[i]; 0 \(<= i < 64
.fi
.in -2
.SH PARAMETERS
.sp
.LP
The function takes the following arguments:
.sp
.ne 2
.mk
.na
\fB\fIdqtable\fR\fR
.ad
.RS 11n
.rt
Pointer to quantizer table coefficients.
.RE
.sp
.ne 2
.mk
.na
\fB\fIiqtable\fR\fR
.ad
.RS 11n
.rt
Pointer to original quantizer table coefficients:
.sp
.in +2
.nf
0 < iqtable[i] < 128
.fi
.in -2
.RE
.SH RETURN VALUES
.sp
.LP
The function 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_VideoDCT2x2_S16_S16\fR(3MLIB), \fBmlib_VideoDCT4x4_S16_S16\fR(3MLIB), \fBmlib_VideoDCT8x8_S16_S16\fR(3MLIB), \fBmlib_VideoDCT8x8_S16_S16_B12\fR(3MLIB), \fBmlib_VideoDCT8x8_S16_S16_NA\fR(3MLIB), \fBmlib_VideoDCT8x8_S16_U8\fR(3MLIB), \fBmlib_VideoDCT8x8_S16_U8_NA\fR(3MLIB), \fBmlib_VideoDCT16x16_S16_S16\fR(3MLIB), \fBmlib_VideoDCT16x16_S16_S16_B10\fR(3MLIB), \fBmlib_VideoDeQuantize_S16\fR(3MLIB), \fBmlib_VideoDeQuantizeInit_S16\fR(3MLIB), \fBmlib_VideoQuantize_S16\fR(3MLIB), \fBattributes\fR(5)