|
34 | 34 | //| """The input buffer to `QRDecoder.decode` consists of greyscale values in every byte"""
|
35 | 35 | //|
|
36 | 36 | //| EVEN_BYTES: PixelPolicy
|
37 |
| -//| """The input buffer to `QRDecoder.decode` consists of greyscale values in positions 0, 2, …, and ignored bytes in positions 1, 3, …. This can decode directly from YUV images where the even bytes hold the Y (luminance) data.""" |
| 37 | +//| """The input buffer to `QRDecoder.decode` consists of greyscale values in positions 0, 2, …, and ignored bytes in positions 1, 3, …. This can decode directly from YUV images where the even bytes hold the Y (luminance) data.""" |
38 | 38 | //|
|
39 | 39 | //| ODD_BYTES: PixelPolicy
|
40 |
| -//| """The input buffer to `QRDecoder.decode` consists of greyscale values in positions 1, 3, …, and ignored bytes in positions 0, 2, …. This can decode directly from YUV images where the odd bytes hold the Y (luminance) data""" |
| 40 | +//| """The input buffer to `QRDecoder.decode` consists of greyscale values in positions 1, 3, …, and ignored bytes in positions 0, 2, …. This can decode directly from YUV images where the odd bytes hold the Y (luminance) data""" |
| 41 | +//| |
| 42 | +//| RGB565_SWAPPED: PixelPolicy |
| 43 | +//| """The input buffer to `QRDecoder.decode` consists of RGB565 values in byte-swapped order. Most cameras produce data in byte-swapped order. The green component is used.""" |
| 44 | +//| |
| 45 | +//| RGB565: PixelPolicy |
| 46 | +//| """The input buffer to `QRDecoder.decode` consists of RGB565 values in native order. The green component is used.""" |
41 | 47 | //|
|
42 | 48 |
|
43 | 49 | MAKE_ENUM_VALUE(qrio_pixel_policy_type, qrio_pixel_policy, EVERY_BYTE, QRIO_EVERY_BYTE);
|
| 50 | +MAKE_ENUM_VALUE(qrio_pixel_policy_type, qrio_pixel_policy, RGB565, QRIO_RGB565); |
| 51 | +MAKE_ENUM_VALUE(qrio_pixel_policy_type, qrio_pixel_policy, RGB565_SWAPPED, QRIO_RGB565_SWAPPED); |
44 | 52 | MAKE_ENUM_VALUE(qrio_pixel_policy_type, qrio_pixel_policy, EVEN_BYTES, QRIO_EVEN_BYTES);
|
45 | 53 | MAKE_ENUM_VALUE(qrio_pixel_policy_type, qrio_pixel_policy, ODD_BYTES, QRIO_EVEN_BYTES);
|
46 | 54 |
|
47 | 55 | MAKE_ENUM_MAP(qrio_pixel_policy) {
|
48 | 56 | MAKE_ENUM_MAP_ENTRY(qrio_pixel_policy, EVERY_BYTE),
|
| 57 | + MAKE_ENUM_MAP_ENTRY(qrio_pixel_policy, RGB565), |
| 58 | + MAKE_ENUM_MAP_ENTRY(qrio_pixel_policy, RGB565_SWAPPED), |
49 | 59 | MAKE_ENUM_MAP_ENTRY(qrio_pixel_policy, EVEN_BYTES),
|
50 | 60 | MAKE_ENUM_MAP_ENTRY(qrio_pixel_policy, ODD_BYTES),
|
51 | 61 | };
|
|
0 commit comments