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-05 02:52:59 +02:00
parent 9a7dc3ce7f
commit b0c730e330
16 changed files with 54 additions and 81 deletions

View file

@ -45,21 +45,3 @@ void CameraTest::cleanup()
cm_->stop();
};
bool CameraTest::configurationValid(const std::map<Stream *, StreamConfiguration> &config) const
{
/* Test that the configuration is not empty. */
if (config.empty())
return false;
/* Test that configuration is valid. */
for (auto const &it : config) {
const StreamConfiguration &conf = it.second;
if (conf.width == 0 || conf.height == 0 ||
conf.pixelFormat == 0 || conf.bufferCount == 0)
return false;
}
return true;
}