android: Introduce Chromium OS buffer manager

Introduce the CameraBuffer backend for the Chromium OS operating system
and the associated meson option.

The Chromium OS CameraBuffer implementation uses the
cros::CameraBufferManager class to perform mapping of 1 plane and multiplane
buffers and to retrieve size information.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi 2021-02-17 16:23:34 +01:00
parent 1427d124e8
commit d8d6a78f22
3 changed files with 132 additions and 1 deletions

View file

@ -3,4 +3,7 @@
platform = get_option('android_platform')
if platform == 'generic'
android_hal_sources += files(['generic_camera_buffer.cpp'])
elif platform == 'cros'
android_hal_sources += files(['cros_camera_buffer.cpp'])
android_deps += [dependency('libcros_camera')]
endif