MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions          mlibImageColorRGB2XYZ(3MLIB)



NAME
     mlibImageColorRGB2XYZ - RGB to XYZ color conversion

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

     mlibstatus mlibImageColorRGB2XYZ(mlibimage *dst, const mlibimage *src);


DESCRIPTION
     The mlibImageColorRGB2XYZ() function performs a color space
     conversion  from  ITU-R  Rec.708 RGB with D64 white point to
     CIE XYZ.


     The source and  destination  images  must  be  three-channel
     images.


     It uses the following equation:

       X   cmat[0] cmat[1] cmat[2]   R
       Y = cmat[3] cmat[4] cmat[5] * G
       Z   cmat[6] cmat[7] cmat[8]   B



     where

       cmat[] = { 0.412453, 0.357580, 0.180423,
                  0.212671, 0.715160, 0.072169,
                  0.019334, 0.119193, 0.950227 };
       src[x][y] = { R, G, B };
       dst[x][y] = { X, Y, Z };


PARAMETERS
     The function takes the following arguments:

     dst    Pointer to destination image.


     src    Pointer to source image.


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

ATRIBUTES




SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions          mlibImageColorRGB2XYZ(3MLIB)



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



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


SEE ALSO
     mlibImageColorConvert1(3MLIB),
     mlibImageColorConvert1Fp(3MLIB),
     mlibImageColorRGB2XYZFp(3MLIB),
     mlibImageColorXYZ2RGB(3MLIB),
     mlibImageColorXYZ2RGBFp(3MLIB),
     mlibImageColorYC2RGB(3MLIB),
     mlibImageColorYC2RGBFp(3MLIB), attributes(5)

































SunOS 5.11           Last change: 2 Mar 2007                    2



OpenSolaris man pages main menu

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