[WIP,RFC,03/26] libcamera: v4l2_pixelformat: Update to latest version of generic META formats
diff mbox series

Message ID 20261023-b4-raw-model-v1-3-eadb9948901b@ideasonboard.com
State New
Headers show
Series
  • Support the new common raw sensor model
Related show

Commit Message

Jai Luthra Oct. 23, 2026, 10:58 a.m. UTC
The 16 and 24-bit generic metadata format macros no longer mention
_CSI2_ in the unmerged series that introduce them, as there is no
packing needed for sizes divisble by 8 bits.

Update their usage in libcamera to match.

Fixes: 99b54c2c55a8 ("libcamera: v4l2_videodevice: Update to the new kernel metadata API")
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
---
 src/libcamera/v4l2_pixelformat.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp
index e8b3eb9c1394..c3e01a10e72a 100644
--- a/src/libcamera/v4l2_pixelformat.cpp
+++ b/src/libcamera/v4l2_pixelformat.cpp
@@ -397,9 +397,9 @@  bool V4L2PixelFormat::isGenericLineBasedMetadata() const
 	case V4L2_META_FMT_GENERIC_CSI2_10:
 	case V4L2_META_FMT_GENERIC_CSI2_12:
 	case V4L2_META_FMT_GENERIC_CSI2_14:
-	case V4L2_META_FMT_GENERIC_CSI2_16:
+	case V4L2_META_FMT_GENERIC_16:
 	case V4L2_META_FMT_GENERIC_CSI2_20:
-	case V4L2_META_FMT_GENERIC_CSI2_24:
+	case V4L2_META_FMT_GENERIC_24:
 		return true;
 	default:
 		return false;