mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 00:25:07 +03:00
android: Replace ThreadRPC with blocking method call
Use the newly introduced InvocationTypeBlocking message type to replace the blocking message delivery implemented with the ThreadRPC class in the Android camera HAL. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
1f1d27cc14
commit
53eab99680
7 changed files with 11 additions and 118 deletions
|
@ -20,7 +20,6 @@
|
|||
#include "message.h"
|
||||
|
||||
class CameraMetadata;
|
||||
class ThreadRpc;
|
||||
|
||||
class CameraDevice : public libcamera::Object
|
||||
{
|
||||
|
@ -28,15 +27,13 @@ public:
|
|||
CameraDevice(unsigned int id, const std::shared_ptr<libcamera::Camera> &camera);
|
||||
~CameraDevice();
|
||||
|
||||
void call(ThreadRpc *rpc);
|
||||
|
||||
int open();
|
||||
void close();
|
||||
void setCallbacks(const camera3_callback_ops_t *callbacks);
|
||||
camera_metadata_t *getStaticMetadata();
|
||||
const camera_metadata_t *constructDefaultRequestSettings(int type);
|
||||
int configureStreams(camera3_stream_configuration_t *stream_list);
|
||||
int processCaptureRequest(camera3_capture_request_t *request);
|
||||
void processCaptureRequest(camera3_capture_request_t *request);
|
||||
void requestComplete(libcamera::Request *request,
|
||||
const std::map<libcamera::Stream *, libcamera::Buffer *> &buffers);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue