-
Notifications
You must be signed in to change notification settings - Fork 0
/
pslr_enum.h
190 lines (160 loc) · 5.85 KB
/
pslr_enum.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/*
pkTriggerCord
Copyright (C) 2011-2014 Andras Salamon <[email protected]>
Remote control of Pentax DSLR cameras.
based on:
PK-Remote
Remote control of Pentax DSLR cameras.
Copyright (C) 2008 Pontus Lidman <[email protected]>
PK-Remote for Windows
Copyright (C) 2010 Tomasz Kos
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 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 Lesser General Public License for more details.
You should have received a copy of the GNU General Public License
and GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PSLR_ENUM_H
#define PSLR_ENUM_H
typedef enum {
PSLR_COLOR_SPACE_SRGB,
PSLR_COLOR_SPACE_ADOBERGB,
PSLR_COLOR_SPACE_MAX
} pslr_color_space_t;
typedef enum {
PSLR_AF_MODE_MF,
PSLR_AF_MODE_AF_S,
PSLR_AF_MODE_AF_C,
PSLR_AF_MODE_AF_A,
PSLR_AF_MODE_MAX
} pslr_af_mode_t;
typedef enum {
PSLR_AE_METERING_MULTI,
PSLR_AE_METERING_CENTER,
PSLR_AE_METERING_SPOT,
PSLR_AE_METERING_MAX
} pslr_ae_metering_t;
typedef enum {
PSLR_FLASH_MODE_MANUAL = 0,
PSLR_FLASH_MODE_MANUAL_REDEYE = 1,
PSLR_FLASH_MODE_SLOW = 2,
PSLR_FLASH_MODE_SLOW_REDEYE = 3,
PSLR_FLASH_MODE_TRAILING_CURTAIN = 4,
PSLR_FLASH_MODE_AUTO = 5,
PSLR_FLASH_MODE_AUTO_REDEYE = 6,
// 7 not used
PSLR_FLASH_MODE_WIRELESS = 8,
PSLR_FLASH_MODE_MAX = 9
} pslr_flash_mode_t;
typedef enum {
PSLR_DRIVE_MODE_SINGLE,
PSLR_DRIVE_MODE_CONTINUOUS_HI,
PSLR_DRIVE_MODE_SELF_TIMER_12,
PSLR_DRIVE_MODE_SELF_TIMER_2,
PSLR_DRIVE_MODE_REMOTE,
PSLR_DRIVE_MODE_REMOTE_3,
PSLR_DRIVE_MODE_CONTINUOUS_LO,
PSLR_DRIVE_MODE_MAX
} pslr_drive_mode_t;
typedef enum {
PSLR_AF_POINT_SEL_AUTO_5,
PSLR_AF_POINT_SEL_SELECT,
PSLR_AF_POINT_SEL_SPOT,
PSLR_AF_POINT_SEL_AUTO_11, // maybe not for all cameras
PSLR_AF_POINT_SEL_MAX
} pslr_af_point_sel_t;
typedef enum {
PSLR_JPEG_IMAGE_TONE_NONE = -1,
PSLR_JPEG_IMAGE_TONE_NATURAL,
PSLR_JPEG_IMAGE_TONE_BRIGHT,
PSLR_JPEG_IMAGE_TONE_PORTRAIT,
PSLR_JPEG_IMAGE_TONE_LANDSCAPE,
PSLR_JPEG_IMAGE_TONE_VIBRANT,
PSLR_JPEG_IMAGE_TONE_MONOCHROME,
PSLR_JPEG_IMAGE_TONE_MUTED,
PSLR_JPEG_IMAGE_TONE_REVERSAL_FILM,
PSLR_JPEG_IMAGE_TONE_BLEACH_BYPASS,
PSLR_JPEG_IMAGE_TONE_RADIANT,
PSLR_JPEG_IMAGE_TONE_MAX
} pslr_jpeg_image_tone_t;
typedef enum {
PSLR_WHITE_BALANCE_MODE_AUTO,
PSLR_WHITE_BALANCE_MODE_DAYLIGHT,
PSLR_WHITE_BALANCE_MODE_SHADE,
PSLR_WHITE_BALANCE_MODE_CLOUDY,
PSLR_WHITE_BALANCE_MODE_FLUORESCENT_DAYLIGHT_COLOR,
PSLR_WHITE_BALANCE_MODE_FLUORESCENT_DAYLIGHT_WHITE,
PSLR_WHITE_BALANCE_MODE_FLUORESCENT_COOL_WHITE,
PSLR_WHITE_BALANCE_MODE_TUNGSTEN,
PSLR_WHITE_BALANCE_MODE_FLASH,
PSLR_WHITE_BALANCE_MODE_MANUAL,
// a few items are missing here
PSLR_WHITE_BALANCE_MODE_FLUORESCENT_WARM_WHITE = 0x0F,
PSLR_WHITE_BALANCE_MODE_CTE = 0x10,
PSLR_WHITE_BALANCE_MODE_MAX = 0x11
} pslr_white_balance_mode_t;
typedef enum {
PSLR_CUSTOM_EV_STEPS_1_2,
PSLR_CUSTOM_EV_STEPS_1_3,
PSLR_CUSTOM_EV_STEPS_MAX
} pslr_custom_ev_steps_t;
typedef enum {
PSLR_RAW_FORMAT_PEF,
PSLR_RAW_FORMAT_DNG,
PSLR_RAW_FORMAT_MAX
} pslr_raw_format_t;
typedef enum {
PSLR_EXPOSURE_SUBMODE_NONE,
PSLR_EXPOSURE_SUBMODE_HISPEED,
PSLR_EXPOSURE_SUBMODE_DOF,
PSLR_EXPOSURE_SUBMODE_MTF,
PSLR_EXPOSURE_SUBMODE_STANDARD,
PSLR_EXPOSURE_SUBMODE_PORTRAIT,
PSLR_EXPOSURE_SUBMODE_LANDSCAPE,
PSLR_EXPOSURE_SUBMODE_MACRO,
PSLR_EXPOSURE_SUBMODE_SPORT,
PSLR_EXPOSURE_SUBMODE_NIGHTSCENEPORTRAIT,
PSLR_EXPOSURE_SUBMODE_NOFLASH,
PSLR_EXPOSURE_SUBMODE_NIGHTSCENE,
PSLR_EXPOSURE_SUBMODE_SURFANDSNOW,
PSLR_EXPOSURE_SUBMODE_TEXT,
PSLR_EXPOSURE_SUBMODE_SUNSET,
PSLR_EXPOSURE_SUBMODE_KIDS,
PSLR_EXPOSURE_SUBMODE_PET,
PSLR_EXPOSURE_SUBMODE_CANDLELIGHT,
PSLR_EXPOSURE_SUBMODE_MUSEUM,
PSLR_EXPOSURE_SUBMODE_FOOD,
PSLR_EXPOSURE_SUBMODE_STAGE,
PSLR_EXPOSURE_SUBMODE_NIGHTSNAP,
PSLR_EXPOSURE_SUBMODE_SWALLOWDOF,
PSLR_EXPOSURE_SUBMODE_MAX
} pslr_exposure_submode_t;
int str_comparison_i (const char *s1, const char *s2, int n);
int find_in_array( const char** array, int length, char* str );
pslr_color_space_t get_pslr_color_space( char *str );
const char *get_pslr_color_space_str( pslr_color_space_t value );
pslr_af_mode_t get_pslr_af_mode( char *str );
const char *get_pslr_af_mode_str( pslr_af_mode_t value );
pslr_ae_metering_t get_pslr_ae_metering( char *str );
const char *get_pslr_ae_metering_str( pslr_ae_metering_t value );
pslr_flash_mode_t get_pslr_flash_mode( char *str );
const char *get_pslr_flash_mode_str( pslr_flash_mode_t value );
pslr_drive_mode_t get_pslr_drive_mode( char *str );
const char *get_pslr_drive_mode_str( pslr_drive_mode_t value );
pslr_af_point_sel_t get_pslr_af_point_sel( char *str );
const char *get_pslr_af_point_sel_str( pslr_af_point_sel_t value );
pslr_jpeg_image_tone_t get_pslr_jpeg_image_tone( char *str );
const char *get_pslr_jpeg_image_tone_str( pslr_jpeg_image_tone_t value );
pslr_white_balance_mode_t get_pslr_white_balance_mode( char *str );
const char *get_pslr_white_balance_mode_str( pslr_white_balance_mode_t value );
//pslr_custom_ev_steps_t get_pslr_custom_ev_steps( char *str );
const char *get_pslr_custom_ev_steps_str( pslr_custom_ev_steps_t value );
const char *get_pslr_raw_format_str( pslr_raw_format_t value );
const char *get_pslr_exposure_submode_str( pslr_exposure_submode_t value );
#endif