Pleora Technologies Inc. eBUS SDK v6.4.0.6670 API



PvPixelType.h
Go to the documentation of this file.
1 // *****************************************************************************
2 //
3 // Copyright (c) 2008, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVPIXELTYPE_H__
8 #define __PVPIXELTYPE_H__
9 
10 #ifndef EBUS_ENUM
11 #define EBUS_ENUM(x) typedef enum
12 #endif
13 
14 #include <PvBufferLib.h>
15 
16 
17 //
18 // Color
19 //
20 
21 #define PVPIXELMONO ( 0x01000000 )
22 #define PVPIXELRGB ( 0x02000000 ) // Pre GEV 1.1, kept for bw compatibility
23 #define PVPIXELCOLOR ( 0x02000000 ) // GEV 1.1
24 #define PVPIXELCUSTOM ( 0x80000000 )
25 #define PVPIXELCOLORMASK ( 0xFF000000 )
26 
27 //
28 // Effective number of bits per pixel (including padding)
29 //
30 
31 #define PVPIXEL1BIT ( 0x00010000 )
32 #define PVPIXEL2BIT ( 0x00020000 )
33 #define PVPIXEL4BIT ( 0x00040000 )
34 #define PVPIXEL8BIT ( 0x00080000 )
35 #define PVPIXEL10BIT ( 0x000A0000 )
36 #define PVPIXEL12BIT ( 0x000C0000 )
37 #define PVPIXEL14BIT ( 0x000E0000 )
38 #define PVPIXEL16BIT ( 0x00100000 )
39 #define PVPIXEL20BIT ( 0x00140000 )
40 #define PVPIXEL24BIT ( 0x00180000 )
41 #define PVPIXEL30BIT ( 0x001E0000 )
42 #define PVPIXEL32BIT ( 0x00200000 )
43 #define PVPIXEL36BIT ( 0x00240000 )
44 #define PVPIXEL40BIT ( 0x00280000 )
45 #define PVPIXEL48BIT ( 0x00300000 )
46 #define PVPIXEL64BIT ( 0x00400000 )
47 #define PVPIXEL96BIT ( 0x00600000 )
48 #define PVBITSPERPIXELMASK ( 0x00FF0000 )
49 
50 //
51 // Pixel type ID
52 //
53 
54 #define PVPIXELIDMASK ( 0x0000FFFF )
55 
56 
57 EBUS_ENUM(PvPixelType)
58 {
59 
60  PvPixelUndefined = ( 0 ),
61  PvPixelMono8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x0001 ),
62  PvPixelMono8s = ( PVPIXELMONO | PVPIXEL8BIT | 0x0002 ),
63  PvPixelMono10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0003 ),
64  PvPixelMono10Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x0004 ),
65  PvPixelMono12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0005 ),
66  PvPixelMono12Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x0006 ),
67  PvPixelMono16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0007 ),
68  PvPixelBayerGR8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x0008 ),
69  PvPixelBayerRG8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x0009 ),
70  PvPixelBayerGB8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x000A ),
71  PvPixelBayerBG8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x000B ),
72  PvPixelBayerGR10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x000C ),
73  PvPixelBayerRG10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x000D ),
74  PvPixelBayerGB10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x000E ),
75  PvPixelBayerBG10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x000F ),
76  PvPixelBayerGR12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0010 ),
77  PvPixelBayerRG12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0011 ),
78  PvPixelBayerGB12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0012 ),
79  PvPixelBayerBG12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0013 ),
80  PvPixelRGB8 = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x0014 ),
81  PvPixelBGR8 = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x0015 ),
82  PvPixelRGBa8 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x0016 ),
83  PvPixelBGRa8 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x0017 ),
84  PvPixelRGB10 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0018 ),
85  PvPixelBGR10 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0019 ),
86  PvPixelRGB12 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x001A ),
87  PvPixelBGR12 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x001B ),
88  PvPixelRGB10V1Packed = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x001C ),
89  PvPixelRGB10p32 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x001D ),
90  PvPixelYUV411_8_UYYVYY = ( PVPIXELCOLOR | PVPIXEL12BIT | 0x001E ),
91  PvPixelYUV422_8_UYVY = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x001F ),
92  PvPixelYUV8_UYV = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x0020 ),
93  PvPixelRGB8_Planar = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x0021 ),
94  PvPixelRGB10_Planar = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0022 ),
95  PvPixelRGB12_Planar = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0023 ),
96  PvPixelRGB16_Planar = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0024 ),
97  PvPixelMono14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0025 ),
98  PvPixelBayerGR10Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x0026 ),
99  PvPixelBayerRG10Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x0027 ),
100  PvPixelBayerGB10Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x0028 ),
101  PvPixelBayerBG10Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x0029 ),
102  PvPixelBayerGR12Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x002A ),
103  PvPixelBayerRG12Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x002B ),
104  PvPixelBayerGB12Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x002C ),
105  PvPixelBayerBG12Packed = ( PVPIXELMONO | PVPIXEL12BIT | 0x002D ),
106  PvPixelBayerGR16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x002E ),
107  PvPixelBayerRG16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x002F ),
108  PvPixelBayerGB16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0030 ),
109  PvPixelBayerBG16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0031 ),
110  PvPixelYUV422_8 = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x0032 ),
111  PvPixelRGB16 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0033 ),
112  PvPixelRGB12V1Packed = ( PVPIXELCOLOR | PVPIXEL36BIT | 0x0034 ),
113  PvPixelRGB565p = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x0035 ),
114  PvPixelBGR565p = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x0036 ),
115  PvPixelMono1p = ( PVPIXELMONO | PVPIXEL1BIT | 0x0037 ),
116  PvPixelMono2p = ( PVPIXELMONO | PVPIXEL2BIT | 0x0038 ),
117  PvPixelMono4p = ( PVPIXELMONO | PVPIXEL4BIT | 0x0039 ),
118  PvPixelYCbCr8_CbYCr = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x003A ),
119  PvPixelYCbCr422_8 = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x003B ),
120  PvPixelYCbCr411_8_CbYYCrYY = ( PVPIXELCOLOR | PVPIXEL12BIT | 0x003C ),
121  PvPixelYCbCr601_8_CbYCr = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x003D ),
122  PvPixelYCbCr601_422_8 = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x003E ),
123  PvPixelYCbCr601_411_8_CbYYCrYY = ( PVPIXELCOLOR | PVPIXEL12BIT | 0x003F ),
124  PvPixelYCbCr709_8_CbYCr = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x0040 ),
125  PvPixelYCbCr709_422_8 = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x0041 ),
126  PvPixelYCbCr709_411_8_CbYYCrYY = ( PVPIXELCOLOR | PVPIXEL12BIT | 0x0042 ),
127  PvPixelYCbCr422_8_CbYCrY = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x0043 ),
128  PvPixelYCbCr601_422_8_CbYCrY = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x0044 ),
129  PvPixelYCbCr709_422_8_CbYCrY = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x0045 ),
130  PvPixelMono10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x0046 ),
131  PvPixelMono12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x0047 ),
132 
133  PvPixelBGR10p = ( PVPIXELCOLOR | PVPIXEL30BIT | 0x0048 ),
134  PvPixelBGR12p = ( PVPIXELCOLOR | PVPIXEL36BIT | 0x0049 ),
135  PvPixelBGR14 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x004A ),
136  PvPixelBGR16 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x004B ),
137  PvPixelBGRa10 = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x004C ),
138  PvPixelBGRa10p = ( PVPIXELCOLOR | PVPIXEL40BIT | 0x004D ),
139  PvPixelBGRa12 = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x004E ),
140  PvPixelBGRa12p = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x004F ),
141  PvPixelBGRa14 = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x0050 ),
142  PvPixelBGRa16 = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x0051 ),
143  PvPixelRGB10p = ( PVPIXELCOLOR | PVPIXEL30BIT | 0x0052 ),
144 
145  PvPixelBayerBG10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x0052 ),
146  PvPixelBayerBG12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x0053 ),
147  PvPixelBayerGB10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x0054 ),
148  PvPixelBayerGB12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x0055 ),
149  PvPixelBayerGR10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x0056 ),
150  PvPixelBayerGR12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x0057 ),
151  PvPixelBayerRG10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x0058 ),
152  PvPixelBayerRG12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x0059 ),
153 
154  PvPixelYCbCr411_8 = ( PVPIXELCOLOR | PVPIXEL12BIT | 0x005A ),
155  PvPixelYCbCr8 = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x005B ),
156 
157  PvPixelRGB12p = ( PVPIXELCOLOR | PVPIXEL36BIT | 0x005C ),
158  PvPixelRGB14 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x005D ),
159  PvPixelRGBa10 = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x005E ),
160  PvPixelRGBa10p = ( PVPIXELCOLOR | PVPIXEL40BIT | 0x005F ),
161  PvPixelRGBa12 = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x0060 ),
162  PvPixelRGBa12p = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0061 ),
163  PvPixelRGBa14 = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x0062 ),
164  PvPixelRGBa16 = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x0063 ),
165 
166  PvPixelYCbCr422_10 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x0065 ),
167  PvPixelYCbCr422_12 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x0066 ),
168 
169  PvPixelSCF1WBWG8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x0067 ),
170  PvPixelSCF1WBWG10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0068 ),
171  PvPixelSCF1WBWG10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x0069 ),
172  PvPixelSCF1WBWG12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x006A ),
173  PvPixelSCF1WBWG12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x006B ),
174  PvPixelSCF1WBWG14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x006C ),
175  PvPixelSCF1WBWG16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x006D ),
176  PvPixelSCF1WGWB8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x006E ),
177  PvPixelSCF1WGWB10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x006F ),
178  PvPixelSCF1WGWB10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x0070 ),
179  PvPixelSCF1WGWB12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0071 ),
180  PvPixelSCF1WGWB12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x0072 ),
181  PvPixelSCF1WGWB14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0073 ),
182  PvPixelSCF1WGWB16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0074 ),
183  PvPixelSCF1WGWR8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x0075 ),
184  PvPixelSCF1WGWR10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0076 ),
185  PvPixelSCF1WGWR10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x0077 ),
186  PvPixelSCF1WGWR12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0078 ),
187  PvPixelSCF1WGWR12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x0079 ),
188  PvPixelSCF1WGWR14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x007A ),
189  PvPixelSCF1WGWR16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x007B ),
190  PvPixelSCF1WRWG8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x007C ),
191  PvPixelSCF1WRWG10 = ( PVPIXELMONO | PVPIXEL16BIT | 0x007D ),
192  PvPixelSCF1WRWG10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x007E ),
193  PvPixelSCF1WRWG12 = ( PVPIXELMONO | PVPIXEL16BIT | 0x007F ),
194  PvPixelSCF1WRWG12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x0080 ),
195  PvPixelSCF1WRWG14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0081 ),
196  PvPixelSCF1WRWG16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0082 ),
197 
198  PvPixelYCbCr10_CbYCr = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0083 ) ,
199  PvPixelYCbCr10p_CbYCr = ( PVPIXELCOLOR | PVPIXEL30BIT | 0x0084 ),
200  PvPixelYCbCr12_CbYCr = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0085 ),
201  PvPixelYCbCr12p_CbYCr = ( PVPIXELCOLOR | PVPIXEL36BIT | 0x0086 ),
202  PvPixelYCbCr422_10p = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x0087 ),
203  PvPixelYCbCr422_12p = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x0088 ),
204  PvPixelYCbCr601_10_CbYCr = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0089 ),
205  PvPixelYCbCr601_10p_CbYCr = ( PVPIXELCOLOR | PVPIXEL30BIT | 0x008A ),
206  PvPixelYCbCr601_12_CbYCr = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x008B ),
207  PvPixelYCbCr601_12p_CbYCr = ( PVPIXELCOLOR | PVPIXEL36BIT | 0x008C ),
208  PvPixelYCbCr601_422_10 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x008D ),
209  PvPixelYCbCr601_422_10p = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x008E ),
210  PvPixelYCbCr601_422_12 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x008F ),
211  PvPixelYCbCr601_422_12p = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x0090 ),
212  PvPixelYCbCr709_10_CbYCr = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0091 ),
213  PvPixelYCbCr709_10p_CbYCr = ( PVPIXELCOLOR | PVPIXEL30BIT | 0x0092 ),
214  PvPixelYCbCr709_12_CbYCr = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x0093 ),
215  PvPixelYCbCr709_12p_CbYCr = ( PVPIXELCOLOR | PVPIXEL36BIT | 0x0094 ),
216  PvPixelYCbCr709_422_10 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x0095 ),
217  PvPixelYCbCr709_422_10p = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x0096 ),
218  PvPixelYCbCr709_422_12 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x0097 ),
219  PvPixelYCbCr709_422_12p = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x0098 ),
220  PvPixelYCbCr422_10_CbYCrY = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x0099 ),
221  PvPixelYCbCr422_10p_CbYCrY = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x009A ),
222  PvPixelYCbCr422_12_CbYCrY = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x009B ),
223  PvPixelYCbCr422_12p_CbYCrY = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x009C ),
224  PvPixelYCbCr601_422_10_CbYCrY = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x009D ),
225  PvPixelYCbCr601_422_10p_CbYCrY = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x009E ),
226  PvPixelYCbCr601_422_12_CbYCrY = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x009F ),
227  PvPixelYCbCr601_422_12p_CbYCrY = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x00A0 ),
228  PvPixelYCbCr709_422_10_CbYCrY = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x00A1 ),
229  PvPixelYCbCr709_422_10p_CbYCrY = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x00A2 ),
230  PvPixelYCbCr709_422_12_CbYCrY = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x00A3 ),
231  PvPixelYCbCr709_422_12p_CbYCrY = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x00A4 ),
232 
233  PvPixelBiColorRGBG8 = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x00A5 ),
234  PvPixelBiColorBGRG8 = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x00A6 ),
235  PvPixelBiColorRGBG10 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x00A7 ),
236  PvPixelBiColorRGBG10p = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x00A8 ),
237  PvPixelBiColorBGRG10 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x00A9 ),
238  PvPixelBiColorBGRG10p = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x00AA ),
239  PvPixelBiColorRGBG12 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x00AB ),
240  PvPixelBiColorRGBG12p = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x00AC ),
241  PvPixelBiColorBGRG12 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x00AD ),
242  PvPixelBiColorBGRG12p = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x00AE ),
243  PvPixelCoord3D_A8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x00AF ),
244  PvPixelCoord3D_B8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x00B0 ),
245  PvPixelCoord3D_C8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x00B1 ),
246  PvPixelCoord3D_ABC8 = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x00B2 ),
247  PvPixelCoord3D_ABC8_Planar = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x00B3 ),
248  PvPixelCoord3D_AC8 = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x00B4 ),
249  PvPixelCoord3D_AC8_Planar = ( PVPIXELCOLOR | PVPIXEL16BIT | 0x00B5 ),
250  PvPixelCoord3D_A16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x00B6 ),
251  PvPixelCoord3D_B16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x00B7 ),
252  PvPixelCoord3D_C16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x00B8 ),
253  PvPixelCoord3D_ABC16 = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x00B9 ),
254  PvPixelCoord3D_ABC16_Planar = ( PVPIXELCOLOR | PVPIXEL48BIT | 0x00BA ),
255  PvPixelCoord3D_AC16 = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x00BB ),
256  PvPixelCoord3D_AC16_Planar = ( PVPIXELCOLOR | PVPIXEL32BIT | 0x00BC ),
257  PvPixelCoord3D_A32f = ( PVPIXELMONO | PVPIXEL32BIT | 0x00BD ),
258  PvPixelCoord3D_B32f = ( PVPIXELMONO | PVPIXEL32BIT | 0x00BE ),
259  PvPixelCoord3D_C32f = ( PVPIXELMONO | PVPIXEL32BIT | 0x00BF ),
260  PvPixelCoord3D_ABC32f = ( PVPIXELCOLOR | PVPIXEL96BIT | 0x00C0 ),
261  PvPixelCoord3D_ABC32f_Planar = ( PVPIXELCOLOR | PVPIXEL96BIT | 0x00C1 ),
262  PvPixelCoord3D_AC32f = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x00C2 ),
263  PvPixelCoord3D_AC32f_Planar = ( PVPIXELCOLOR | PVPIXEL64BIT | 0x00C3 ),
264 
265  PvPixelConfidence1 = ( PVPIXELMONO | PVPIXEL8BIT | 0x00C4 ),
266  PvPixelConfidence1p = ( PVPIXELMONO | PVPIXEL1BIT | 0x00C5 ),
267  PvPixelConfidence8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x00C6 ),
268  PvPixelConfidence16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x00C7 ),
269  PvPixelConfidence32f = ( PVPIXELMONO | PVPIXEL32BIT | 0x00C8 ),
270 
271  PvPixelR8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x00C9 ),
272  PvPixelR10 = ( PVPIXELMONO | PVPIXEL10BIT | 0x00CA ),
273  PvPixelR12 = ( PVPIXELMONO | PVPIXEL12BIT | 0x00CB ),
274  PvPixelR16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x00CC ),
275  PvPixelG8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x00CD ),
276  PvPixelG10 = ( PVPIXELMONO | PVPIXEL10BIT | 0x00CE ),
277  PvPixelG12 = ( PVPIXELMONO | PVPIXEL12BIT | 0x00CF ),
278  PvPixelG16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x00D0 ),
279  PvPixelB8 = ( PVPIXELMONO | PVPIXEL8BIT | 0x00D1 ),
280  PvPixelB10 = ( PVPIXELMONO | PVPIXEL10BIT | 0x00D2 ),
281  PvPixelB12 = ( PVPIXELMONO | PVPIXEL12BIT | 0x00D3 ),
282  PvPixelB16 = ( PVPIXELMONO | PVPIXEL16BIT | 0x00D4 ),
283 
284  PvPixelCoord3D_A10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x00D5 ),
285  PvPixelCoord3D_B10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x00D6 ),
286  PvPixelCoord3D_C10p = ( PVPIXELMONO | PVPIXEL10BIT | 0x00D7 ),
287  PvPixelCoord3D_A12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x00D8 ),
288  PvPixelCoord3D_B12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x00D9 ),
289  PvPixelCoord3D_C12p = ( PVPIXELMONO | PVPIXEL12BIT | 0x00DA ),
290  PvPixelCoord3D_ABC10p = ( PVPIXELCOLOR | PVPIXEL30BIT | 0x00DB ),
291  PvPixelCoord3D_ABC10p_Planar = ( PVPIXELCOLOR | PVPIXEL30BIT | 0x00DC ),
292  PvPixelCoord3D_ABC12p = ( PVPIXELCOLOR | PVPIXEL36BIT | 0x00DE ),
293  PvPixelCoord3D_ABC12p_Planar = ( PVPIXELCOLOR | PVPIXEL36BIT | 0x00DF ),
294  PvPixelCoord3D_AC10p = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x00F0 ),
295  PvPixelCoord3D_AC10p_Planar = ( PVPIXELCOLOR | PVPIXEL20BIT | 0x00F1 ),
296  PvPixelCoord3D_AC12p = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x00F2 ),
297  PvPixelCoord3D_AC12p_Planar = ( PVPIXELCOLOR | PVPIXEL24BIT | 0x00F3 ),
298 
299  PvPixelMono14p = ( PVPIXELMONO | PVPIXEL14BIT | 0x0104 ),
300  PvPixelBayerGR14p = ( PVPIXELMONO | PVPIXEL14BIT | 0x0105 ),
301  PvPixelBayerRG14p = ( PVPIXELMONO | PVPIXEL14BIT | 0x0106 ),
302  PvPixelBayerGB14p = ( PVPIXELMONO | PVPIXEL14BIT | 0x0107 ),
303  PvPixelBayerBG14p = ( PVPIXELMONO | PVPIXEL14BIT | 0x0108 ),
304  PvPixelBayerGR14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x0109 ),
305  PvPixelBayerRG14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x010A ),
306  PvPixelBayerGB14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x010B ),
307  PvPixelBayerBG14 = ( PVPIXELMONO | PVPIXEL16BIT | 0x010C ),
308  PvPixelBayerGR4p = ( PVPIXELMONO | PVPIXEL4BIT | 0x010D ),
309  PvPixelBayerRG4p = ( PVPIXELMONO | PVPIXEL4BIT | 0x010E ),
310  PvPixelBayerGB4p = ( PVPIXELMONO | PVPIXEL4BIT | 0x010F ),
311  PvPixelBayerBG4p = ( PVPIXELMONO | PVPIXEL4BIT | 0x0110 ),
312  PvPixelMono32 = ( PVPIXELMONO | PVPIXEL32BIT | 0x0111 )
313 
315 
316 // Mapping to Windows pixel types (MFC, .NET, DirectX, Windows Bitmap, etc.)
317 #define PV_PIXEL_WIN_RGB32 ( PvPixelBGRa8 )
318 #define PV_PIXEL_WIN_RGB24 ( PvPixelBGR8 )
319 #define PV_PIXEL_WIN_RGB16 ( PvPixelRGB565p )
320 
321 // Mapping to Qt pixel types
322 #define PV_PIXEL_QT_RGB32 ( PvPixelBGRa8 )
323 #define PV_PIXEL_QT_RGB888 ( PvPixelBGR8 )
324 #define PV_PIXEL_QT_RGB565 ( PvPixelRGB565p )
325 
326 // Mapping to OpenGL
327 #define PV_PIXEL_OPENGL_RGB32 ( PvPixelRGBa8 )
328 #define PV_PIXEL_OPENGL_RGB24 ( PvPixelRGB8 )
329 #define PV_PIXEL_OPENGL_BGR32 ( PvPixelBGRa8 )
330 #define PV_PIXEL_OPENGL_BGR24 ( PvPixelBGR8 )
331 
332 // Pre GEV 2.0 pixel types
333 #ifndef PV_NO_GEV1X_PIXEL_TYPES
334  #define PvPixelMono8Signed ( PvPixelMono8s )
335  #define PvPixelRGB8Packed ( PvPixelRGB8 )
336  #define PvPixelBGR8Packed ( PvPixelBGR8 )
337  #define PvPixelRGBA8Packed ( PvPixelRGBa8 )
338  #define PvPixelBGRA8Packed ( PvPixelBGRa8 )
339  #define PvPixelRGB10Packed ( PvPixelRGB10 )
340  #define PvPixelBGR10Packed ( PvPixelBGR10 )
341  #define PvPixelRGB12Packed ( PvPixelRGB12 )
342  #define PvPixelBGR12Packed ( PvPixelBGR12 )
343  #define PvPixelRGB16Packed ( PvPixelRGB16 )
344  #define PvPixelBGR10V1Packed ( PvPixelRGB10V1Packed )
345  #define PvPixelBGR10V2Packed ( PvPixelRGB10p32 )
346  #define PvPixelYUV411Packed ( PvPixelYUV411_8_UYYVYY )
347  #define PvPixelYUV422Packed ( PvPixelYUV422_8_UYVY )
348  #define PvPixelYUV422YUYVPacked ( PvPixelYUV422_8 )
349  #define PvPixelYUV444Packed ( PvPixelYUV8_UYV )
350  #define PvPixelRGB8Planar ( PvPixelRGB8_Planar )
351  #define PvPixelRGB10Planar ( PvPixelRGB10_Planar )
352  #define PvPixelRGB12Planar ( PvPixelRGB12_Planar )
353  #define PvPixelRGB16Planar ( PvPixelRGB16_Planar )
354 #endif // PV_NO_GEV1X_PIXEL_TYPES
355 
356 // Deprecated pixel types, for backward compatibility
357 #ifndef PV_NO_DEPRECATED_PIXEL_TYPES
358  #define PvPixelWinRGB16 ( PvPixelRGB565p )
359  #define PvPixelWinRGB32 ( PvPixelBGRa8 )
360  #define PvPixelWinRGB24 ( PvPixelBGR8 )
361  #define PvPixelWinBGR32 ( PvPixelRGBa8 )
362  #define PvPixelWinBGR24 ( PvPixelRGB8 )
363 #endif // PV_NO_DEPRECATED_PIXEL_TYPES
364 
372 PV_BUFFER_API uint32_t PvGetPixelBitCount( PvPixelType aType );
373 
374 #endif
uint32_t PvGetPixelBitCount(PvPixelType aType)
Returns the size of one pixel of a specific pixel type, in bits.
Definition: PvPixelType.cpp:16
PvPixelType
Definition: PvPixelType.h:58
@ PvPixelYCbCr709_422_8
Definition: PvPixelType.h:125
@ PvPixelYCbCr709_422_8_CbYCrY
Definition: PvPixelType.h:129
@ PvPixelBayerRG4p
Definition: PvPixelType.h:309
@ PvPixelYUV422_8
Definition: PvPixelType.h:110
@ PvPixelMono4p
Definition: PvPixelType.h:117
@ PvPixelBayerBG10Packed
Definition: PvPixelType.h:101
@ PvPixelG8
Definition: PvPixelType.h:275
@ PvPixelBayerRG8
Definition: PvPixelType.h:69
@ PvPixelG10
Definition: PvPixelType.h:276
@ PvPixelCoord3D_ABC32f_Planar
Definition: PvPixelType.h:261
@ PvPixelBayerGR8
Definition: PvPixelType.h:68
@ PvPixelRGB10p32
Definition: PvPixelType.h:89
@ PvPixelBiColorRGBG12
Definition: PvPixelType.h:239
@ PvPixelMono2p
Definition: PvPixelType.h:116
@ PvPixelBiColorRGBG10
Definition: PvPixelType.h:235
@ PvPixelB8
Definition: PvPixelType.h:279
@ PvPixelConfidence1p
Definition: PvPixelType.h:266
@ PvPixelRGB565p
Definition: PvPixelType.h:113
@ PvPixelBayerRG16
Definition: PvPixelType.h:107
@ PvPixelYCbCr709_8_CbYCr
Definition: PvPixelType.h:124
@ PvPixelRGB12V1Packed
Definition: PvPixelType.h:112
@ PvPixelBayerGB14p
Definition: PvPixelType.h:302
@ PvPixelCoord3D_ABC10p
Definition: PvPixelType.h:290
@ PvPixelCoord3D_A8
Definition: PvPixelType.h:243
@ PvPixelRGB12_Planar
Definition: PvPixelType.h:95
@ PvPixelBayerGB10Packed
Definition: PvPixelType.h:100
@ PvPixelCoord3D_AC12p
Definition: PvPixelType.h:296
@ PvPixelBGRa8
Definition: PvPixelType.h:83
@ PvPixelCoord3D_AC16
Definition: PvPixelType.h:255
@ PvPixelBayerBG12
Definition: PvPixelType.h:79
@ PvPixelCoord3D_A32f
Definition: PvPixelType.h:257
@ PvPixelRGB8_Planar
Definition: PvPixelType.h:93
@ PvPixelBayerGR10
Definition: PvPixelType.h:72
@ PvPixelBayerRG10Packed
Definition: PvPixelType.h:99
@ PvPixelBayerGB4p
Definition: PvPixelType.h:310
@ PvPixelYCbCr601_411_8_CbYYCrYY
Definition: PvPixelType.h:123
@ PvPixelMono8s
Definition: PvPixelType.h:62
@ PvPixelBayerGB14
Definition: PvPixelType.h:306
@ PvPixelBayerBG8
Definition: PvPixelType.h:71
@ PvPixelYCbCr411_8_CbYYCrYY
Definition: PvPixelType.h:120
@ PvPixelCoord3D_AC32f
Definition: PvPixelType.h:262
@ PvPixelCoord3D_ABC8
Definition: PvPixelType.h:246
@ PvPixelG16
Definition: PvPixelType.h:278
@ PvPixelCoord3D_ABC12p
Definition: PvPixelType.h:292
@ PvPixelMono12
Definition: PvPixelType.h:65
@ PvPixelBayerRG12
Definition: PvPixelType.h:77
@ PvPixelBayerBG10
Definition: PvPixelType.h:75
@ PvPixelBiColorBGRG12p
Definition: PvPixelType.h:242
@ PvPixelR16
Definition: PvPixelType.h:274
@ PvPixelBayerGB12Packed
Definition: PvPixelType.h:104
@ PvPixelBayerBG4p
Definition: PvPixelType.h:311
@ PvPixelBayerGR10Packed
Definition: PvPixelType.h:98
@ PvPixelMono8
Definition: PvPixelType.h:61
@ PvPixelBGR8
Definition: PvPixelType.h:81
@ PvPixelCoord3D_A16
Definition: PvPixelType.h:250
@ PvPixelBiColorBGRG12
Definition: PvPixelType.h:241
@ PvPixelYCbCr601_422_8_CbYCrY
Definition: PvPixelType.h:128
@ PvPixelYCbCr709_411_8_CbYYCrYY
Definition: PvPixelType.h:126
@ PvPixelBayerRG14p
Definition: PvPixelType.h:301
@ PvPixelBiColorBGRG10p
Definition: PvPixelType.h:238
@ PvPixelMono12Packed
Definition: PvPixelType.h:66
@ PvPixelCoord3D_ABC10p_Planar
Definition: PvPixelType.h:291
@ PvPixelCoord3D_C16
Definition: PvPixelType.h:252
@ PvPixelRGB16_Planar
Definition: PvPixelType.h:96
@ PvPixelCoord3D_AC8_Planar
Definition: PvPixelType.h:249
@ PvPixelB16
Definition: PvPixelType.h:282
@ PvPixelCoord3D_ABC12p_Planar
Definition: PvPixelType.h:293
@ PvPixelBayerGR16
Definition: PvPixelType.h:106
@ PvPixelBayerGB10
Definition: PvPixelType.h:74
@ PvPixelCoord3D_B32f
Definition: PvPixelType.h:258
@ PvPixelCoord3D_AC32f_Planar
Definition: PvPixelType.h:263
@ PvPixelBayerRG12Packed
Definition: PvPixelType.h:103
@ PvPixelCoord3D_ABC16_Planar
Definition: PvPixelType.h:254
@ PvPixelCoord3D_B12p
Definition: PvPixelType.h:288
@ PvPixelRGB10
Definition: PvPixelType.h:84
@ PvPixelCoord3D_AC10p
Definition: PvPixelType.h:294
@ PvPixelBiColorRGBG8
Definition: PvPixelType.h:233
@ PvPixelCoord3D_B8
Definition: PvPixelType.h:244
@ PvPixelBiColorRGBG10p
Definition: PvPixelType.h:236
@ PvPixelMono14
Definition: PvPixelType.h:97
@ PvPixelCoord3D_A10p
Definition: PvPixelType.h:284
@ PvPixelConfidence8
Definition: PvPixelType.h:267
@ PvPixelCoord3D_B10p
Definition: PvPixelType.h:285
@ PvPixelYCbCr422_8
Definition: PvPixelType.h:119
@ PvPixelMono1p
Definition: PvPixelType.h:115
@ PvPixelRGB10V1Packed
Definition: PvPixelType.h:88
@ PvPixelBGR12
Definition: PvPixelType.h:87
@ PvPixelB12
Definition: PvPixelType.h:281
@ PvPixelYUV8_UYV
Definition: PvPixelType.h:92
@ PvPixelCoord3D_AC10p_Planar
Definition: PvPixelType.h:295
@ PvPixelConfidence32f
Definition: PvPixelType.h:269
@ PvPixelYUV411_8_UYYVYY
Definition: PvPixelType.h:90
@ PvPixelBayerGB8
Definition: PvPixelType.h:70
@ PvPixelYCbCr601_8_CbYCr
Definition: PvPixelType.h:121
@ PvPixelMono32
Definition: PvPixelType.h:312
@ PvPixelBayerRG10
Definition: PvPixelType.h:73
@ PvPixelMono10
Definition: PvPixelType.h:63
@ PvPixelYCbCr601_422_8
Definition: PvPixelType.h:122
@ PvPixelRGBa8
Definition: PvPixelType.h:82
@ PvPixelR10
Definition: PvPixelType.h:272
@ PvPixelRGB8
Definition: PvPixelType.h:80
@ PvPixelYUV422_8_UYVY
Definition: PvPixelType.h:91
@ PvPixelRGB12
Definition: PvPixelType.h:86
@ PvPixelCoord3D_A12p
Definition: PvPixelType.h:287
@ PvPixelG12
Definition: PvPixelType.h:277
@ PvPixelBayerGR12Packed
Definition: PvPixelType.h:102
@ PvPixelCoord3D_C32f
Definition: PvPixelType.h:259
@ PvPixelMono10Packed
Definition: PvPixelType.h:64
@ PvPixelBayerGB12
Definition: PvPixelType.h:78
@ PvPixelCoord3D_ABC8_Planar
Definition: PvPixelType.h:247
@ PvPixelCoord3D_ABC16
Definition: PvPixelType.h:253
@ PvPixelBiColorBGRG10
Definition: PvPixelType.h:237
@ PvPixelMono14p
Definition: PvPixelType.h:299
@ PvPixelConfidence1
Definition: PvPixelType.h:265
@ PvPixelCoord3D_C12p
Definition: PvPixelType.h:289
@ PvPixelCoord3D_B16
Definition: PvPixelType.h:251
@ PvPixelBayerRG14
Definition: PvPixelType.h:305
@ PvPixelRGB16
Definition: PvPixelType.h:111
@ PvPixelYCbCr8_CbYCr
Definition: PvPixelType.h:118
@ PvPixelBayerGB16
Definition: PvPixelType.h:108
@ PvPixelBayerGR14
Definition: PvPixelType.h:304
@ PvPixelCoord3D_AC16_Planar
Definition: PvPixelType.h:256
@ PvPixelCoord3D_ABC32f
Definition: PvPixelType.h:260
@ PvPixelBGR565p
Definition: PvPixelType.h:114
@ PvPixelBayerBG14p
Definition: PvPixelType.h:303
@ PvPixelMono16
Definition: PvPixelType.h:67
@ PvPixelBayerBG14
Definition: PvPixelType.h:307
@ PvPixelBiColorRGBG12p
Definition: PvPixelType.h:240
@ PvPixelR8
Definition: PvPixelType.h:271
@ PvPixelB10
Definition: PvPixelType.h:280
@ PvPixelBayerGR12
Definition: PvPixelType.h:76
@ PvPixelR12
Definition: PvPixelType.h:273
@ PvPixelCoord3D_AC12p_Planar
Definition: PvPixelType.h:297
@ PvPixelCoord3D_C10p
Definition: PvPixelType.h:286
@ PvPixelRGB10_Planar
Definition: PvPixelType.h:94
@ PvPixelYCbCr422_8_CbYCrY
Definition: PvPixelType.h:127
@ PvPixelBayerBG12Packed
Definition: PvPixelType.h:105
@ PvPixelBGR10
Definition: PvPixelType.h:85
@ PvPixelBayerBG16
Definition: PvPixelType.h:109
@ PvPixelCoord3D_AC8
Definition: PvPixelType.h:248
@ PvPixelConfidence16
Definition: PvPixelType.h:268
@ PvPixelCoord3D_C8
Definition: PvPixelType.h:245
@ PvPixelBiColorBGRG8
Definition: PvPixelType.h:234
@ PvPixelBayerGR14p
Definition: PvPixelType.h:300
@ PvPixelBayerGR4p
Definition: PvPixelType.h:308

Copyright (c) 2002-2024 Pleora Technologies Inc.
www.pleora.com