diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-06-01 14:43:43 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-06-01 14:43:43 +0100 |
commit | 01d900ad31ce070853b9134245c138f9098269fe (patch) | |
tree | 88ca1a4ce4ae35d8bed522db1e55649c36f6bd67 | |
parent | 8ce80010e2345300dc74f69ea7bd904685ec692c (diff) |
simple-cam: Add setting of a control
Remove the todo action and add setting of a simple control.
More control handling can still be added later.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | simple-cam.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/simple-cam.cpp b/simple-cam.cpp index 763341a..00ad52b 100644 --- a/simple-cam.cpp +++ b/simple-cam.cpp @@ -279,11 +279,10 @@ int main() requests.push_back(request); /* - * todo: Set controls - * - * ControlList &Request::controls(); - * controls.set(controls::Brightness, 255); + * Controls can be added to a request on a per frame basis. */ + ControlList &controls = request->controls(); + controls.set(controls::Brightness, 0.5); } /* |