-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCameraController.h
72 lines (64 loc) · 1.95 KB
/
CameraController.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
/*
* CameraController.h
*
* This file is part of iSightControlPanel.
*
* iSightControlPanel is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* iSightControlPanel is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with iSightControlPanel. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2012 Lieven Govaerts. All rights reserved.
*/
/** iSight supported controls:
Brightness
Contrast
Saturation
Sharpness
Gamma
White Balance Temperature
White Balance Temperature, Auto
Backlight Compensation
Power Line Frequency
Auto Exposure Mode
Exposure Time (Absolute)
Hue (?)
/** Types used to request and update control values. **/
typedef enum { /* these values have a meaning, see CameraController.m */
CamPar_Brightness = 0,
CamPar_Contrast = 1,
CamPar_Saturation = 2,
CamPar_Sharpness = 3,
CamPar_AutoExposureMode = 4,
CamPar_ExposureAbs = 5,
CamPar_Gamma = 6,
CamPar_AutoWhiteBalanceTemp = 7,
CamPar_WhiteBalanceTemp = 8,
} CameraControl_t;
typedef enum {
CamPar_Min = 256,
CamPar_Max,
CamPar_Current,
CamPar_Default,
CamPar_Resolution
} CameraSelector_t;
typedef enum {
CamPar_AEManual = 0x01,
CamPar_AEAuto = 0x02,
CamPar_AEShutterPriority = 0x04,
CamPar_AEAperturePriority = 0x08, /* Not supported by iSight */
} CameraAutoExposureMode_t;
@interface CameraController : NSObject {
}
- (BOOL)openUSBCamera:(SInt32)vendorID :(SInt32)productID;
- (long)getValue:(CameraControl_t)control selector:(CameraSelector_t)selector;
- (long)setValue:(long)value control:(CameraControl_t)control;
@end