'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .TH mlib_VideoColorRGB2JFIFYCC422 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions" .SH NAME mlib_VideoColorRGB2JFIFYCC422 \- RGB to JFIF YCbCr color conversion .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ] #include \fBmlib_status\fR \fBmlib_VideoColorRGB2JFIFYCC422\fR(\fBmlib_u8 *\fR\fIy\fR, \fBmlib_u8 *\fR\fIcb\fR, \fBmlib_u8 *\fR\fIcr\fR, \fBconst mlib_u8 *\fR\fIrgb\fR, \fBmlib_s32\fR \fIn\fR); .fi .SH DESCRIPTION .sp .LP The \fBmlib_VideoColorRGB2JFIFYCC422()\fR function performs color space conversion from RGB 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\fIrgb\fR\fR .ad .RS 7n .rt Pointer to source RGB multi-component row. \fBrgb\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 RGB 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_VideoColorABGR2JFIFYCC420\fR(3MLIB), \fBmlib_VideoColorABGR2JFIFYCC422\fR(3MLIB), \fBmlib_VideoColorARGB2JFIFYCC420\fR(3MLIB), \fBmlib_VideoColorARGB2JFIFYCC422\fR(3MLIB), \fBmlib_VideoColorRGB2JFIFYCC420\fR(3MLIB), \fBattributes\fR(5)