libcamera: control_ids: Add comment to specify control direction

Document that controls are bi-directional by default. If a control
is only returned in metadata, this must be specified in the control's
description.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Naushir Patuck
2020-04-24 11:46:56 +01:00
committed by Laurent Pinchart
parent 1957aa641d
commit 47d09a13b3
2 changed files with 5 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ ${controls_def}
/**
* \brief List of all supported libcamera controls
*
* Unless otherwise stated, all controls are bi-directional, i.e. they can be
* set through Request::controls() and returned out through Request::metadata().
*/
extern const ControlIdMap controls {
${controls_map}

View File

@@ -4,6 +4,8 @@
#
%YAML 1.2
---
# Unless otherwise stated, all controls are bi-directional, i.e. they can be
# set through Request::controls() and returned out through Request::metadata().
controls:
- AeEnable:
type: bool