[libcamera-devel] [PATCH 0/5] libcamera: camera_sensor: Collect camera location and sizes

Jacopo Mondi jacopo at jmondi.org
Mon Aug 19 09:33:23 CEST 2019


Hi Laurent,

On Sat, Aug 17, 2019 at 07:22:03PM +0300, Laurent Pinchart wrote:
> Hi Jacopo,
>
> Thank you for the patches.
>
> On Sat, Aug 17, 2019 at 12:59:32PM +0200, Jacopo Mondi wrote:
> > Hello, this small series add to the CameraSensor class informations on the
> > camera sensor location, the pixel array size and the active area sizes.
> >
> > The information are required to populate the Android static metadata:
> > android.sensor.info.activeArraySize
> > android.sensor.info.pixelArraySize
> >
> > and the 'struct camera_info.facing' flag.
> >
> > Now that information are collected in the CameraSensor class, a way to expose
> > them through the Camera class is required. In example, adding the CameraSensor
> > that a Camera uses to the Camera class and collects all its Property in a single
> > properties vector might be the simplest way forward.
> >
> > The series depends on the following kernel patch series:
> > https://patchwork.kernel.org/project/linux-media/list/?series=161169
> > https://patchwork.kernel.org/project/linux-media/list/?series=160901
> >
> > Tested on IPU3 Soraka.
> >
> > Jacopo Mondi (5):
> >   [TEMP] include: linux: Update v4l2-controls.h
> >   libcamera: controls: Add camera location control
> >   libcamera: camera_sensor: Store the camera location
> >   libcamera: v4l2_subdevice: Add G_SELECTION ioctl support
> >   libcamera: camera_sensor: Retrieve sensor sizes
>
> It would be nice to add a test for the new camera_sensor public methods.
> This would require adding the location control to the vimc driver, but
> that shouldn't be a big deal.
>

Where is the VIMC camera locatated ? :D

> >
> >  include/libcamera/control_ids.h        |  7 ++++
> >  include/linux/v4l2-controls.h          |  5 +++
> >  src/libcamera/camera_sensor.cpp        | 39 +++++++++++++++++++++
> >  src/libcamera/include/camera_sensor.h  |  5 +++
> >  src/libcamera/include/v4l2_subdevice.h |  4 +++
> >  src/libcamera/v4l2_subdevice.cpp       | 48 ++++++++++++++++++++++++++
> >  6 files changed, 108 insertions(+)
> >
>
> --
> Regards,
>
> Laurent Pinchart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20190819/ff668a96/attachment.sig>


More information about the libcamera-devel mailing list