mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 00:45:07 +03:00
v4l2: Use Object::invokeMethod() return value
Now that Object::invokeMethod() supports returning a value, use it and drop the return value method argument. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
94f62f6b59
commit
b4415f1c98
3 changed files with 82 additions and 96 deletions
|
@ -48,23 +48,23 @@ public:
|
|||
V4L2Camera(std::shared_ptr<Camera> camera);
|
||||
~V4L2Camera();
|
||||
|
||||
void open(int *ret);
|
||||
int open();
|
||||
void close();
|
||||
void getStreamConfig(StreamConfiguration *streamConfig);
|
||||
std::vector<FrameMetadata> completedBuffers();
|
||||
|
||||
void mmap(void **ret, unsigned int index);
|
||||
void *mmap(unsigned int index);
|
||||
|
||||
void configure(int *ret, StreamConfiguration *streamConfigOut,
|
||||
const Size &size, PixelFormat pixelformat,
|
||||
unsigned int bufferCount);
|
||||
int configure(StreamConfiguration *streamConfigOut,
|
||||
const Size &size, PixelFormat pixelformat,
|
||||
unsigned int bufferCount);
|
||||
|
||||
void allocBuffers(int *ret, unsigned int count);
|
||||
int allocBuffers(unsigned int count);
|
||||
void freeBuffers();
|
||||
void streamOn(int *ret);
|
||||
void streamOff(int *ret);
|
||||
int streamOn();
|
||||
int streamOff();
|
||||
|
||||
void qbuf(int *ret, unsigned int index);
|
||||
int qbuf(unsigned int index);
|
||||
|
||||
Semaphore bufferSema_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue