c58662c577
The existing FrameBufferAllocator is not allowed to allocate a new buffer while Camera is running. This introduces PlatformFrameBufferAllocator. It allocates FrameBuffer using cros::CameraBufferManager on ChromeOS and gralloc on non ChromeOS platform. The allocated FrameBuffer owns the underlying buffer but must be destroyed before PlatformFrameBufferAllocator is destroyed. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
12 lines
450 B
Meson
12 lines
450 B
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
platform = get_option('android_platform')
|
|
if platform == 'generic'
|
|
android_hal_sources += files(['generic_camera_buffer.cpp',
|
|
'generic_frame_buffer_allocator.cpp'])
|
|
elif platform == 'cros'
|
|
android_hal_sources += files(['cros_camera_buffer.cpp',
|
|
'cros_frame_buffer_allocator.cpp'])
|
|
android_deps += [dependency('libcros_camera')]
|
|
endif
|