'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .TH mlib_VideoColorBGR2JFIFYCC422 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions" .SH NAME mlib_VideoColorBGR2JFIFYCC422 \- BGR to JFIF YCbCr color conversion .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ] #include \fBmlib_status\fR \fBmlib_VideoColorBGR2JFIFYCC422\fR(\fBmlib_u8 *\fR\fIy\fR, \fBmlib_u8 *\fR\fIcb\fR, \fBmlib_u8 *\fR\fIcr\fR, \fBconst mlib_u8 *\fR\fIbgr\fR, \fBmlib_s32\fR \fIn\fR); .fi .SH DESCRIPTION .sp .LP The \fBmlib_VideoColorBGR2JFIFYCC422()\fR function performs color space conversion from BGR to YCbCr together with sampling rate conversion when used in the JPEG File Interchange Format (JFIF). .SH PARAMETERS .sp .LP The function takes the following arguments: .sp .ne 2 .mk .na \fB\fIy\fR\fR .ad .RS 7n .rt Pointer to destination Y component row. \fBy\fR must be 8-byte aligned. .RE .sp .ne 2 .mk .na \fB\fIcb\fR\fR .ad .RS 7n .rt Pointer to destination Cb component row. \fBcb\fR must be 8-byte aligned. .RE .sp .ne 2 .mk .na \fB\fIcr\fR\fR .ad .RS 7n .rt Pointer to destination Cr component row. \fBcr\fR must be 8-byte aligned. .RE .sp .ne 2 .mk .na \fB\fIbgr\fR\fR .ad .RS 7n .rt Pointer to source BGR multi-component row. \fBbgr\fR must be 8-byte aligned. .RE .sp .ne 2 .mk .na \fB\fIn\fR\fR .ad .RS 7n .rt Length of Y component row. \fBn\fR must be even. The length of Cb and Cr component rows must be \fBn/2\fR. The length of the BGR multi-component row must be \fB3*n\fR. .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_VideoColorBGR2JFIFYCC420\fR(3MLIB), \fBmlib_VideoColorBGR2JFIFYCC444\fR(3MLIB), \fBmlib_VideoColorBGR2JFIFYCC444_S16\fR(3MLIB), \fBattributes\fR(5)