summaryrefslogtreecommitdiff
path: root/simple-cam.cpp
AgeCommit message (Collapse)Author
2020-09-24simple-cam: Use a const streamKieran Bingham
The API was updated to ensure the Stream pointer referenced from the BufferMap is const. Update accordingly. Reported-by: Erkan Diken <erkandiken@gmail.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-09-24simple-cam: Use the new BufferMap interfaceKieran Bingham
The Request object has been updated to specify a BufferMap type. Utilise it. Reported-by: Erkan Diken <erkandiken@gmail.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2020-08-14simple-cam: Update to new camera ID APIKieran Bingham
The cameras can no longer be obtained by their 'name', but have an ID instead. Update the code to reflect this and improve the documentation there. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2020-06-01simple-cam: Add setting of a controlKieran Bingham
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>
2020-05-19simple-cam: Delete allocatorKieran Bingham
It is important to delete the created allocator, otherwise it holds on to references of the media-device, and complains at shutdown. Clean up neatly by deleting the object before after the stream resources are free. That could potentially all be done by the destructor anyway. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2020-05-19simple-cam: Fix code for new APIsKieran Bingham
The elce-cam application was based on an old version of libcamera and the APIs have changed in the short time since then. Fix the bitrot and get back to a point where the code compiles and runs. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2020-05-19simple-cam: Fix trivial pluralisationKieran Bingham
'a list of cameras' Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2020-05-19simple-cam: Rename example applicationKieran Bingham
The example app started out as a demo at elce, thus was named: elce-cam. Rename it to 'simple-cam' for longevity. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>