summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-22 04:02:06 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-06-18 13:26:52 +0300
commit98b05ba37850431be8ebbfd4febcef477633a7b5 (patch)
tree759d9018ab866a44e4eb6c9089bf0def883d009e /test
parent9889bf1cfe36e5cd89ffd8dafb929e17c19b274c (diff)
test: Replace explicit DRM FourCCs with libcamera formats
Use the new pixel format constants to replace usage of macros from drm_fourcc.h. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test')
-rw-r--r--test/v4l2_videodevice/buffer_cache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/v4l2_videodevice/buffer_cache.cpp b/test/v4l2_videodevice/buffer_cache.cpp
index d730e755..b22de88e 100644
--- a/test/v4l2_videodevice/buffer_cache.cpp
+++ b/test/v4l2_videodevice/buffer_cache.cpp
@@ -9,6 +9,7 @@
#include <random>
#include <vector>
+#include <libcamera/formats.h>
#include <libcamera/stream.h>
#include "buffer_source.h"
@@ -142,7 +143,7 @@ public:
const unsigned int numBuffers = 8;
StreamConfiguration cfg;
- cfg.pixelFormat = PixelFormat(DRM_FORMAT_YUYV);
+ cfg.pixelFormat = formats::YUYV;
cfg.size = Size(600, 800);
cfg.bufferCount = numBuffers;