libcamera: camera: Rename configureStreams() and streamConfiguration()
Rename the configureStreams() and streamConfiguration() methods to configure() and generateConfiguration() respectively in order to clarify the API. Both methods deal with CameraConfiguration objects, and are thus not limited to streams, even if a CameraConfiguration currently contains streams only. While at it, remove the qcam MainWindow::configureStreams() method that is declared but never defined or used. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
d8de003a04
commit
2ca2d65870
16 changed files with 87 additions and 90 deletions
|
@ -21,7 +21,7 @@ protected:
|
|||
CameraConfiguration config;
|
||||
|
||||
/* Test asking for configuration for a video stream. */
|
||||
config = camera_->streamConfiguration({ Stream::VideoRecording() });
|
||||
config = camera_->generateConfiguration({ Stream::VideoRecording() });
|
||||
if (!config.isValid()) {
|
||||
cout << "Default configuration invalid" << endl;
|
||||
return TestFail;
|
||||
|
@ -31,7 +31,7 @@ protected:
|
|||
* Test that asking for configuration for an empty array of
|
||||
* stream usages returns an empty list of configurations.
|
||||
*/
|
||||
config = camera_->streamConfiguration({});
|
||||
config = camera_->generateConfiguration({});
|
||||
if (config.isValid()) {
|
||||
cout << "Failed to retrieve configuration for empty usage list"
|
||||
<< endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue