summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2021-06-28 13:23:22 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-06-28 19:33:42 +0300
commitbdf04cca086eb72a9e0528ba90a5c53d96e52a01 (patch)
treedbe4f65e6e61fe36cfdf445907983718c070aa05 /include
parent8738d539f4a350d51bc1f6b780cc1fdfd62cf4ec (diff)
libcamera: Add support for monochrome sensors
This commit adds support for monochrome (greyscale) raw sensors. These are sensors that have no colour filter array, so all pixels are the same and there are no distinct colour channels. These sensors still require many of an ISP's processing stages, such as denoise, tone mapping, but not those that involve colours (such as demosaic, or colour matrices). Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/bayer_format.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libcamera/internal/bayer_format.h b/include/libcamera/internal/bayer_format.h
index 5b8c1dc9..723382d4 100644
--- a/include/libcamera/internal/bayer_format.h
+++ b/include/libcamera/internal/bayer_format.h
@@ -23,7 +23,8 @@ public:
BGGR = 0,
GBRG = 1,
GRBG = 2,
- RGGB = 3
+ RGGB = 3,
+ MONO = 4
};
enum Packing : uint16_t {