summaryrefslogtreecommitdiff
path: root/src/libcamera/formats.yaml
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-06-27 01:47:28 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-11-19 22:37:12 +0200
commit3b133592de9adc7654fa1dc95f69b5ee2b604a1f (patch)
treea27f13ca95091f037459256ce1f186ead2819201 /src/libcamera/formats.yaml
parent75cfd81d0b1fd8a525adea941f8ae025421c4ab8 (diff)
libcamera: Add support for MediaTek packed Bayer formats
The MediaTek MT8183 camera hardware stores 10- and 12-bit Bayer data in a vendor-specific packed format. Support it in libcamera. The 14-bit version is left out for the time being as its alignment constraints are not clear yet. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/formats.yaml')
-rw-r--r--src/libcamera/formats.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libcamera/formats.yaml b/src/libcamera/formats.yaml
index 1f3f0433..d2bff5e1 100644
--- a/src/libcamera/formats.yaml
+++ b/src/libcamera/formats.yaml
@@ -151,4 +151,30 @@ formats:
- SBGGR10_IPU3:
fourcc: DRM_FORMAT_SBGGR10
mod: IPU3_FORMAT_MOD_PACKED
+
+ - SRGGB10_MTK:
+ fourcc: DRM_FORMAT_SRGGB10
+ mod: MEDIATEK_FORMAT_MOD_BAYER_PACKED
+ - SGRBG10_MTK:
+ fourcc: DRM_FORMAT_SGRBG10
+ mod: MEDIATEK_FORMAT_MOD_BAYER_PACKED
+ - SGBRG10_MTK:
+ fourcc: DRM_FORMAT_SGBRG10
+ mod: MEDIATEK_FORMAT_MOD_BAYER_PACKED
+ - SBGGR10_MTK:
+ fourcc: DRM_FORMAT_SBGGR10
+ mod: MEDIATEK_FORMAT_MOD_BAYER_PACKED
+
+ - SRGGB12_MTK:
+ fourcc: DRM_FORMAT_SRGGB12
+ mod: MEDIATEK_FORMAT_MOD_BAYER_PACKED
+ - SGRBG12_MTK:
+ fourcc: DRM_FORMAT_SGRBG12
+ mod: MEDIATEK_FORMAT_MOD_BAYER_PACKED
+ - SGBRG12_MTK:
+ fourcc: DRM_FORMAT_SGBRG12
+ mod: MEDIATEK_FORMAT_MOD_BAYER_PACKED
+ - SBGGR12_MTK:
+ fourcc: DRM_FORMAT_SBGGR12
+ mod: MEDIATEK_FORMAT_MOD_BAYER_PACKED
...