graphicscomposition/openwfcompositionengine/common/include/owfimage.h
branchNewGraphicsArchitecture
changeset 35 3aa07f06a4b7
parent 34 76efc8f9f7b4
child 39 a4b63488e0b0
equal deleted inserted replaced
34:76efc8f9f7b4 35:3aa07f06a4b7
    29 extern "C" {
    29 extern "C" {
    30 #endif
    30 #endif
    31 
    31 
    32 typedef void*   OWF_DISPCTX;
    32 typedef void*   OWF_DISPCTX;
    33 
    33 
       
    34 #define CLIP(a) if (a < 0) a = 0; else if (a > 255) a = 255;
    34 
    35 
    35 #undef USE_FLOAT_PIXEL
    36 #undef USE_FLOAT_PIXEL
    36 
    37 
    37 /*
    38 /*
    38  * This is and always should be the only place where USE_FLOAT_PIXEL is 
    39  * This is and always should be the only place where USE_FLOAT_PIXEL is 
   199     OWFsubpixel             globalAlpha;
   200     OWFsubpixel             globalAlpha;
   200     OWFboolean              destinationFullyOpaque;
   201     OWFboolean              destinationFullyOpaque;
   201     OWFpixel*               tsColor;
   202     OWFpixel*               tsColor;
   202 } OWF_BLEND_INFO;
   203 } OWF_BLEND_INFO;
   203 
   204 
       
   205 #define CLIP(a) if (a < 0) a = 0; else if (a > 255) a = 255;
   204 
   206 
   205 /*!---------------------------------------------------------------------------
   207 /*!---------------------------------------------------------------------------
   206  *  \brief Initialize image object
   208  *  \brief Initialize image object
   207  *
   209  *
   208  *  \param image            Image object to initialize
   210  *  \param image            Image object to initialize