MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions
                          mlibVideoColorRGBseqtoABGRint(3MLIB)



NAME
     mlibVideoColorRGBseqtoABGRint - convert RGB sequential to
     ABGR interleaved

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

     void mlibVideoColorRGBseqtoABGRint(mlibu32 *ABGR, const mlibu8 *R,
          const mlibu8 *G, const mlibu8 *B,
          const mlibu8 *Aarray, mlibu8 Aconst,
          mlibs32 w, mlibs32 h,
          mlibs32 dlb, mlibs32 slb);


DESCRIPTION
     The R, G, and B streams, and the A values are combined  into
     an  A,  B,  G, R interleaved byte stream. Within each 32-bit
     output word, the component ordering is  A  (bits  31-24),  B
     (bits 23-16), G (bits 15-8), and R (bits 7-0).


     The alpha values for this function  work  in  the  following
     fashion:

         o    If Aarray pointer is  not  NUL,  the  values  are
              taken  from  there.  It has to have the same dimen-
              sions as the R, G, and B buffers.

         o    If Aarray pointer is NUL, the  alpha  values  for
              every pixel are set to Aconst.

PARAMETERS
     The function takes the following arguments:

     ABGR       Pointer to output buffer.


     R          Pointer to input R buffer.


     G          Pointer to input G buffer.


     B          Pointer to input B buffer.


     Aarray    Array of alpha values.






SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions
                          mlibVideoColorRGBseqtoABGRint(3MLIB)



     Aconst    Constant alpha value.


     w          Image width in pixels.


     h          Image height in lines.


     dlb        Linebytes for output buffer.


     slb        Linebytes for input buffers.


RETURN VALUES
     None.

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



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


SEE ALSO
     mlibVideoColorRGBinttoABGRint(3MLIB),
     mlibVideoColorBGRinttoABGRint(3MLIB),
     mlibVideoColorRGBXinttoABGRint(3MLIB),
     mlibVideoColorRGBXinttoARGBint(3MLIB),
     mlibVideoColorXRGBinttoABGRint(3MLIB),
     mlibVideoColorXRGBinttoARGBint(3MLIB), attributes(5)














SunOS 5.11           Last change: 2 Mar 2007                    2






mediaLib Library Functions
                          mlibVideoColorRGBseqtoABGRint(3MLIB)






















































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 ™