libcamera: Switch to CameraConfiguration
Implement the camera configuration thru out the library, tests, cam and qcam tools. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -18,11 +18,11 @@ class ConfigurationSet : public CameraTest
|
||||
protected:
|
||||
int run()
|
||||
{
|
||||
std::map<Stream *, StreamConfiguration> conf =
|
||||
CameraConfiguration conf =
|
||||
camera_->streamConfiguration({ Stream::VideoRecording() });
|
||||
StreamConfiguration *sconf = &conf.begin()->second;
|
||||
StreamConfiguration *sconf = &conf[conf.front()];
|
||||
|
||||
if (!configurationValid(conf)) {
|
||||
if (!conf.isValid()) {
|
||||
cout << "Failed to read default configuration" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user