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:
@@ -14,16 +14,13 @@
|
||||
|
||||
#include <libcamera/request.h>
|
||||
#include <libcamera/signal.h>
|
||||
#include <libcamera/stream.h>
|
||||
|
||||
namespace libcamera {
|
||||
|
||||
class Buffer;
|
||||
class PipelineHandler;
|
||||
class Request;
|
||||
class Stream;
|
||||
class StreamUsage;
|
||||
|
||||
struct StreamConfiguration;
|
||||
|
||||
class CameraConfiguration
|
||||
{
|
||||
@@ -74,8 +71,7 @@ public:
|
||||
int release();
|
||||
|
||||
const std::set<Stream *> &streams() const;
|
||||
CameraConfiguration
|
||||
generateConfiguration(const std::vector<StreamUsage> &usage);
|
||||
CameraConfiguration generateConfiguration(const StreamRoles &roles);
|
||||
int configure(const CameraConfiguration &config);
|
||||
|
||||
int allocateBuffers();
|
||||
|
||||
Reference in New Issue
Block a user