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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user