kernel/eka/include/pixelformats.h
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // pixel format UIDs
       
    15 // More details, e.g. the lay-out of each pixel formats, are found in the document "Pixel Formats"
       
    16 // //EPOC/master/cedar/generic/base/documentation/Base_Pixel_Formats.doc
       
    17 // 
       
    18 //
       
    19 
       
    20 /**
       
    21  @file
       
    22  @publishedPartner
       
    23  @prototype
       
    24 */
       
    25 
       
    26 #ifndef __PIXELFORMATS_H__
       
    27 #define __PIXELFORMATS_H__
       
    28 
       
    29 typedef enum
       
    30 	{
       
    31 	/**
       
    32 	 Unknown pixel format
       
    33 	 */
       
    34 	EUidPixelFormatUnknown = 0,
       
    35 	/**
       
    36 	 32-bit RGB pixel format without alpha, with 8 bits are reserved for each color
       
    37 	 */
       
    38 	EUidPixelFormatXRGB_8888 = 0x10275496,
       
    39 	/**
       
    40 	 32-bit BGR pixel format without alpha, where 8 bits are reserved for each color
       
    41 	 */
       
    42 	EUidPixelFormatBGRX_8888 = 0x102754A8,
       
    43 	/**
       
    44 	 32-bit BGR pixel format without alpha, where 8 bits are reserved for each color
       
    45 	 */
       
    46 	EUidPixelFormatXBGR_8888 = 0x10273766,
       
    47 	/**
       
    48 	 32-bit BGRA pixel format with alpha, using 8 bits per channel
       
    49 	 */
       
    50 	EUidPixelFormatBGRA_8888 = 0x102754A9,
       
    51 	/**
       
    52 	 32-bit ARGB pixel format with alpha, using 8 bits per channel
       
    53 	 */
       
    54 	EUidPixelFormatARGB_8888 = 0x10275498,
       
    55 	/**
       
    56 	 32-bit ABGR pixel format with alpha, using 8 bits per channel
       
    57 	 */
       
    58 	EUidPixelFormatABGR_8888 = 0x10275499,
       
    59 	/**
       
    60 	 32-bit ARGB pixel format with alpha (pre-multiplied), using 8 bits per channel
       
    61 	 */
       
    62 	EUidPixelFormatARGB_8888_PRE = 0x1027549A,
       
    63 	/**
       
    64 	 32-bit ABGR pixel format with alpha (pre-multiplied), using 8 bits per channel
       
    65 	 */
       
    66 	EUidPixelFormatABGR_8888_PRE = 0x1027549B,
       
    67 	/**
       
    68 	 32-bit BGRA pixel format with alpha (pre-multiplied), using 8 bits per channel
       
    69 	 */
       
    70 	EUidPixelFormatBGRA_8888_PRE = 0x10275497,
       
    71 	/**
       
    72 	 32-bit pixel format using 10 bits each for red, green, and blue, and 2 bits for
       
    73 	 alpha
       
    74 	 */
       
    75 	EUidPixelFormatARGB_2101010 = 0x1027549D,
       
    76 	/**
       
    77 	 32-bit pixel format using 10 bits each for blue, green, and red color and 2
       
    78 	 bits for alpha
       
    79 	 */
       
    80 	EUidPixelFormatABGR_2101010 = 0x1027549C,
       
    81 	/**
       
    82 	 24-bit BGR pixel format with 8 bits per channel
       
    83 	 */
       
    84 	EUidPixelFormatBGR_888 = 0x102754A7,
       
    85 	/**
       
    86 	 24-bit RGB pixel format with 8 bits per channel
       
    87 	 */
       
    88 	EUidPixelFormatRGB_888 = 0x10275495,
       
    89 	/**
       
    90 	 16-bit RGB pixel format with 5 bits for red, 6 bits for green, and 5 bits for
       
    91 	 blue
       
    92 	 */
       
    93 	EUidPixelFormatRGB_565 = 0x1027549E,
       
    94 	/**
       
    95 	 16-bit BGR pixel format with 5 bits for blue, 6 bits for green, and 5 bits for
       
    96 	 red
       
    97 	 */
       
    98 	EUidPixelFormatBGR_565 = 0x10273765,
       
    99 	/**
       
   100 	 16-bit pixel format where 5 bits are reserved for each color and 1 bit is
       
   101 	 reserved for alpha
       
   102 	 */
       
   103 	EUidPixelFormatARGB_1555 = 0x1027549F,
       
   104 	/**
       
   105 	 16-bit pixel format where 5 bits are reserved for each color
       
   106 	 */
       
   107 	EUidPixelFormatXRGB_1555 = 0x102754A0,
       
   108 	/**
       
   109 	 16-bit ARGB pixel format with 4 bits for each channel
       
   110 	 */
       
   111 	EUidPixelFormatARGB_4444 = 0x102754A1,
       
   112 	/**
       
   113 	 16-bit ARGB texture format using 8 bits for alpha, 3 bits each for red and
       
   114 	 green, and 2 bits for blue
       
   115 	 */
       
   116 	EUidPixelFormatARGB_8332 = 0x102754A4,
       
   117 	/**
       
   118 	 16-bit pixel format where 5 bits are reserved for each color
       
   119 	 */
       
   120 	EUidPixelFormatBGRX_5551 = 0x102754A5,
       
   121 	/**
       
   122 	 16-bit pixel format where 5 bits are reserved for each color and 1 bit is reserved for alpha
       
   123 	 */
       
   124 	EUidPixelFormatBGRA_5551 = 0x102754AA,
       
   125 	/**
       
   126 	 16-bit BGRA pixel format with 4 bits for each channel
       
   127 	 */
       
   128 	EUidPixelFormatBGRA_4444 = 0x102754AC,
       
   129 	/**
       
   130 	 16-bit RGB pixel format using 4 bits for each color, without alpha channel
       
   131 	 */
       
   132 	EUidPixelFormatBGRX_4444 = 0x102754A6,
       
   133 	/**
       
   134 	 16-bit color indexed with 8 bits of alpha
       
   135 	 */
       
   136 	EUidPixelFormatAP_88 = 0x102754AB,
       
   137 	/**
       
   138 	 16-bit RGB pixel format using 4 bits for each color, without alpha channel
       
   139 	 */
       
   140 	EUidPixelFormatXRGB_4444 = 0x10273764,
       
   141 	/**
       
   142 	 16-bit BGR pixel format using 4 bits for each color, without alpha channel
       
   143 	 */
       
   144 	EUidPixelFormatXBGR_4444 = 0x102754B0,
       
   145 	/**
       
   146 	 8-bit RGB texture format using 3 bits for red, 3 bits for green, and 2 bits for blue
       
   147 	 */
       
   148 	EUidPixelFormatRGB_332 = 0x102754A2,
       
   149 	/**
       
   150 	 8-bit alpha only
       
   151 	 */
       
   152 	EUidPixelFormatA_8 = 0x102754A3,
       
   153 	/**
       
   154 	 8-bit BGR texture format using 3 bits for blue, 3 bits for green, and 2 bits for red
       
   155 	 */
       
   156 	EUidPixelFormatBGR_332 = 0x102754B1,
       
   157 	/**
       
   158 	 8-bit indexed (i.e. has a palette)
       
   159 	 */
       
   160 	EUidPixelFormatP_8 = 0x10273763,
       
   161 	/**
       
   162 	 4-bit indexed (i.e. has a palette)
       
   163 	 */
       
   164 	EUidPixelFormatP_4 = 0x102754AD,
       
   165 	/**
       
   166 	 2-bit indexed (i.e. has a palette)
       
   167 	 */
       
   168 	EUidPixelFormatP_2 = 0x102754AE,
       
   169 	/**
       
   170 	 1-bit indexed (i.e. has a palette)
       
   171 	 */
       
   172 	EUidPixelFormatP_1 = 0x102754AF,
       
   173 	/**
       
   174 	 YUV - 4:2:0 format, 8 bits per sample, Y00Y01Y10Y11UV.
       
   175 	 */
       
   176 	EUidPixelFormatYUV_420Interleaved = 0x10273767,
       
   177 	/**
       
   178 	 YUV - Three arrays Y, U, V. 4:2:0 format, 8 bits per sample, Y00Y01Y02Y03...U0...V0...
       
   179 	 */
       
   180 	EUidPixelFormatYUV_420Planar = 0x10273768,
       
   181 	/**
       
   182 	 YUV 4:2:0 image format. Planar, 12 bits per pixel, Pixel order: Y00Y01Y02Y03...V0...U0...
       
   183 	 */
       
   184 	EUidPixelFormatYUV_420PlanarReversed = 0x1027376D,
       
   185 	/**
       
   186 	 YUV - Two arrays, one is all Y, the other is U and V. 4:2:0 format, 8 bits per sample, Y00Y01Y02Y03...U0V0...
       
   187 	 */
       
   188 	EUidPixelFormatYUV_420SemiPlanar = 0x1027376C,
       
   189 	/**
       
   190 	 YUV - Organized as UYVY. 4:2:2 format, 8 bits per sample, UY0VY1
       
   191 	 */
       
   192 	EUidPixelFormatYUV_422Interleaved = 0x10273769,
       
   193 	/**
       
   194 	 YUV - Three arrays Y, U, V
       
   195 	 */
       
   196 	EUidPixelFormatYUV_422Planar = 0x102737DA,
       
   197 	/**
       
   198 	 YUV - Organized as YUYV. 4:2:2 format, 8 bits per sample, Y0UY1V
       
   199 	 */
       
   200 	EUidPixelFormatYUV_422Reversed = 0x102754B2,
       
   201 	/**
       
   202 	 YUV - Two arrays, one is all Y, the other is U and V
       
   203 	 */
       
   204 	EUidPixelFormatYUV_422SemiPlanar = 0x102754B3,
       
   205 	/**
       
   206 	 YUV 4:2:2 image format. 16 bits per pixel, 8 bits per sample, Pixel order: Y1VY0U.
       
   207 	 */
       
   208 	EUidPixelFormatYUV_422InterleavedReversed = 0x1027376A,
       
   209 	/**
       
   210 	 YUV 4:2:2 image format. Interleaved, 16 bits per pixel, 8 bits per sample, Pixel order: Y0Y1UV.
       
   211 	 */
       
   212 	EUidPixelFormatYUV_422Interleaved16bit = 0x102737D9,
       
   213 	/**
       
   214 	 YUV - 4:4:4 format, each pixel contains equal parts YUV
       
   215 	 */
       
   216 	EUidPixelFormatYUV_444Interleaved = 0x1027376B,
       
   217 	/**
       
   218 	 YUV - 4:4:4 format, three arrays Y, U, V
       
   219 	 */
       
   220 	EUidPixelFormatYUV_444Planar = 0x102737DB,
       
   221 	/**
       
   222 	 8-bit grayscale.
       
   223 	 */
       
   224 	EUidPixelFormatL_8 = 0x102858EC,
       
   225 	/**
       
   226 	 4-bit grayscale.
       
   227 	 */
       
   228 	EUidPixelFormatL_4 = 0x102858ED,
       
   229 	/**
       
   230 	 2-bit grayscale.
       
   231 	 */
       
   232 	EUidPixelFormatL_2 = 0x102858EE,
       
   233 	/**
       
   234 	 1-bit grayscale (monochrome).
       
   235 	 */
       
   236 	EUidPixelFormatL_1 = 0x102858EF,
       
   237 	/**
       
   238 	 Speed Tagged JPEG
       
   239 	 */
       
   240 	EUidPixelFormatSpeedTaggedJPEG = 0x102869FB,
       
   241 	/**
       
   242 	 JPEG
       
   243 	*/
       
   244 	EUidPixelFormatJPEG = 0x102869FC
       
   245 
       
   246 	} TUidPixelFormat;
       
   247 
       
   248 #endif