| Current File : //usr/man/man3mlib/mlib_VideoDCT8x8_S16_U8.3mlib |
'\" te
.\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
.TH mlib_VideoDCT8x8_S16_U8 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions"
.SH NAME
mlib_VideoDCT8x8_S16_U8 \- forward Discrete Cosine Transform (DCT)
.SH SYNOPSIS
.LP
.nf
cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ]
#include <mlib.h>
\fBmlib_status\fR \fBmlib_VideoDCT8x8_S16_U8\fR(\fBmlib_s16\fR \fIcoeffs[64]\fR,
\fBconst mlib_u8 *\fR\fIblock\fR, \fBmlib_s32\fR \fIstride\fR);
.fi
.SH DESCRIPTION
.sp
.LP
The \fBmlib_VideoDCT8x8_S16_U8()\fR function computes the forward DCT for the destination DCT coefficients of data type mlib_s16 and source block of data type mlib_u8. The stride applies to the block that is part of the frame currently being encoded.
.sp
.LP
The source and destination buffer addresses must be 8-byte aligned.
.sp
.LP
This function can be used in JPEG with 8-bit precision, or in MPEG for the intra mode.
.SH PARAMETERS
.sp
.LP
The function takes the following arguments:
.sp
.ne 2
.mk
.na
\fB\fIcoeffs\fR\fR
.ad
.RS 10n
.rt
Pointer to the destination DCT coefficients. Note that \fBcoeffs\fR must be 8-byte aligned.
.RE
.sp
.ne 2
.mk
.na
\fB\fIblock\fR\fR
.ad
.RS 10n
.rt
Pointer to an 8x8 block in the current frame. Note that \fBblock\fR must be 8-byte aligned.
.RE
.sp
.ne 2
.mk
.na
\fB\fIstride\fR\fR
.ad
.RS 10n
.rt
Stride in bytes between adjacent rows in the block. Note that \fBstride\fR must be a multiple of eight.
.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_B10\fR(3MLIB), \fBmlib_VideoDCT8x8_S16_S16_B10_NA\fR(3MLIB), \fBmlib_VideoDCT8x8_S16_S16_B12\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), \fBmlib_VideoQuantizeInit_S16\fR(3MLIB), \fBattributes\fR(5)