diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-02-04 17:55:31 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-25 14:38:47 +0300 |
commit | 049b61ca10830610ebdcaa2d13a05e27327ec843 (patch) | |
tree | 7652d13d298ad854efa47a6024ee8e74f2127c83 /test/mapped-buffer.cpp | |
parent | 679f9ad96432fbab14d390f90f2f9f43b477bf9d (diff) |
libcamera: camera_sensor: Create abstract base class
With a camera sensor factory in place, the next step is to create an
abstract base class that all camera sensors implement, providing a
uniform API to pipeline handler. Turn all public functions of the
CameraSensor class into pure virtual functions, and move the
implementation to the CameraSensorLegacy class.
Part of the code is likely worth keeping as common helpers in a base
class. However, to follow the principle of not designing helpers with a
single user, this commit moves the whole implementation. Common helpers
will be introduced later, along with other CameraSensor subclasses.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Diffstat (limited to 'test/mapped-buffer.cpp')
0 files changed, 0 insertions, 0 deletions