1 | /* |
---|
2 | * qcamip.h - Connectix QuickCam Image Processing routines |
---|
3 | * |
---|
4 | * Time-stamp: <02 Sep 96 11:19:27 HST edo@eosys.com> |
---|
5 | * |
---|
6 | * Version 0.2 |
---|
7 | */ |
---|
8 | |
---|
9 | /****************************************************************** |
---|
10 | |
---|
11 | Copyright (C) 1996 by Ed Orcutt Systems |
---|
12 | |
---|
13 | Permission is hereby granted, free of charge, to any person |
---|
14 | obtaining a copy of this software and associated documentation |
---|
15 | files (the "Software"), to deal in the Software without |
---|
16 | restriction, including without limitation the rights to use, |
---|
17 | copy, modify, merge, publish, and/or distribute copies of the |
---|
18 | Software, and to permit persons to whom the Software is |
---|
19 | furnished to do so, subject to the following conditions: |
---|
20 | |
---|
21 | 1. The above copyright notice and this permission notice shall |
---|
22 | be included in all copies or substantial portions of the |
---|
23 | Software. |
---|
24 | |
---|
25 | 2. Redistribution for profit requires the express, written |
---|
26 | permission of the author. |
---|
27 | |
---|
28 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
---|
29 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
---|
30 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
---|
31 | NONINFRINGEMENT. IN NO EVENT SHALL ED ORCUTT SYSTEMS BE LIABLE |
---|
32 | FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
---|
33 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
---|
34 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
---|
35 | SOFTWARE. |
---|
36 | |
---|
37 | ******************************************************************/ |
---|
38 | |
---|
39 | #ifndef _QCAMIP_H |
---|
40 | #define _QCAMIP_H |
---|
41 | #include "qcam.h" |
---|
42 | |
---|
43 | /* Auto exposure modes */ |
---|
44 | |
---|
45 | #define AE_ALL_AVG 0 |
---|
46 | #define AE_CTR_AVG 1 |
---|
47 | #define AE_STD_AVG 2 |
---|
48 | |
---|
49 | /* Return value of image processing routines */ |
---|
50 | |
---|
51 | #define QCIP_XPSR_OK 0 |
---|
52 | #define QCIP_XPSR_RSCN 1 |
---|
53 | #define QCIP_XPSR_ERR 2 |
---|
54 | #define QCIP_XPSR_LUM_INVLD 3 |
---|
55 | |
---|
56 | /* Prototypes for image processing routines */ |
---|
57 | |
---|
58 | int qcip_autoexposure(struct qcam *q, scanbuf *scan); |
---|
59 | int qcip_set_luminance_target(struct qcam *q, int val); |
---|
60 | int qcip_set_luminance_tolerance(struct qcam *q, int val); |
---|
61 | int qcip_set_luminance_std_target(struct qcam *q, int val); |
---|
62 | int qcip_set_luminance_std_tolerance(struct qcam *q, int val); |
---|
63 | int qcip_set_autoexposure_mode(int val); |
---|
64 | void qcip_histogram(struct qcam *q, scanbuf *scan, int *histogram); |
---|
65 | void qcip_display_histogram(struct qcam *q, scanbuf *scan); |
---|
66 | |
---|
67 | #endif /*! _QCAMIP_H*/ |
---|