libcamera: camera: Allow unspecified roles for generateConfiguration
Providing an empty set of roles is permitted to generate an empty configuration from the pipeline handlers. Overload the generateConfiguration() function such that not specifying a roles parameter will use an empty set, and return an empty configuration. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
e0c583871d
commit
d35cf6e4e4
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ public:
|
|||
const ControlList &properties();
|
||||
|
||||
const std::set<Stream *> &streams() const;
|
||||
std::unique_ptr<CameraConfiguration> generateConfiguration(const StreamRoles &roles);
|
||||
std::unique_ptr<CameraConfiguration> generateConfiguration(const StreamRoles &roles = {});
|
||||
int configure(CameraConfiguration *config);
|
||||
|
||||
Request *createRequest(uint64_t cookie = 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue