diff options
author | Mickael Guene <mickael.guene@st.com> | 2019-06-11 13:37:11 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-06-11 17:04:09 +0300 |
commit | 846d4c7d3ee7ca059074b2c2d3aeaa941c3f0870 (patch) | |
tree | b825e3da97ed30b2599abedeff1d189944c83654 /test/v4l2_subdevice/v4l2_subdevice_test.cpp | |
parent | cefe067c5bdb4098fae3858289d629b74a3d9236 (diff) |
libcamera: Fix CameraSensor::getFormat() search order
According to the documentation, the CameraSensor::getFormat() method
should select the first media bus code from the mbusCodes parameter that
is supported by the sensor. However, the current implementation wrongly
selects the first media bus code from the codes supported by the sensor
that is listed in the mbusCodes parameter. This results in the
preference order specified by the caller being ignored. Fix it.
Signed-off-by: Mickael Guene <mickael.guene@st.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 'test/v4l2_subdevice/v4l2_subdevice_test.cpp')
0 files changed, 0 insertions, 0 deletions