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:
Niklas Söderlund
2019-04-09 16:59:19 +02:00
parent 9a7dc3ce7f
commit b0c730e330
16 changed files with 54 additions and 81 deletions
+4 -4
View File
@@ -42,12 +42,12 @@ protected:
int run()
{
std::map<Stream *, StreamConfiguration> conf =
CameraConfiguration conf =
camera_->streamConfiguration({ Stream::VideoRecording() });
Stream *stream = conf.begin()->first;
StreamConfiguration *sconf = &conf.begin()->second;
Stream *stream = conf.front();
StreamConfiguration *sconf = &conf[stream];
if (!configurationValid(conf)) {
if (!conf.isValid()) {
cout << "Failed to read default configuration" << endl;
return TestFail;
}