libcamera: pipeline: Add test pattern for VirtualPipelineHandler
Add a test pattern generator class hierarchy for the Virtual pipeline handler. Implement two types of test patterns: color bars and diagonal lines generator and use them in the Virtual pipeline handler. A shifting mechanism is enabled. For each frame, the image is shifted to the left by 1 pixel. It drops FPS though. Add a dependency for libyuv to the build system to generate images in NV12 format from the test pattern. Signed-off-by: Konami Shu <konamiz@google.com> Co-developed-by: Harvey Yang <chenghaoyang@chromium.org> Signed-off-by: Harvey Yang <chenghaoyang@chromium.org> Co-developed-by: Yunke Cao <yunkec@chromium.org> Signed-off-by: Yunke Cao <yunkec@chromium.org> Co-developed-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
3a884ebfe4
commit
eeaa7de21b
@@ -15,25 +15,6 @@ foreach dep : android_deps
|
||||
endif
|
||||
endforeach
|
||||
|
||||
libyuv_dep = dependency('libyuv', required : false)
|
||||
|
||||
# Fallback to a subproject if libyuv isn't found, as it's typically not
|
||||
# provided by distributions.
|
||||
if not libyuv_dep.found()
|
||||
cmake = import('cmake')
|
||||
|
||||
libyuv_vars = cmake.subproject_options()
|
||||
libyuv_vars.add_cmake_defines({'CMAKE_POSITION_INDEPENDENT_CODE': 'ON'})
|
||||
libyuv_vars.set_override_option('cpp_std', 'c++17')
|
||||
libyuv_vars.append_compile_args('cpp',
|
||||
'-Wno-sign-compare',
|
||||
'-Wno-unused-variable',
|
||||
'-Wno-unused-parameter')
|
||||
libyuv_vars.append_link_args('-ljpeg')
|
||||
libyuv = cmake.subproject('libyuv', options : libyuv_vars)
|
||||
libyuv_dep = libyuv.dependency('yuv')
|
||||
endif
|
||||
|
||||
android_deps += [libyuv_dep]
|
||||
|
||||
android_hal_sources = files([
|
||||
|
||||
Reference in New Issue
Block a user