12#include <linux/videodev2.h>
24 bool isValid()
const {
return fd_.isValid(); }
25 int fd()
const {
return fd_.get(); }
#define LIBCAMERA_DISABLE_COPY_AND_MOVE(klass)
Disable copy and move construction and assignment of the klass.
Definition class.h:29
Notify of activity on a file descriptor.
Definition event_notifier.h:20
Base class to support log message extensions.
Definition log.h:92
virtual std::string logPrefix() const =0
Retrieve a string to be prefixed to the log message.
Generic signal and slot communication mechanism.
Definition signal.h:39
unique_ptr-like wrapper for a file descriptor
Definition unique_fd.h:17
int fd() const
Get the file descriptor.
Definition v4l2_request.h:25
Signal< V4L2Request * > requestDone
Signal that is emitted when the request is done.
Definition v4l2_request.h:32
int queue()
Queue the request.
Definition v4l2_request.cpp:102
V4L2Request(UniqueFD &&fd)
Construct a V4L2Request.
Definition v4l2_request.cpp:47
int reinit()
Reinit the request.
Definition v4l2_request.cpp:85
bool isValid() const
Check if the request is valid.
Definition v4l2_request.h:24
File descriptor event notifier.
Top-level libcamera namespace.
Definition backtrace.h:17
Signal & slot implementation.
File descriptor wrapper that owns a file descriptor.