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:
parent
9a7dc3ce7f
commit
b0c730e330
16 changed files with 54 additions and 81 deletions
|
@ -18,17 +18,11 @@ class ConfigurationDefault : public CameraTest
|
|||
protected:
|
||||
int run()
|
||||
{
|
||||
std::map<Stream *, StreamConfiguration> conf;
|
||||
CameraConfiguration conf;
|
||||
|
||||
/* Test asking for configuration for a video stream. */
|
||||
conf = camera_->streamConfiguration({ Stream::VideoRecording() });
|
||||
if (conf.empty()) {
|
||||
cout << "Failed to retrieve configuration for video streams"
|
||||
<< endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
||||
if (!configurationValid(conf)) {
|
||||
if (!conf.isValid()) {
|
||||
cout << "Default configuration invalid" << endl;
|
||||
return TestFail;
|
||||
}
|
||||
|
@ -38,7 +32,7 @@ protected:
|
|||
* stream usages returns an empty list of configurations.
|
||||
*/
|
||||
conf = camera_->streamConfiguration({});
|
||||
if (!conf.empty()) {
|
||||
if (conf.isValid()) {
|
||||
cout << "Failed to retrieve configuration for empty usage list"
|
||||
<< endl;
|
||||
return TestFail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue