os/kernelhwsrv/kernel/eka/include/pixelformats.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/include/pixelformats.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,248 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// pixel format UIDs
    1.18 +// More details, e.g. the lay-out of each pixel formats, are found in the document "Pixel Formats"
    1.19 +// //EPOC/master/cedar/generic/base/documentation/Base_Pixel_Formats.doc
    1.20 +// 
    1.21 +//
    1.22 +
    1.23 +/**
    1.24 + @file
    1.25 + @publishedPartner
    1.26 + @prototype
    1.27 +*/
    1.28 +
    1.29 +#ifndef __PIXELFORMATS_H__
    1.30 +#define __PIXELFORMATS_H__
    1.31 +
    1.32 +typedef enum
    1.33 +	{
    1.34 +	/**
    1.35 +	 Unknown pixel format
    1.36 +	 */
    1.37 +	EUidPixelFormatUnknown = 0,
    1.38 +	/**
    1.39 +	 32-bit RGB pixel format without alpha, with 8 bits are reserved for each color
    1.40 +	 */
    1.41 +	EUidPixelFormatXRGB_8888 = 0x10275496,
    1.42 +	/**
    1.43 +	 32-bit BGR pixel format without alpha, where 8 bits are reserved for each color
    1.44 +	 */
    1.45 +	EUidPixelFormatBGRX_8888 = 0x102754A8,
    1.46 +	/**
    1.47 +	 32-bit BGR pixel format without alpha, where 8 bits are reserved for each color
    1.48 +	 */
    1.49 +	EUidPixelFormatXBGR_8888 = 0x10273766,
    1.50 +	/**
    1.51 +	 32-bit BGRA pixel format with alpha, using 8 bits per channel
    1.52 +	 */
    1.53 +	EUidPixelFormatBGRA_8888 = 0x102754A9,
    1.54 +	/**
    1.55 +	 32-bit ARGB pixel format with alpha, using 8 bits per channel
    1.56 +	 */
    1.57 +	EUidPixelFormatARGB_8888 = 0x10275498,
    1.58 +	/**
    1.59 +	 32-bit ABGR pixel format with alpha, using 8 bits per channel
    1.60 +	 */
    1.61 +	EUidPixelFormatABGR_8888 = 0x10275499,
    1.62 +	/**
    1.63 +	 32-bit ARGB pixel format with alpha (pre-multiplied), using 8 bits per channel
    1.64 +	 */
    1.65 +	EUidPixelFormatARGB_8888_PRE = 0x1027549A,
    1.66 +	/**
    1.67 +	 32-bit ABGR pixel format with alpha (pre-multiplied), using 8 bits per channel
    1.68 +	 */
    1.69 +	EUidPixelFormatABGR_8888_PRE = 0x1027549B,
    1.70 +	/**
    1.71 +	 32-bit BGRA pixel format with alpha (pre-multiplied), using 8 bits per channel
    1.72 +	 */
    1.73 +	EUidPixelFormatBGRA_8888_PRE = 0x10275497,
    1.74 +	/**
    1.75 +	 32-bit pixel format using 10 bits each for red, green, and blue, and 2 bits for
    1.76 +	 alpha
    1.77 +	 */
    1.78 +	EUidPixelFormatARGB_2101010 = 0x1027549D,
    1.79 +	/**
    1.80 +	 32-bit pixel format using 10 bits each for blue, green, and red color and 2
    1.81 +	 bits for alpha
    1.82 +	 */
    1.83 +	EUidPixelFormatABGR_2101010 = 0x1027549C,
    1.84 +	/**
    1.85 +	 24-bit BGR pixel format with 8 bits per channel
    1.86 +	 */
    1.87 +	EUidPixelFormatBGR_888 = 0x102754A7,
    1.88 +	/**
    1.89 +	 24-bit RGB pixel format with 8 bits per channel
    1.90 +	 */
    1.91 +	EUidPixelFormatRGB_888 = 0x10275495,
    1.92 +	/**
    1.93 +	 16-bit RGB pixel format with 5 bits for red, 6 bits for green, and 5 bits for
    1.94 +	 blue
    1.95 +	 */
    1.96 +	EUidPixelFormatRGB_565 = 0x1027549E,
    1.97 +	/**
    1.98 +	 16-bit BGR pixel format with 5 bits for blue, 6 bits for green, and 5 bits for
    1.99 +	 red
   1.100 +	 */
   1.101 +	EUidPixelFormatBGR_565 = 0x10273765,
   1.102 +	/**
   1.103 +	 16-bit pixel format where 5 bits are reserved for each color and 1 bit is
   1.104 +	 reserved for alpha
   1.105 +	 */
   1.106 +	EUidPixelFormatARGB_1555 = 0x1027549F,
   1.107 +	/**
   1.108 +	 16-bit pixel format where 5 bits are reserved for each color
   1.109 +	 */
   1.110 +	EUidPixelFormatXRGB_1555 = 0x102754A0,
   1.111 +	/**
   1.112 +	 16-bit ARGB pixel format with 4 bits for each channel
   1.113 +	 */
   1.114 +	EUidPixelFormatARGB_4444 = 0x102754A1,
   1.115 +	/**
   1.116 +	 16-bit ARGB texture format using 8 bits for alpha, 3 bits each for red and
   1.117 +	 green, and 2 bits for blue
   1.118 +	 */
   1.119 +	EUidPixelFormatARGB_8332 = 0x102754A4,
   1.120 +	/**
   1.121 +	 16-bit pixel format where 5 bits are reserved for each color
   1.122 +	 */
   1.123 +	EUidPixelFormatBGRX_5551 = 0x102754A5,
   1.124 +	/**
   1.125 +	 16-bit pixel format where 5 bits are reserved for each color and 1 bit is reserved for alpha
   1.126 +	 */
   1.127 +	EUidPixelFormatBGRA_5551 = 0x102754AA,
   1.128 +	/**
   1.129 +	 16-bit BGRA pixel format with 4 bits for each channel
   1.130 +	 */
   1.131 +	EUidPixelFormatBGRA_4444 = 0x102754AC,
   1.132 +	/**
   1.133 +	 16-bit RGB pixel format using 4 bits for each color, without alpha channel
   1.134 +	 */
   1.135 +	EUidPixelFormatBGRX_4444 = 0x102754A6,
   1.136 +	/**
   1.137 +	 16-bit color indexed with 8 bits of alpha
   1.138 +	 */
   1.139 +	EUidPixelFormatAP_88 = 0x102754AB,
   1.140 +	/**
   1.141 +	 16-bit RGB pixel format using 4 bits for each color, without alpha channel
   1.142 +	 */
   1.143 +	EUidPixelFormatXRGB_4444 = 0x10273764,
   1.144 +	/**
   1.145 +	 16-bit BGR pixel format using 4 bits for each color, without alpha channel
   1.146 +	 */
   1.147 +	EUidPixelFormatXBGR_4444 = 0x102754B0,
   1.148 +	/**
   1.149 +	 8-bit RGB texture format using 3 bits for red, 3 bits for green, and 2 bits for blue
   1.150 +	 */
   1.151 +	EUidPixelFormatRGB_332 = 0x102754A2,
   1.152 +	/**
   1.153 +	 8-bit alpha only
   1.154 +	 */
   1.155 +	EUidPixelFormatA_8 = 0x102754A3,
   1.156 +	/**
   1.157 +	 8-bit BGR texture format using 3 bits for blue, 3 bits for green, and 2 bits for red
   1.158 +	 */
   1.159 +	EUidPixelFormatBGR_332 = 0x102754B1,
   1.160 +	/**
   1.161 +	 8-bit indexed (i.e. has a palette)
   1.162 +	 */
   1.163 +	EUidPixelFormatP_8 = 0x10273763,
   1.164 +	/**
   1.165 +	 4-bit indexed (i.e. has a palette)
   1.166 +	 */
   1.167 +	EUidPixelFormatP_4 = 0x102754AD,
   1.168 +	/**
   1.169 +	 2-bit indexed (i.e. has a palette)
   1.170 +	 */
   1.171 +	EUidPixelFormatP_2 = 0x102754AE,
   1.172 +	/**
   1.173 +	 1-bit indexed (i.e. has a palette)
   1.174 +	 */
   1.175 +	EUidPixelFormatP_1 = 0x102754AF,
   1.176 +	/**
   1.177 +	 YUV - 4:2:0 format, 8 bits per sample, Y00Y01Y10Y11UV.
   1.178 +	 */
   1.179 +	EUidPixelFormatYUV_420Interleaved = 0x10273767,
   1.180 +	/**
   1.181 +	 YUV - Three arrays Y, U, V. 4:2:0 format, 8 bits per sample, Y00Y01Y02Y03...U0...V0...
   1.182 +	 */
   1.183 +	EUidPixelFormatYUV_420Planar = 0x10273768,
   1.184 +	/**
   1.185 +	 YUV 4:2:0 image format. Planar, 12 bits per pixel, Pixel order: Y00Y01Y02Y03...V0...U0...
   1.186 +	 */
   1.187 +	EUidPixelFormatYUV_420PlanarReversed = 0x1027376D,
   1.188 +	/**
   1.189 +	 YUV - Two arrays, one is all Y, the other is U and V. 4:2:0 format, 8 bits per sample, Y00Y01Y02Y03...U0V0...
   1.190 +	 */
   1.191 +	EUidPixelFormatYUV_420SemiPlanar = 0x1027376C,
   1.192 +	/**
   1.193 +	 YUV - Organized as UYVY. 4:2:2 format, 8 bits per sample, UY0VY1
   1.194 +	 */
   1.195 +	EUidPixelFormatYUV_422Interleaved = 0x10273769,
   1.196 +	/**
   1.197 +	 YUV - Three arrays Y, U, V
   1.198 +	 */
   1.199 +	EUidPixelFormatYUV_422Planar = 0x102737DA,
   1.200 +	/**
   1.201 +	 YUV - Organized as YUYV. 4:2:2 format, 8 bits per sample, Y0UY1V
   1.202 +	 */
   1.203 +	EUidPixelFormatYUV_422Reversed = 0x102754B2,
   1.204 +	/**
   1.205 +	 YUV - Two arrays, one is all Y, the other is U and V
   1.206 +	 */
   1.207 +	EUidPixelFormatYUV_422SemiPlanar = 0x102754B3,
   1.208 +	/**
   1.209 +	 YUV 4:2:2 image format. 16 bits per pixel, 8 bits per sample, Pixel order: Y1VY0U.
   1.210 +	 */
   1.211 +	EUidPixelFormatYUV_422InterleavedReversed = 0x1027376A,
   1.212 +	/**
   1.213 +	 YUV 4:2:2 image format. Interleaved, 16 bits per pixel, 8 bits per sample, Pixel order: Y0Y1UV.
   1.214 +	 */
   1.215 +	EUidPixelFormatYUV_422Interleaved16bit = 0x102737D9,
   1.216 +	/**
   1.217 +	 YUV - 4:4:4 format, each pixel contains equal parts YUV
   1.218 +	 */
   1.219 +	EUidPixelFormatYUV_444Interleaved = 0x1027376B,
   1.220 +	/**
   1.221 +	 YUV - 4:4:4 format, three arrays Y, U, V
   1.222 +	 */
   1.223 +	EUidPixelFormatYUV_444Planar = 0x102737DB,
   1.224 +	/**
   1.225 +	 8-bit grayscale.
   1.226 +	 */
   1.227 +	EUidPixelFormatL_8 = 0x102858EC,
   1.228 +	/**
   1.229 +	 4-bit grayscale.
   1.230 +	 */
   1.231 +	EUidPixelFormatL_4 = 0x102858ED,
   1.232 +	/**
   1.233 +	 2-bit grayscale.
   1.234 +	 */
   1.235 +	EUidPixelFormatL_2 = 0x102858EE,
   1.236 +	/**
   1.237 +	 1-bit grayscale (monochrome).
   1.238 +	 */
   1.239 +	EUidPixelFormatL_1 = 0x102858EF,
   1.240 +	/**
   1.241 +	 Speed Tagged JPEG
   1.242 +	 */
   1.243 +	EUidPixelFormatSpeedTaggedJPEG = 0x102869FB,
   1.244 +	/**
   1.245 +	 JPEG
   1.246 +	*/
   1.247 +	EUidPixelFormatJPEG = 0x102869FC
   1.248 +
   1.249 +	} TUidPixelFormat;
   1.250 +
   1.251 +#endif