[libcamera-devel] [PATCH v3 3/8] test: v4l2_videodevice: buffer_cache: Use DRM pixel format

Niklas Söderlund niklas.soderlund at ragnatech.se
Wed Mar 18 04:31:55 CET 2020


The pixel format used in the stream configuration is from V4L2 but
should be from DRM, fix it.

Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 test/v4l2_videodevice/buffer_cache.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/v4l2_videodevice/buffer_cache.cpp b/test/v4l2_videodevice/buffer_cache.cpp
index 0a8cb0d28ca9b204..e6edd2fad7aa3d33 100644
--- a/test/v4l2_videodevice/buffer_cache.cpp
+++ b/test/v4l2_videodevice/buffer_cache.cpp
@@ -142,7 +142,7 @@ public:
 		const unsigned int numBuffers = 8;
 
 		StreamConfiguration cfg;
-		cfg.pixelFormat = V4L2_PIX_FMT_YUYV;
+		cfg.pixelFormat = DRM_FORMAT_YUYV;
 		cfg.size = Size(600, 800);
 		cfg.bufferCount = numBuffers;
 
-- 
2.25.1



More information about the libcamera-devel mailing list