bugrepair: drag and drop
[gpiv.git] / src / dac_cam.h
blob7f42f764ecb66fd65678581efa6fc50bec61b1bd
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
3 /*----------------------------------------------------------------------
5 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
6 libraries.
8 Copyright (C) 2005, 2006, 2007, 2008
9 Gerber van der Graaf <gerber_graaf@users.sourceforge.net>
11 This file is part of gpiv.
13 Gpiv is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2, or (at your option)
16 any later version.
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software Foundation,
25 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 ----------------------------------------------------------------------*/
30 * (callback) functions for dac
31 * $Log: dac_cam.h,v $
32 * Revision 1.3 2006-09-18 07:27:05 gerber
33 * *** empty log message ***
35 * Revision 1.2 2005/01/31 14:41:41 gerber
36 * copyrighted and cleaned-up
38 * Revision 1.1 2005/01/19 15:53:41 gerber
39 * Initiation of Data Acquisition (DAC); trigerring of lasers and camera
40 * by using RTAI and Realtime Linux, recording images from IEEE1394
41 * (Firewire) IIDC compliant camera's
45 #ifndef DAC_CAM_H
46 #define DAC_CAM_H
47 #ifdef ENABLE_CAM
51 static const char *format0_desc[NUM_FORMAT0_MODES] =
53 "160x120 YUV (4:4:4)",
54 "320x240 YUV (4:2:2)",
55 "640x480 YUV (4:1:1)",
56 "640x480 YUV (4:2:2)",
57 "640x480 RGB (24bpp)",
58 "640x480 Mono (8bpp)",
59 "640x480 Mono (16bpp)"
62 static const char *format1_desc[NUM_FORMAT1_MODES] =
64 "800x600 (YUV)",
65 "800x600 (RGB)",
66 "800x600 (MONO)",
67 "1024x768 (YUV422)",
68 "1024x768 (RGB)",
69 "1024x768 (MONO)",
70 "800x600 (MONO16)",
71 "1024x768 (MONO16)"
74 static const char *format2_desc[NUM_FORMAT2_MODES] =
76 "1280x960 (YUV)",
77 "1280x960 (RGB)",
78 "1280x960 (MONO)",
79 "1600x1200 (YUV422)",
80 "1600x1200 (RGB)",
81 "1600x1200 (MONO)",
82 "1280x960 (MONO16)",
83 "1600x1200 (MONO16)"
86 static const char *format6_desc[NUM_FORMAT6_MODES] =
88 "EXIF"
91 static const char *format7_desc[NUM_MODE_FORMAT7] =
93 "FORMAT7 (0)",
94 "FORMAT7 (1)",
95 "FORMAT7 (2)",
96 "FORMAT7 (3)",
97 "FORMAT7 (4)",
98 "FORMAT7 (5)",
99 "FORMAT7 (6)",
100 "FORMAT7 (7)"
103 static const char *color_format7_desc[NUM_COLOR_FORMAT7] =
105 "FORMAT7 (MONO8)",
106 "FORMAT7 (YUV411)",
107 "FORMAT7 (YUV422)",
108 "FORMAT7 (YUV444)",
109 "FORMAT7 (RGB8)",
110 "FORMAT7 (MONO16)",
111 "FORMAT7 (RGB16"
118 static const char *trigger_mode_desc[NUM_TRIGGER_MODE] =
120 "TRIGGER MODE 0",
121 "TRIGGER MODE 1",
122 "TRIGGER MODE 2",
123 "TRIGGER MODE 3"
127 static const char *format_desc[NUM_FORMATS] =
129 "FORMAT_VGA_NONCOMPRESSED",
130 "FORMAT_SVGA_NONCOMPRESSED_1",
131 "FORMAT_SVGA_NONCOMPRESSED_2",
132 "RESERVED 1",
133 "RESERVED 2",
134 "RESERVED 3",
135 "FORMAT_STILL_IMAGE= 390",
136 "FORMAT_SCALABLE_IMAGE_SIZE"
140 * Already declared in libdc1394.h
143 const char *dc1394_feature_desc[NUM_FEATURES] =
145 "Brightness",
146 "Exposure",
147 "Sharpness",
148 "White Balance",
149 "Hue",
150 "Saturation",
151 "Gamma",
152 "Shutter",
153 "Gain",
154 "Iris",
155 "Focus",
156 "Temperature",
157 "Trigger",
158 "Zoom",
159 "Pan",
160 "Tilt",
161 "Optical Filter",
162 "Capture Size",
163 "Capture Quality"
168 static const char * fps_label_list[NUM_FRAMERATES] = {
169 "1.875 fps",
170 "3.75 fps",
171 "7.5 fps",
172 "15 fps",
173 "30 fps",
174 "60 fps"
178 * Global functions
181 void
182 exec_cam_start(GpivConsole *gpiv
185 void
186 exec_cam_stop(void
190 * Callback functions
193 void
194 on_menu_camera_select(GtkWidget *widget,
195 gpointer data);
197 void
198 on_menu_format(GtkWidget *widget,
199 gpointer data);
201 void
202 on_menu_fps(GtkWidget *widget,
203 gpointer data);
205 void
206 on_trigger_external_toggled (GtkToggleButton *togglebutton,
207 gpointer user_data);
209 void
210 on_trigger_polarity_toggled (GtkToggleButton *togglebutton,
211 gpointer user_data);
213 void
214 on_trigger_mode_activate(GtkWidget *widget,
215 gpointer data);
217 #ifdef ENABLE_TRIG
218 void
219 on_checkbutton_camera_trigger_enter(GtkWidget *widget,
220 gpointer data);
222 void
223 on_checkbutton_camera_trigger(GtkWidget *widget,
224 gpointer data);
225 #endif /* ENABLE_TRIG */
227 void
228 on_man_auto_menu(GtkWidget *widget,
229 gpointer data);
231 void
232 on_scale_changed(GtkAdjustment *adj,
233 gpointer user_data);
235 void
236 on_button_dac_camstart_enter(GtkWidget *widget,
237 gpointer data);
239 void
240 on_button_dac_camstart(GtkWidget *widget,
241 gpointer data);
243 void
244 on_button_dac_camstop_enter(GtkWidget *widget,
245 gpointer data);
247 void
248 on_button_dac_camstop(GtkWidget *widget,
249 gpointer data);
251 #endif /* ENABLE_CAM */
252 #endif /* DAC_CAM_H */