diff options
author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-08-07 10:13:16 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-08-07 10:13:16 +0200 |
commit | 2f3565efb5377768e3c2e1ef85eec99668f485de (patch) | |
tree | 3813d2d3ed6d4a59e912894dccee8e9a179c5c84 /test/libtest/buffer_source.cpp | |
parent | 07a1ac5f01caf27aa309e4e743961123d3609291 (diff) |
libcamera: Define and use MediaDeviceMatch
The xistingdevice search and match criteria implemented by libcamera
only supports 'media device' based cameras, which are supported in the
Linux kernel by the usage of the V4L2/MC API.
Define a MediaDeviceMatch class derived from DeviceMatch and use it
wherever DeviceMatch was used in order to later introduce new derived
classes to support searching and matching devices of a different type.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'test/libtest/buffer_source.cpp')
-rw-r--r-- | test/libtest/buffer_source.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libtest/buffer_source.cpp b/test/libtest/buffer_source.cpp index dde11f36..8cb6f635 100644 --- a/test/libtest/buffer_source.cpp +++ b/test/libtest/buffer_source.cpp @@ -43,7 +43,7 @@ int BufferSource::allocate(const StreamConfiguration &config) return TestFail; } - DeviceMatch dm("vivid"); + MediaDeviceMatch dm("vivid"); dm.add(videoDeviceName); media_ = enumerator->search(dm); |