diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-17 02:50:45 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-18 18:02:40 +0100 |
commit | 63050a8b57f62233157efde3a061f582ae1521f5 (patch) | |
tree | d01784808110127e3cb5a0b70398ebb44ad44aec | |
parent | eb20c54f24a9f1e5daa2fec8d246963f57c8e781 (diff) |
test: v4l2_videodevice: buffer_cache: Use DRM pixel format
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@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | test/v4l2_videodevice/buffer_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/v4l2_videodevice/buffer_cache.cpp b/test/v4l2_videodevice/buffer_cache.cpp index 0a8cb0d2..e6edd2fa 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; |