35 PipelineHandler *
pipe() {
return pipe_.get(); }
36 const PipelineHandler *
pipe()
const {
return pipe_.get(); }
55 bool isAcquired()
const;
56 bool isRunning()
const;
57 int isAccessAllowed(State state,
bool allowDisconnected =
false,
58 const char *from = __builtin_FUNCTION())
const;
59 int isAccessAllowed(State low, State high,
60 bool allowDisconnected =
false,
61 const char *from = __builtin_FUNCTION())
const;
64 void setState(State state);
66 std::shared_ptr<PipelineHandler> pipe_;
68 std::set<Stream *> streams_;
69 std::set<const Stream *> activeStreams_;
72 std::atomic<State> state_;
74 std::unique_ptr<CameraControlValidator> validator_;
Utilities to help constructing class interfaces.
#define LIBCAMERA_DECLARE_PUBLIC(klass)
Declare public data for a private class.
Definition class.h:57
A control validator for Camera instances.
Definition camera_controls.h:17
Base class for camera private data.
Definition camera.h:28
uint32_t requestSequence_
The queuing sequence number of the request.
Definition camera.h:42
std::list< Request * > queuedRequests_
The list of queued and not yet completed requests.
Definition camera.h:38
const PipelineHandler * pipe() const
Retrieve the pipeline handler related to this camera.
Definition camera.h:36
ControlList properties_
The list of properties supported by the camera.
Definition camera.h:40
Private(PipelineHandler *pipe)
Construct a Camera::Private instance.
Definition camera.cpp:590
PipelineHandler * pipe()
Retrieve the pipeline handler related to this camera.
Definition camera.h:35
ControlInfoMap controlInfo_
The set of controls supported by the camera.
Definition camera.h:39
const CameraControlValidator * validator() const
Retrieve the control validator related to this camera.
Definition camera.h:44
A map of ControlId to ControlInfo.
Definition controls.h:367
Associate a list of ControlId with their values for an object.
Definition controls.h:411
Base class for private data managed through a d-pointer.
Definition class.h:65
Private()
Construct an instance of an Extensible class private data.
Definition class.cpp:194
Create and manage cameras based on a set of media devices.
Definition pipeline_handler.h:35
Video stream for a camera.
Definition stream.h:76
Top-level libcamera namespace.
Definition backtrace.h:17