'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .TH mlib_VideoColorJFIFYCC2ARGB444 3MLIB "23 May 2007" "SunOS 5.11" "mediaLib Library Functions" .SH NAME mlib_VideoColorJFIFYCC2ARGB444 \- JFIF YCbCr to ARGB color conversion .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ] #include \fBmlib_status\fR \fBmlib_VideoColorJFIFYCC2ARGB444\fR(\fBmlib_u8 *\fR\fIargb\fR, \fBconst mlib_u8 *\fR\fIy\fR, \fBconst mlib_u8 *\fR\fIcb\fR, \fBconst mlib_u8 *\fR\fIcr\fR, \fBmlib_s32\fR \fIn\fR); .fi .SH DESCRIPTION .sp .LP The \fBmlib_VideoColorJFIFYCC2ARGB444()\fR function performs color space conversion from YCbCr to ARGB when used in the JPEG File Interchange Format (JFIF). .sp .LP The following equation is used: .sp .in +2 .nf A = 0xFF R = Y + 1.40200 * (Cr - 128) G = Y - 0.34414 * (Cb - 128) - 0.71414 * (Cr - 128) B = Y + 1.77200 * (Cb - 128) .fi .in -2 .SH PARAMETERS .sp .LP The function takes the following arguments: .sp .ne 2 .mk .na \fB\fIargb\fR\fR .ad .RS 8n .rt Pointer to destination ARGB multi-component row. argb must be 8-byte aligned. .RE .sp .ne 2 .mk .na \fB\fIy\fR\fR .ad .RS 8n .rt Pointer to source Y component row. y must be 8-byte aligned. .RE .sp .ne 2 .mk .na \fB\fIcb\fR\fR .ad .RS 8n .rt Pointer to source Cb component row. cb must be 8-byte aligned. .RE .sp .ne 2 .mk .na \fB\fIcr\fR\fR .ad .RS 8n .rt Pointer to source Cr component row. cr must be 8-byte aligned. .RE .sp .ne 2 .mk .na \fB\fIn\fR\fR .ad .RS 8n .rt Length of Y component row. The length of Cb and Cr component rows must be n. The length of the ARGB multi-component row must be 4*n. .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_VideoColorJFIFYCC2ABGR444\fR(3MLIB), \fBmlib_VideoColorJFIFYCC2RGB444\fR(3MLIB), \fBmlib_VideoColorJFIFYCC2RGB444_S16\fR(3MLIB), \fBattributes\fR(5)