include/SDL_pixels.h
branchSDL-1.3
changeset 1675 d33dcfc3fde7
parent 1668 4da1ee79c9af
child 1676 e136f3ffdc1b
     1.1 --- a/include/SDL_pixels.h	Sun Jun 11 05:27:10 2006 +0000
     1.2 +++ b/include/SDL_pixels.h	Sun Jun 11 07:30:16 2006 +0000
     1.3 @@ -95,6 +95,9 @@
     1.4      SDL_PackedLayout_1010102,
     1.5  };
     1.6  
     1.7 +#define SDL_DEFINE_PIXELFOURCC(A, B, C, D) \
     1.8 +    ((A) | ((B) << 8) | ((C) << 16) | ((D) << 24))
     1.9 +
    1.10  #define SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes) \
    1.11      ((1 << 31) | ((type) << 24) | ((order) << 20) | ((layout) << 16) | \
    1.12       ((bits) << 8) | ((bytes) << 0))
    1.13 @@ -167,6 +170,12 @@
    1.14      SDL_PixelFormat_ARGB2101010 =
    1.15          SDL_DEFINE_PIXELFORMAT(SDL_PixelType_Packed32, SDL_PackedOrder_ARGB,
    1.16                                 SDL_PackedLayout_2101010, 32, 4),
    1.17 +
    1.18 +    SDL_PixelFormat_YV12 = SDL_DEFINE_PIXELFOURCC('Y', 'V', '1', '2'),
    1.19 +    SDL_PixelFormat_IYUV = SDL_DEFINE_PIXELFOURCC('I', 'Y', 'U', 'V'),
    1.20 +    SDL_PixelFormat_YUY2 = SDL_DEFINE_PIXELFOURCC('Y', 'U', 'Y', '2'),
    1.21 +    SDL_PixelFormat_UYVY = SDL_DEFINE_PIXELFOURCC('U', 'Y', 'V', 'Y'),
    1.22 +    SDL_PixelFormat_YVYU = SDL_DEFINE_PIXELFOURCC('Y', 'V', 'Y', 'U'),
    1.23  };
    1.24  
    1.25  typedef struct SDL_Color