2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Standard pixel formats. Little endian machines.
9 /****************************************************************************************/
11 /* IMPORTANT: The order of these must match the order of the vHidd_StdPixFmt
12 enum in <hidds/graphics.h> !!! */
14 const HIDDT_PixelFormat stdpfs
[] =
20 , 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000
23 , vHidd_StdPixFmt_RGB24
24 , PF_GRAPHTYPE(TrueColor
, Chunky
)
29 , 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000
32 , vHidd_StdPixFmt_BGR24
33 , PF_GRAPHTYPE(TrueColor
, Chunky
)
38 , 0x0000F800, 0x000007E0, 0x0000001F, 0x00000000
41 , vHidd_StdPixFmt_RGB16
42 , PF_GRAPHTYPE(TrueColor
, Chunky
) | vHidd_PixFmt_SwapPixelBytes_Flag
44 /* R5G6B5 little endian */
47 , 0x0000F800, 0x000007E0, 0x0000001F, 0x00000000
50 , vHidd_StdPixFmt_RGB16_LE
51 , PF_GRAPHTYPE(TrueColor
, Chunky
)
56 , 0x0000001F, 0x000007E0, 0x0000F800, 0x00000000
59 , vHidd_StdPixFmt_BGR16
60 , PF_GRAPHTYPE(TrueColor
, Chunky
) | vHidd_PixFmt_SwapPixelBytes_Flag
62 /* B5G6R5 little endian */
65 , 0x0000001F, 0x000007E0, 0x0000F800, 0x00000000
68 , vHidd_StdPixFmt_BGR16_LE
69 , PF_GRAPHTYPE(TrueColor
, Chunky
)
74 , 0x00007C00, 0x000003E0, 0x0000001F, 0x00000000
77 , vHidd_StdPixFmt_RGB15
78 , PF_GRAPHTYPE(TrueColor
, Chunky
) | vHidd_PixFmt_SwapPixelBytes_Flag
80 /* X1R5G5B5 little endian */
83 , 0x00007C00, 0x000003E0, 0x0000001F, 0x00000000
86 , vHidd_StdPixFmt_RGB15_LE
87 , PF_GRAPHTYPE(TrueColor
, Chunky
)
92 , 0x0000001F, 0x000003E0, 0x00007C00, 0x00000000
95 , vHidd_StdPixFmt_BGR15
96 , PF_GRAPHTYPE(TrueColor
, Chunky
) | vHidd_PixFmt_SwapPixelBytes_Flag
98 /* X1B5G5R5 little endian */
101 , 0x0000001F, 0x000003E0, 0x00007C00, 0x00000000
104 , vHidd_StdPixFmt_BGR15_LE
105 , PF_GRAPHTYPE(TrueColor
, Chunky
)
110 , 0x0000FF00, 0x00FF0000, 0xFF000000, 0x000000FF
113 , vHidd_StdPixFmt_ARGB32
114 , PF_GRAPHTYPE(TrueColor
, Chunky
)
119 , 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000
122 , vHidd_StdPixFmt_BGRA32
123 , PF_GRAPHTYPE(TrueColor
, Chunky
)
128 , 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000
131 , vHidd_StdPixFmt_RGBA32
132 , PF_GRAPHTYPE(TrueColor
, Chunky
)
137 , 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF
140 , vHidd_StdPixFmt_ABGR32
141 , PF_GRAPHTYPE(TrueColor
, Chunky
)
146 , 0x0000FF00, 0x00FF0000, 0xFF000000, 0x00000000
149 , vHidd_StdPixFmt_0RGB32
150 , PF_GRAPHTYPE(TrueColor
, Chunky
)
155 , 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000
158 , vHidd_StdPixFmt_BGR032
159 , PF_GRAPHTYPE(TrueColor
, Chunky
)
164 , 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000
167 , vHidd_StdPixFmt_RGB032
168 , PF_GRAPHTYPE(TrueColor
, Chunky
)
173 , 0xFF000000, 0x00FF0000, 0x0000FF00, 0x00000000
176 , vHidd_StdPixFmt_0BGR32
177 , PF_GRAPHTYPE(TrueColor
, Chunky
)
182 , 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000
185 , vHidd_StdPixFmt_LUT8
186 , PF_GRAPHTYPE(Palette
, Chunky
)
191 , 0x000000FF, 0x0000FF00, 0x00FF0000, 0x00000000
194 , vHidd_StdPixFmt_Plane
195 , PF_GRAPHTYPE(Palette
, Planar
)