From 94d828d880492617c936434a5ca93ee83366a31b Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 5 Jul 2021 06:40:19 +0300 Subject: 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 Reviewed-by: Kieran Bingham --- src/cam/capture.h | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/cam/capture.h (limited to 'src/cam/capture.h') diff --git a/src/cam/capture.h b/src/cam/capture.h deleted file mode 100644 index de478c98..00000000 --- a/src/cam/capture.h +++ /dev/null @@ -1,55 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Copyright (C) 2019, Google Inc. - * - * capture.h - Cam capture - */ -#ifndef __CAM_CAPTURE_H__ -#define __CAM_CAPTURE_H__ - -#include -#include -#include - -#include -#include -#include -#include -#include - -#include "buffer_writer.h" -#include "event_loop.h" -#include "options.h" - -class Capture -{ -public: - Capture(std::shared_ptr camera, - libcamera::CameraConfiguration *config, - EventLoop *loop); - - int run(const OptionsParser::Options &options); -private: - int capture(libcamera::FrameBufferAllocator *allocator); - - int queueRequest(libcamera::Request *request); - void requestComplete(libcamera::Request *request); - void processRequest(libcamera::Request *request); - - std::shared_ptr camera_; - libcamera::CameraConfiguration *config_; - - std::map streamName_; - BufferWriter *writer_; - uint64_t last_; - - EventLoop *loop_; - unsigned int queueCount_; - unsigned int captureCount_; - unsigned int captureLimit_; - bool printMetadata_; - - std::vector> requests_; -}; - -#endif /* __CAM_CAPTURE_H__ */ -- cgit v1.2.1