[libcamera-devel] [PATCH 0/1] Fake Pipeline Handler

Kieran Bingham kieran.bingham at ideasonboard.com
Wed Oct 12 11:10:36 CEST 2022


Quoting Harvey Yang via libcamera-devel (2022-10-12 08:59:24)
> This is a POC PATCH of the fake pipeline handler, which should be used
> for tests and validating Android adaptor can pass CTS limited mode.
> 

Aha, this is interesting. I've wondered if we should have a virtual/fake
camera too, perhaps with our own internal pattern generator.

There's lots that could be mocked up, perhaps even as far down as a Fake
CameraSensor, and an IPA to support testing of controls too (or perhaps
without an IPA as it could all be internal to the pipeline handler, with
no particular imagery).

There's a lot of commented code in there from the IPU3, so I suspect
that was the source.

There's https://git.libcamera.org/libcamera/vivid.git/log/ which might
be a 'smaller' pipeline handler to consider as a fake pipeline handler
starting point, or even UVC might be simpler comparable starting point.

--
Kieran



> Signed-off-by: Harvey Yang <chenghaoyang at chromium.org>
> 
> Harvey Yang (1):
>   Add fake pipeline handler
> 
>  meson_options.txt                       |   2 +-
>  src/android/camera_capabilities.cpp     |   1 +
>  src/libcamera/pipeline/fake/fake.cpp    | 518 ++++++++++++++++++++++++
>  src/libcamera/pipeline/fake/meson.build |   3 +
>  src/libcamera/pipeline_handler.cpp      |   2 +-
>  test/camera/camera_reconfigure.cpp      |   2 +-
>  6 files changed, 525 insertions(+), 3 deletions(-)
>  create mode 100644 src/libcamera/pipeline/fake/fake.cpp
>  create mode 100644 src/libcamera/pipeline/fake/meson.build
> 
> -- 
> 2.38.0.rc1.362.ged0d419d3c-goog
>


More information about the libcamera-devel mailing list