libcamera: Use stream roles directly instead of StreamUsage
In order to prepare for an API overhall of the camera configuration generation, remove the StreamUsage class and replace its uses by stream roles. The size hints can't be specified anymore, and will be replaced with an API on the StreamConfiguration to negotiate configuration parameters with cameras. Signed-off-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
2ca2d65870
commit
a40023e6cc
16 changed files with 69 additions and 173 deletions
|
@ -235,7 +235,7 @@ protected:
|
|||
|
||||
int run()
|
||||
{
|
||||
defconf_ = camera_->generateConfiguration({ Stream::VideoRecording() });
|
||||
defconf_ = camera_->generateConfiguration({ StreamRole::VideoRecording });
|
||||
|
||||
if (testAvailable() != TestPass) {
|
||||
cout << "State machine in Available state failed" << endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue