diff options
author | David Plowman <david.plowman@raspberrypi.com> | 2021-12-10 14:44:19 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-12-13 11:29:01 +0200 |
commit | e86aed6166449189eaf1b7e9d734236797e3d0c3 (patch) | |
tree | 3fc1ae1b9aa912a70364bd4e58425caf90a38edd /src/qcam/format_converter.h | |
parent | 96f990ea6c8c0e3dbcb6b1c6f379fcc341529ea8 (diff) |
libcamera: video_device: Convert between ColorSpace class and V4L2 formats
Add functions to the V4L2Device class to convert to and from
libcamera ColorSpace.
These functions are added to the base V4L2Device class so that they can
be shared both by the video device class and subdevices.
With the ColorSpace class, the color space and related other fields
are stored together, corresponding to a number of fields in the
various different V4L2 format structures. Template functions are
therefore a convenient implementation, and we must explicitly
instantiate the templates that will be needed.
Note that unset color spaces are converted to requests for the
device's "default" color space.
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/format_converter.h')
0 files changed, 0 insertions, 0 deletions