Ticket #16213: CGImage.h-dakka.akka-ryandesign.diff

File CGImage.h-dakka.akka-ryandesign.diff, 1.0 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)

Difference between Andrew's CGImage.h and mine

  • CGImage.

    old new  
    2828
    2929enum {
    3030    kCGBitmapAlphaInfoMask = 0x1F,
    31     kCGBitmapFloatComponents = (1 << 8)
     31    kCGBitmapFloatComponents = (1 << 8),
     32   
     33    kCGBitmapByteOrderMask = 0x7000,
     34    kCGBitmapByteOrderDefault = (0 << 12),
     35    kCGBitmapByteOrder16Little = (1 << 12),
     36    kCGBitmapByteOrder32Little = (2 << 12),
     37    kCGBitmapByteOrder16Big = (3 << 12),
     38    kCGBitmapByteOrder32Big = (4 << 12)
    3239};
    3340typedef uint32_t CGBitmapInfo; /* Available in MAC OS X 10.4 & later. */
    3441
     42#ifdef __BIG_ENDIAN__
     43#define kCGBitmapByteOrder16Host kCGBitmapByteOrder16Big
     44#define kCGBitmapByteOrder32Host kCGBitmapByteOrder32Big
     45#else    /* Little endian. */
     46#define kCGBitmapByteOrder16Host kCGBitmapByteOrder16Little
     47#define kCGBitmapByteOrder32Host kCGBitmapByteOrder32Little
     48#endif
     49
    3550/* Return the CFTypeID for CGImageRefs. */
    3651
    3752CG_EXTERN CFTypeID CGImageGetTypeID(void) AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER;