diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2022-07-23 11:39:10 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2022-07-23 11:41:20 +0200 |
commit | 77f8d558a8b0eb6e6b90b83b81c212d5ec52de28 (patch) | |
tree | f384de9b94db1d840dff138e26bb6b390032ac1b | |
parent | beec73a0fa5fc8d8ba0dcad5fdb32422084c5451 (diff) |
libcamera: v4l2_pixelformat: Map formats::MJPEG to V4L2_PIX_FMT_JPEGjmondi/pinephone
Map the application visibile formats::MJPEG format to the V4L2_PIX_FMT_JPEG
format.
Both V4L2_PIX_FMT_JPEG and V4L2_PIX_FMT_MJPEG to the same libcamera
MJPEG format.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r-- | src/libcamera/v4l2_pixelformat.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp index 7ab63f09..8d3bc5d5 100644 --- a/src/libcamera/v4l2_pixelformat.cpp +++ b/src/libcamera/v4l2_pixelformat.cpp @@ -183,6 +183,8 @@ const std::map<V4L2PixelFormat, V4L2PixelFormat::Info> vpf2pf{ /* Compressed formats. */ { V4L2PixelFormat(V4L2_PIX_FMT_MJPEG), { formats::MJPEG, "Motion-JPEG" } }, + { V4L2PixelFormat(V4L2_PIX_FMT_JPEG), + { formats::MJPEG, "JPEG JFIF" } }, }; } /* namespace */ |