diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-02-06 11:22:30 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-03 17:49:51 +0300 |
commit | b3987620aa9cb1c357fad711fb8bd004b7c76197 (patch) | |
tree | 74b355964526c23a0b6127afaae42bcffe199bc0 /src/android/camera_ops.h | |
parent | f5698ed541a424befa7258ecb459ec44e406fdb5 (diff) |
libcamera: camera_sensor: Relax restriction on sizes
The CameraSensor class assumes that camera sensors support the exact
same list of sizes of all media bus codes. While allowing a simpler API,
this assumption is incorrect and is blocking usage of some camera
sensors.
Relaxing the constraint is possible without changes to the CameraSensor
API syntax, but requires changing its semantics. The sizes() function
now returns the list of all sizes for all media bus codes, and the
getFormat() function now searches in all supported media bus codes. The
former is likely not the most useful option for pipeline handlers, but
the sizes() function is currently unused. Designing a better API will
require inspecting current and expected future use cases in pipeline
handlers to determine proper heuristics.
While at it, fix a small typo in an unrelated comment.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/android/camera_ops.h')
0 files changed, 0 insertions, 0 deletions