Age | Commit message (Collapse) | Author |
|
Take the example code for generating a camera name from 'cam' and use
it when reporting cameras within the simple-cam application.
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
|
|
libcamera moved its EventDispatcher and Timer API to its internal API,
since providing an event loop to applications should not be the job of
libcamera. Application utility like cam, were ported to use libevent,
hence inspired from that, un-break simple-cam by using the similar
implementation to replace the EventDispatcher and Timer functionality
by libevent.
Signed-off-by: Umang Jain <email@uajain.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
|
|
Failing to do so, the codepath will segfault while trying to acquire
a non-existent camera.
Signed-off-by: Umang Jain <email@uajain.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
|
|
Use EXIT_FAILURE or EXIT_SUCCESS to indicate program execution
status. These are the return codes that should be used for main()
as per the C++ standard.
Signed-off-by: Umang Jain <email@uajain.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
|
|
Signed-off-by: Umang Jain <email@uajain.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
|
|
Update simple-cam to reuse Request objects, and use the new API with
unique pointers.
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran@bingham.xyz>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
'a list of cameras'
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
|
|
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>
|