-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStereoCaptureDLG.h
77 lines (56 loc) · 1.93 KB
/
StereoCaptureDLG.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// StereoCaptureDlg.h : header file
//
#pragma once
#include "afxwin.h"
#include "listener.h"
// StereoCaptureDlg dialog
class StereoCaptureDlg : public CDialog
{
// Construction
public:
StereoCaptureDlg(CWnd* pParent = NULL); // standard constructor
~StereoCaptureDlg();
// Dialog Data
enum { IDD = IDD_StereoCapture_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
afx_msg void OnBnClickedButtondevice1();
afx_msg void OnBnClickedButtonimagesettings1();
afx_msg void OnBnClickedButtonlivevideo1();
afx_msg void OnBnClickedButtondevice2();
afx_msg void OnBnClickedButtonimagesettings2();
afx_msg void OnBnClickedButtonlivevideo2();
void SetButtonStates(void);
void OnBnClickedButtondevice(size_t nstream);
void OnBnClickedButtonimagesettings(size_t nstream);
void OnBnClickedButtonlivevideo(size_t nstream);
void PrepareSink(size_t nstream);
std::vector<size_t> StereoCaptureDlg::SortByTime(size_t nstream, size_t nframes);
void StereoCaptureDlg::WriteToFile(size_t nstream, size_t nframes, std::vector<size_t> sorted, std::string filename);
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose(size_t i);
afx_msg void OnBnClickedButtonsnapimage();
afx_msg void OnBnClickedCpsettings();
afx_msg void OnBnClickedFastmode();
DECLARE_MESSAGE_MAP()
private:
CButton m_cButtonSettings[2];
CButton m_cButtonLive[2];
CStatic m_cStaticVideoWindow[2];
CButton m_cButtonSnapImage;
CEdit m_cFilename;
CEdit m_cNframes;
CEdit m_cFramerate;
CButton m_cFastmode;
// The instances of the Grabber class.
DShowLib::Grabber m_cGrabber[2];
// Listeners associated to the grabbers
CListener m_cListener[2];
// The sinks for snap capture.
DShowLib::tFrameHandlerSinkPtr m_pSink[2];
};