Files
external_libcamera/src/cam/meson.build
T
Laurent Pinchart 8926fe6d74 cam: Add Image class
The new Image class represents a multi-planar image with direct access
to pixel data. It currently duplicates the function of the
MappedFrameBuffer class which is internal to libcamera, and will serve
as a design playground to improve the API until it is considered ready
to be made part of the libcamera public API.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2021-09-07 19:18:40 +03:00

44 lines
890 B
Meson

# SPDX-License-Identifier: CC0-1.0
libevent = dependency('libevent_pthreads', required : get_option('cam'))
if not libevent.found()
cam_enabled = false
subdir_done()
endif
cam_enabled = true
cam_sources = files([
'camera_session.cpp',
'event_loop.cpp',
'file_sink.cpp',
'frame_sink.cpp',
'image.cpp',
'main.cpp',
'options.cpp',
'stream_options.cpp',
])
cam_cpp_args = []
libdrm = dependency('libdrm', required : false)
if libdrm.found()
cam_cpp_args += [ '-DHAVE_KMS' ]
cam_sources += files([
'drm.cpp',
'kms_sink.cpp'
])
endif
cam = executable('cam', cam_sources,
dependencies : [
libatomic,
libcamera_public,
libdrm,
libevent,
],
cpp_args : cam_cpp_args,
install : true)