MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions  mlibVideoColorYUV2ABGR420WX3(3MLIB)



NAME
     mlibVideoColorYUV2ABGR420WX3 - YUV to RGB color conversion

SYNOPSIS
     cc [ flag... ] file... -lmlib [ library... ]
     #include 

     mlibstatus mlibVideoColorYUV2ABGR420WX3(mlibu8 *abgr,
          const mlibu8 *y,const mlibu8 *u, const mlibu8 *v,
          mlibs32 width, mlibs32 height,
          mlibs32 abgrstride, mlibs32 ystride,
          mlibs32 uvstride, mlibs32 left,
          mlibs32 top, mlibs32 right, mlibs32 bottom);


DESCRIPTION
     The mlibVideoColorYUV2ABGR420WX3() function  performs  YUV
     to  RGB  color  conversion  used  in  MPEG1  and MPEG2 video
     compression in the 4:2:0 sequence. It performs color conver-
     sion together with window clipping and 3X zooming.


     The luminance component is stored in Y, the chrominance com-
     ponents 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 direc-
     tions in respect to the luminance component.

PARAMETERS
     The function takes the following arguments:

     abgr           Pointer to the destination packed ABGR image.
                    abgr must be 8-byte aligned.


     y              Pointer to the source Y component. y must  be
                    8-byte aligned.


     u              Pointer to the source U component. u must  be
                    4-byte aligned.


     v              Pointer to the source V component. v must  be
                    4-byte aligned.


     width          Width of the image. width must be a  multiple
                    of 8.





SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions  mlibVideoColorYUV2ABGR420WX3(3MLIB)



     height         Height of the image. height must be a  multi-
                    ple of 2.


     abgrstride    Stride, in bytes, between  adjacent  rows  in
                    the  ABGR image. abgrstride must be a multi-
                    ple of 8.


     ystride       Stride, in bytes, between  adjacent  rows  in
                    the  Y  component  image.  ystride must be a
                    multiple of 8.


     uvstride      Stride, in bytes, between  adjacent  rows  in
                    the  U and V component images. uvstride must
                    be a multiple of 8.


     left           Left border of clipping window. 0  <  left  <
                    right < width.


     top            Top border of clipping window. 0 < top < bot-
                    tom < height.


     right          Left border of clipping window. 0  <  left  <
                    right < width.


     bottom         Bottom border of clipping window. 0 <  top  <
                    bottom < height.


RETURN VALUES
     The function returns MLIBSUCES if  successful.  Otherwise
     it returns MLIBFAILURE.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:













SunOS 5.11           Last change: 2 Mar 2007                    2






mediaLib Library Functions  mlibVideoColorYUV2ABGR420WX3(3MLIB)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Committed                   
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     mlibVideoColorYUV2ABGR420W(3MLIB),
     mlibVideoColorYUV2ABGR420WX2(3MLIB),
     mlibVideoColorYUV2ABGR420X2(3MLIB),
     mlibVideoColorYUV2ABGR420X3(3MLIB), attributes(5)









































SunOS 5.11           Last change: 2 Mar 2007                    3



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™