mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-19 02:15:05 +03:00
cam: Rename Capture to CameraSession
Rename the Capture class to CameraSession, to prepare for multi-camera support that will gather more camera-related operations than capture in that class. While at it, remove an unneeded blank line. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
180e95f06a
commit
94d828d880
4 changed files with 22 additions and 23 deletions
|
@ -13,7 +13,7 @@
|
|||
#include <libcamera/libcamera.h>
|
||||
#include <libcamera/property_ids.h>
|
||||
|
||||
#include "capture.h"
|
||||
#include "camera_session.h"
|
||||
#include "event_loop.h"
|
||||
#include "main.h"
|
||||
#include "options.h"
|
||||
|
@ -363,8 +363,8 @@ int CamApp::run()
|
|||
}
|
||||
|
||||
if (options_.isSet(OptCapture)) {
|
||||
Capture capture(camera_, config_.get(), &loop_);
|
||||
return capture.run(options_);
|
||||
CameraSession session(camera_, config_.get(), &loop_);
|
||||
return session.run(options_);
|
||||
}
|
||||
|
||||
if (options_.isSet(OptMonitor)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue