'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .TH mlib_VideoColorYUV2RGB420 3MLIB "2 Mar 2007" "SunOS 5.11" "mediaLib Library Functions" .SH NAME mlib_VideoColorYUV2RGB420 \- YUV to RGB color conversion .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... \fB-lmlib\fR [ \fIlibrary\fR... ] #include \fBmlib_status\fR \fBmlib_VideoColorYUV2RGB420\fR(\fBmlib_u8 *\fR\fIrgb\fR, \fBconst mlib_u8 *\fR\fIy\fR, \fBconst mlib_u8 *\fR\fIu\fR, \fBconst mlib_u8 *\fR\fIv\fR, \fBmlib_s32\fR \fIwidth\fR, \fBmlib_s32\fR \fIheight\fR, \fBmlib_s32\fR \fIrgb_stride\fR, \fBmlib_s32\fR \fIy_stride\fR, \fBmlib_s32\fR \fIuv_stride\fR); .fi .SH DESCRIPTION .sp .LP The \fBmlib_VideoColorYUV2RGB420()\fR function performs YUV to RGB color conversion used in MPEG1 and MPEG2 video compression in the 4:2:0 sequence. .sp .LP The luminance component is stored in Y, the chrominance components are stored in U and V, respectively. The size of the chrominance image depends on the chroma format used by the sequence. In this sequence, the chrominance components are subsampled 2-to-1 in both the horizontal and vertical directions in respect to the luminance component. .SH PARAMETERS .sp .LP The function takes the following arguments: .sp .ne 2 .mk .na \fB\fIrgb\fR\fR .ad .RS 14n .rt Pointer to the destination RGB image. .RE .sp .ne 2 .mk .na \fB\fIy\fR\fR .ad .RS 14n .rt Pointer to the source Y component. .RE .sp .ne 2 .mk .na \fB\fIu\fR\fR .ad .RS 14n .rt Pointer to the source U component. .RE .sp .ne 2 .mk .na \fB\fIv\fR\fR .ad .RS 14n .rt Pointer to the source V component. .RE .sp .ne 2 .mk .na \fB\fIwidth\fR\fR .ad .RS 14n .rt Width of the image. .RE .sp .ne 2 .mk .na \fB\fIheight\fR\fR .ad .RS 14n .rt Height of the image. .RE .sp .ne 2 .mk .na \fB\fIrgb_stride\fR\fR .ad .RS 14n .rt Stride, in bytes, between adjacent rows in the destination image. .RE .sp .ne 2 .mk .na \fB\fIy_stride\fR\fR .ad .RS 14n .rt Stride, in bytes, between adjacent rows in the Y component image. .RE .sp .ne 2 .mk .na \fB\fIuv_stride\fR\fR .ad .RS 14n .rt Stride, in bytes, between adjacent rows in the U and V component images. .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_VideoColorYUV2ABGR411\fR(3MLIB), \fBmlib_VideoColorYUV2ABGR420\fR(3MLIB), \fBmlib_VideoColorYUV2ABGR422\fR(3MLIB), \fBmlib_VideoColorYUV2ABGR444\fR(3MLIB), \fBmlib_VideoColorYUV2ARGB411\fR(3MLIB), \fBmlib_VideoColorYUV2ARGB420\fR(3MLIB), \fBmlib_VideoColorYUV2ARGB422\fR(3MLIB), \fBmlib_VideoColorYUV2ARGB444\fR(3MLIB), \fBmlib_VideoColorYUV2RGB411\fR(3MLIB), \fBmlib_VideoColorYUV2RGB422\fR(3MLIB), \fBmlib_VideoColorYUV2RGB444\fR(3MLIB), \fBattributes\fR(5)