[libcamera-devel] [PATCH 0/5] libcamera: camera_sensor: Collect camera location and sizes
Jacopo Mondi
jacopo at jmondi.org
Sat Aug 17 12:59:32 CEST 2019
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
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(+)
--
2.22.0
More information about the libcamera-devel
mailing list