22constexpr uint32_t __fourcc(
char a,
char b,
char c,
char d)
24 return (
static_cast<uint32_t
>(a) << 0) |
25 (
static_cast<uint32_t
>(b) << 8) |
26 (
static_cast<uint32_t
>(c) << 16) |
27 (
static_cast<uint32_t
>(d) << 24);
30constexpr uint64_t __mod(
unsigned int vendor,
unsigned int mod)
32 return (
static_cast<uint64_t
>(vendor) << 56) |
33 (
static_cast<uint64_t
>(mod) << 0);
38constexpr PixelFormat R8{ __fourcc(
'R',
'8',
' ',
' '), __mod(0, 0) };
39constexpr PixelFormat R10{ __fourcc(
'R',
'1',
'0',
' '), __mod(0, 0) };
40constexpr PixelFormat R12{ __fourcc(
'R',
'1',
'2',
' '), __mod(0, 0) };
41constexpr PixelFormat RGB565{ __fourcc(
'R',
'G',
'1',
'6'), __mod(0, 0) };
42constexpr PixelFormat RGB565_BE{ __fourcc(
'R',
'G',
'1',
'6'), __mod(0, 0) };
43constexpr PixelFormat RGB888{ __fourcc(
'R',
'G',
'2',
'4'), __mod(0, 0) };
44constexpr PixelFormat BGR888{ __fourcc(
'B',
'G',
'2',
'4'), __mod(0, 0) };
45constexpr PixelFormat XRGB8888{ __fourcc(
'X',
'R',
'2',
'4'), __mod(0, 0) };
46constexpr PixelFormat XBGR8888{ __fourcc(
'X',
'B',
'2',
'4'), __mod(0, 0) };
47constexpr PixelFormat RGBX8888{ __fourcc(
'R',
'X',
'2',
'4'), __mod(0, 0) };
48constexpr PixelFormat BGRX8888{ __fourcc(
'B',
'X',
'2',
'4'), __mod(0, 0) };
49constexpr PixelFormat ARGB8888{ __fourcc(
'A',
'R',
'2',
'4'), __mod(0, 0) };
50constexpr PixelFormat ABGR8888{ __fourcc(
'A',
'B',
'2',
'4'), __mod(0, 0) };
51constexpr PixelFormat RGBA8888{ __fourcc(
'R',
'A',
'2',
'4'), __mod(0, 0) };
52constexpr PixelFormat BGRA8888{ __fourcc(
'B',
'A',
'2',
'4'), __mod(0, 0) };
53constexpr PixelFormat YUYV{ __fourcc(
'Y',
'U',
'Y',
'V'), __mod(0, 0) };
54constexpr PixelFormat YVYU{ __fourcc(
'Y',
'V',
'Y',
'U'), __mod(0, 0) };
55constexpr PixelFormat UYVY{ __fourcc(
'U',
'Y',
'V',
'Y'), __mod(0, 0) };
56constexpr PixelFormat VYUY{ __fourcc(
'V',
'Y',
'U',
'Y'), __mod(0, 0) };
57constexpr PixelFormat AVUY8888{ __fourcc(
'A',
'V',
'U',
'Y'), __mod(0, 0) };
58constexpr PixelFormat XVUY8888{ __fourcc(
'X',
'V',
'U',
'Y'), __mod(0, 0) };
59constexpr PixelFormat NV12{ __fourcc(
'N',
'V',
'1',
'2'), __mod(0, 0) };
60constexpr PixelFormat NV21{ __fourcc(
'N',
'V',
'2',
'1'), __mod(0, 0) };
61constexpr PixelFormat NV16{ __fourcc(
'N',
'V',
'1',
'6'), __mod(0, 0) };
62constexpr PixelFormat NV61{ __fourcc(
'N',
'V',
'6',
'1'), __mod(0, 0) };
63constexpr PixelFormat NV24{ __fourcc(
'N',
'V',
'2',
'4'), __mod(0, 0) };
64constexpr PixelFormat NV42{ __fourcc(
'N',
'V',
'4',
'2'), __mod(0, 0) };
65constexpr PixelFormat YUV420{ __fourcc(
'Y',
'U',
'1',
'2'), __mod(0, 0) };
66constexpr PixelFormat YVU420{ __fourcc(
'Y',
'V',
'1',
'2'), __mod(0, 0) };
67constexpr PixelFormat YUV422{ __fourcc(
'Y',
'U',
'1',
'6'), __mod(0, 0) };
68constexpr PixelFormat YVU422{ __fourcc(
'Y',
'V',
'1',
'6'), __mod(0, 0) };
69constexpr PixelFormat YUV444{ __fourcc(
'Y',
'U',
'2',
'4'), __mod(0, 0) };
70constexpr PixelFormat YVU444{ __fourcc(
'Y',
'V',
'2',
'4'), __mod(0, 0) };
71constexpr PixelFormat MJPEG{ __fourcc(
'M',
'J',
'P',
'G'), __mod(0, 0) };
72constexpr PixelFormat SRGGB8{ __fourcc(
'R',
'G',
'G',
'B'), __mod(0, 0) };
73constexpr PixelFormat SGRBG8{ __fourcc(
'G',
'R',
'B',
'G'), __mod(0, 0) };
74constexpr PixelFormat SGBRG8{ __fourcc(
'G',
'B',
'R',
'G'), __mod(0, 0) };
75constexpr PixelFormat SBGGR8{ __fourcc(
'B',
'A',
'8',
'1'), __mod(0, 0) };
76constexpr PixelFormat SRGGB10{ __fourcc(
'R',
'G',
'1',
'0'), __mod(0, 0) };
77constexpr PixelFormat SGRBG10{ __fourcc(
'B',
'A',
'1',
'0'), __mod(0, 0) };
78constexpr PixelFormat SGBRG10{ __fourcc(
'G',
'B',
'1',
'0'), __mod(0, 0) };
79constexpr PixelFormat SBGGR10{ __fourcc(
'B',
'G',
'1',
'0'), __mod(0, 0) };
80constexpr PixelFormat SRGGB12{ __fourcc(
'R',
'G',
'1',
'2'), __mod(0, 0) };
81constexpr PixelFormat SGRBG12{ __fourcc(
'B',
'A',
'1',
'2'), __mod(0, 0) };
82constexpr PixelFormat SGBRG12{ __fourcc(
'G',
'B',
'1',
'2'), __mod(0, 0) };
83constexpr PixelFormat SBGGR12{ __fourcc(
'B',
'G',
'1',
'2'), __mod(0, 0) };
84constexpr PixelFormat SRGGB14{ __fourcc(
'R',
'G',
'1',
'4'), __mod(0, 0) };
85constexpr PixelFormat SGRBG14{ __fourcc(
'B',
'A',
'1',
'4'), __mod(0, 0) };
86constexpr PixelFormat SGBRG14{ __fourcc(
'G',
'B',
'1',
'4'), __mod(0, 0) };
87constexpr PixelFormat SBGGR14{ __fourcc(
'B',
'G',
'1',
'4'), __mod(0, 0) };
88constexpr PixelFormat SRGGB16{ __fourcc(
'R',
'G',
'B',
'6'), __mod(0, 0) };
89constexpr PixelFormat SGRBG16{ __fourcc(
'G',
'R',
'1',
'6'), __mod(0, 0) };
90constexpr PixelFormat SGBRG16{ __fourcc(
'G',
'B',
'1',
'6'), __mod(0, 0) };
91constexpr PixelFormat SBGGR16{ __fourcc(
'B',
'Y',
'R',
'2'), __mod(0, 0) };
92constexpr PixelFormat R10_CSI2P{ __fourcc(
'R',
'1',
'0',
' '), __mod(11, 1) };
93constexpr PixelFormat SRGGB10_CSI2P{ __fourcc(
'R',
'G',
'1',
'0'), __mod(11, 1) };
94constexpr PixelFormat SGRBG10_CSI2P{ __fourcc(
'B',
'A',
'1',
'0'), __mod(11, 1) };
95constexpr PixelFormat SGBRG10_CSI2P{ __fourcc(
'G',
'B',
'1',
'0'), __mod(11, 1) };
96constexpr PixelFormat SBGGR10_CSI2P{ __fourcc(
'B',
'G',
'1',
'0'), __mod(11, 1) };
97constexpr PixelFormat SRGGB12_CSI2P{ __fourcc(
'R',
'G',
'1',
'2'), __mod(11, 1) };
98constexpr PixelFormat SGRBG12_CSI2P{ __fourcc(
'B',
'A',
'1',
'2'), __mod(11, 1) };
99constexpr PixelFormat SGBRG12_CSI2P{ __fourcc(
'G',
'B',
'1',
'2'), __mod(11, 1) };
100constexpr PixelFormat SBGGR12_CSI2P{ __fourcc(
'B',
'G',
'1',
'2'), __mod(11, 1) };
101constexpr PixelFormat SRGGB14_CSI2P{ __fourcc(
'R',
'G',
'1',
'4'), __mod(11, 1) };
102constexpr PixelFormat SGRBG14_CSI2P{ __fourcc(
'B',
'A',
'1',
'4'), __mod(11, 1) };
103constexpr PixelFormat SGBRG14_CSI2P{ __fourcc(
'G',
'B',
'1',
'4'), __mod(11, 1) };
104constexpr PixelFormat SBGGR14_CSI2P{ __fourcc(
'B',
'G',
'1',
'4'), __mod(11, 1) };
105constexpr PixelFormat SRGGB10_IPU3{ __fourcc(
'R',
'G',
'1',
'0'), __mod(1, 13) };
106constexpr PixelFormat SGRBG10_IPU3{ __fourcc(
'B',
'A',
'1',
'0'), __mod(1, 13) };
107constexpr PixelFormat SGBRG10_IPU3{ __fourcc(
'G',
'B',
'1',
'0'), __mod(1, 13) };
108constexpr PixelFormat SBGGR10_IPU3{ __fourcc(
'B',
'G',
'1',
'0'), __mod(1, 13) };
Top-level libcamera namespace.
Definition: backtrace.h:17