summaryrefslogtreecommitdiffhomepage
path: root/cv/video-property-page.hpp
blob: 4e53e2abeb21741f72f17714ac20f356c5b804b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <QString>

#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);
    static bool should_show_dialog(const QString& camera_name);
private:
#ifdef _WIN32
    static HRESULT ShowFilterPropertyPages(IBaseFilter* filter);
    static IBaseFilter* get_device(int id);
#endif
};