libcamera: controls: Use explicit 32-bit integer types
Make the control API more explicit when dealing with integer controls by specifying the size. We already do so for 64-bit integers, using int64_t and ControlTypeInteger64, do the same for 32-bit integers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
224ef9776a
commit
dd37ef784e
7 changed files with 46 additions and 44 deletions
|
@ -288,15 +288,15 @@ int PipelineHandlerVimc::processControls(VimcCameraData *data, Request *request)
|
|||
|
||||
switch (ci->id()) {
|
||||
case Brightness:
|
||||
controls.add(V4L2_CID_BRIGHTNESS, value.get<int>());
|
||||
controls.add(V4L2_CID_BRIGHTNESS, value.get<int32_t>());
|
||||
break;
|
||||
|
||||
case Contrast:
|
||||
controls.add(V4L2_CID_CONTRAST, value.get<int>());
|
||||
controls.add(V4L2_CID_CONTRAST, value.get<int32_t>());
|
||||
break;
|
||||
|
||||
case Saturation:
|
||||
controls.add(V4L2_CID_SATURATION, value.get<int>());
|
||||
controls.add(V4L2_CID_SATURATION, value.get<int32_t>());
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue