summaryrefslogtreecommitdiff
path: root/lib/meson.build
diff options
context:
space:
mode:
authorDaniel Scally <dan.scally@ideasonboard.com>2023-01-10 08:49:30 +0000
committerDaniel Scally <dan.scally@ideasonboard.com>2023-01-16 15:22:38 +0000
commit29be8034518c0babbf6334d3ef6fc9ffe30e6b70 (patch)
treed1e58680f71b270e3b94dad162e5c45c645f6967 /lib/meson.build
parent3a4e214882b362dc6dccd28d0862a258af75cf33 (diff)
lib/mjpeg_encoder: Add an MJPEG encoder for YUV420 data
MJPEG is an extremely useful format given its compression allows high framerates even over limited bandwith USB connections. Add an MJPEG encoder class that converts YUV420 data into MJPEG data. Where a libcamera-source does not support MJPEG natively, convert YUV420 into MJPEG if the user tries to set MJPEG format. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Diffstat (limited to 'lib/meson.build')
-rw-r--r--lib/meson.build8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/meson.build b/lib/meson.build
index 0931eef..f2626fa 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -19,12 +19,16 @@ if libcamera.found()
libuvcgadget_sources += files(['libcamera-source.cpp'])
endif
+if libjpeg.found() and threads.found()
+ libuvcgadget_sources += files(['mjpeg_encoder.cpp'])
+endif
+
libuvcgadget = shared_library('uvcgadget',
libuvcgadget_sources,
- dependencies : libcamera,
+ dependencies : [libcamera, libjpeg, threads],
version : uvc_gadget_version,
install : true,
- include_directories : includes)
+ include_directories : [includes, config_includes])
libuvcgadget_dep = declare_dependency(sources : [
uvcgadget_public_headers,