diff options
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 +}; |