diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-04-05 02:52:59 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-04-09 16:59:19 +0200 |
commit | b0c730e330281f38ac51cb64d9581ed278759048 (patch) | |
tree | dd7398671330775d1ca302fe7871222a435eba6a /test/camera/configuration_set.cpp | |
parent | 9a7dc3ce7f4253578a0f7c0d58417425c8155cb3 (diff) |
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>
Diffstat (limited to 'test/camera/configuration_set.cpp')
-rw-r--r-- | test/camera/configuration_set.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/camera/configuration_set.cpp b/test/camera/configuration_set.cpp index 1bc01e66..5ac2a7a9 100644 --- a/test/camera/configuration_set.cpp +++ b/test/camera/configuration_set.cpp @@ -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; } |