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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/*
* Copyright 1999/2000 by Henning Zabel <henning@uni-paderborn.de>
*
* This program 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 2 of the License, or (at your
* option) any later version.
*
* This program 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 this program; if not, write to the Free Software Foundation,
* Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef _MUSTEK_CORE_H
#define _MUSTEK_CORE_H
#include "io.h"
#include "mdc800_spec.h"
#include "image.h"
#define MDC800_FLASHLIGHT_REDEYE 1
#define MDC800_FLASHLIGHT_ON 2
#define MDC800_FLASHLIGHT_OFF 4
#define MDC800_FLASHLIGHT_AUTO 0
struct _CameraPrivateLibrary {
unsigned char system_flags[4];
int system_flags_valid;
int memory_source;
};
/* -------------------------------------------------------------------------- */
int mdc800_openCamera (Camera*);
int mdc800_closeCamera (Camera*);
int mdc800_changespeed (Camera*,int);
int mdc800_getSpeed (Camera*,int *);
/* - Camera must be open for these functions -------------------------------- */
int mdc800_setTarget (Camera *camera, int);
int mdc800_getThumbnail (Camera *cam, int nr, void **data,int *size);
int mdc800_getImage (Camera *cam,int nr, void **data, int *size);
/* ------- SystemStatus ---------------------------------------------------- */
int mdc800_getSystemStatus(Camera *);
int mdc800_isCFCardPresent(Camera *);
int mdc800_getMode(Camera*);
int mdc800_getFlashLightStatus(Camera*);
int mdc800_isLCDEnabled(Camera*);
int mdc800_isBatteryOk(Camera*);
int mdc800_isMenuOn(Camera*);
int mdc800_isAutoOffEnabled(Camera*);
int mdc800_getStorageSource(Camera*);
/* ------- Other Functions -------------------------------------------------- */
/* Most of these Function depends on the Storage Source */
int mdc800_setDefaultStorageSource(Camera*);
int mdc800_setStorageSource (Camera *,int);
int mdc800_setMode (Camera *,int);
int mdc800_enableLCD (Camera*,int);
int mdc800_playbackImage (Camera*,int );
int mdc800_getRemainFreeImageCount (Camera*,int*,int* ,int*);
int mdc800_setFlashLight (Camera*,int );
char* mdc800_getFlashLightString (int);
int mdc800_getImageQuality (Camera*,unsigned char *retval);
int mdc800_setImageQuality (Camera*,int);
int mdc800_getWBandExposure (Camera*,int*, int*);
int mdc800_setExposure (Camera*,int);
int mdc800_setWB (Camera*,int);
int mdc800_setExposureMode (Camera*,int);
int mdc800_getExposureMode (Camera*,int *);
int mdc800_enableMenu (Camera *,int);
int mdc800_number_of_pictures (Camera *camera, int *nrofpics);
#endif
|