diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-17 16:09:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-17 16:20:19 +0200 |
commit | c7215393794b7a901cfcca22c9afe200f5bb959e (patch) | |
tree | 1a96ae7e44f48ce84219fd778181b0a85f09bc77 /cv/video-property-page.hpp | |
parent | 1cb46ce512333342f292462121b6e23bee0a715d (diff) |
cv: bring video property page from the attic
Diffstat (limited to 'cv/video-property-page.hpp')
-rw-r--r-- | cv/video-property-page.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cv/video-property-page.hpp b/cv/video-property-page.hpp new file mode 100644 index 00000000..7c51f111 --- /dev/null +++ b/cv/video-property-page.hpp @@ -0,0 +1,21 @@ +#pragma once + +#ifdef _WIN32 +# include <windows.h> +# include <dshow.h> +#endif + +#include "opencv2/videoio.hpp" + +struct video_property_page final +{ + video_property_page() = delete; + static bool show(int id); + static bool show_from_capture(cv::VideoCapture& cap, int idx); + +private: +#ifdef _WIN32 + static HRESULT ShowFilterPropertyPages(IBaseFilter* filter); + static IBaseFilter* get_device(int id); +#endif +}; |