diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-18 17:56:42 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-18 17:56:42 +0100 |
commit | dd23cae02106fdf0fe23ddf865767fb987cc3477 (patch) | |
tree | 8945aa2497c4baa344fa97682afddc2179b0a2f7 /video-opencv/camera-impl.hpp | |
parent | ce561473cb6ed102a969defe037a65bd3df09d63 (diff) |
video/opencv: rename header
Diffstat (limited to 'video-opencv/camera-impl.hpp')
-rw-r--r-- | video-opencv/camera-impl.hpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/video-opencv/camera-impl.hpp b/video-opencv/camera-impl.hpp deleted file mode 100644 index f756fb19..00000000 --- a/video-opencv/camera-impl.hpp +++ /dev/null @@ -1,51 +0,0 @@ -/* Copyright (c) 2019 Stanislaw Halik <sthalik@misaki.pl> - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - */ - -#pragma once - -#include "video/camera.hpp" - -#include <optional> - -#include <opencv2/core.hpp> -#include <opencv2/videoio.hpp> - -namespace opencv_camera_impl { - -using namespace video::impl; - -struct cam; - -struct metadata : camera_ -{ - metadata(); - std::vector<QString> camera_names() const override; - std::unique_ptr<camera> make_camera(const QString& name) override; - bool can_show_dialog(const QString& camera_name) override; - bool show_dialog(const QString& camera_name) override; -}; - -struct cam final : camera -{ - cam(int idx); - ~cam() override; - - bool start(const info& args) override; - void stop() override; - bool is_open() override; - std::tuple<const frame&, bool> get_frame() override; - bool show_dialog() override; - - bool get_frame_(); - - std::optional<cv::VideoCapture> cap; - cv::Mat mat; - frame frame_; - int idx = -1; -}; - -} // ns opencv_camera_impl |