mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue