-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdahengcamera.h
More file actions
44 lines (32 loc) · 916 Bytes
/
dahengcamera.h
File metadata and controls
44 lines (32 loc) · 916 Bytes
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
#ifndef DAHENGCAMERA_H
#define DAHENGCAMERA_H
#include <QObject>
#include "Windows.h"//加载此头文件以解决大恒相机头文件类型未定义问题
#include <HVDAILT.h>
#include <Raw2Rgb.h>
class DaHengCamera : public QObject
{
Q_OBJECT
public:
DaHengCamera(QObject *parent = 0);
~DaHengCamera();
bool cameraOpened;
void daHengExposure(int leftexposure, int rightexposure);
void openDaHengCamera(int camerawidth, int cameraheight);
void daHengSnapShot(int camNo);
void closeCamera();
BYTE *m_pRawBuffer_1;
BYTE *m_pRawBuffer_2;
private:
HHV m_hhv_1;
HHV m_hhv_2;
int cam_w;
int cam_h;
static int CALLBACK SnapThreadCallback(HV_SNAP_INFO *pInfo);
///---------------相机相关函数---------------///
void OnSnapexOpen();
void OnSnapexStart();
void OnSnapexStop();
void OnSnapexClose();
};
#endif // DAHENGCAMERA_H