diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-02-15 22:44:03 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-06 18:10:20 +0200 |
commit | 5eaf4fed19909a954281a8b37bf5297b3cb2815f (patch) | |
tree | 0fe9ff85e3bf208cd741ec4cc08921a5f98d2510 /licenses/gnu-lgpl-2.1.txt | |
parent | cd04b9a96c7643f92f6b555b594739e0ddf0406a (diff) |
libcamera: controls: Return control by value
The ControlList::get() and ControlValue::get() methods return the
control value by reference. This requires the ControlValue class to
store the control value in the same form as the one returned by those
functions. For the array controls that are soon to be added, the
ControlValue class would need to store a span<> instance in addition to
the control value itself, which would increase the required storage
space.
Prepare for support of array controls by returning from get() by value.
As all control values are 8 bytes at most, this doesn't affect
efficiency negatively.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'licenses/gnu-lgpl-2.1.txt')
0 files changed, 0 insertions, 0 deletions