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
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)
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
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
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
] =
74 static const char *format2_desc
[NUM_FORMAT2_MODES
] =
86 static const char *format6_desc
[NUM_FORMAT6_MODES
] =
91 static const char *format7_desc
[NUM_MODE_FORMAT7
] =
103 static const char *color_format7_desc
[NUM_COLOR_FORMAT7
] =
118 static const char *trigger_mode_desc
[NUM_TRIGGER_MODE
] =
127 static const char *format_desc
[NUM_FORMATS
] =
129 "FORMAT_VGA_NONCOMPRESSED",
130 "FORMAT_SVGA_NONCOMPRESSED_1",
131 "FORMAT_SVGA_NONCOMPRESSED_2",
135 "FORMAT_STILL_IMAGE= 390",
136 "FORMAT_SCALABLE_IMAGE_SIZE"
140 * Already declared in libdc1394.h
143 const char *dc1394_feature_desc[NUM_FEATURES] =
168 static const char * fps_label_list
[NUM_FRAMERATES
] = {
182 exec_cam_start(GpivConsole
*gpiv
194 on_menu_camera_select(GtkWidget
*widget
,
198 on_menu_format(GtkWidget
*widget
,
202 on_menu_fps(GtkWidget
*widget
,
206 on_trigger_external_toggled (GtkToggleButton
*togglebutton
,
210 on_trigger_polarity_toggled (GtkToggleButton
*togglebutton
,
214 on_trigger_mode_activate(GtkWidget
*widget
,
219 on_checkbutton_camera_trigger_enter(GtkWidget
*widget
,
223 on_checkbutton_camera_trigger(GtkWidget
*widget
,
225 #endif /* ENABLE_TRIG */
228 on_man_auto_menu(GtkWidget
*widget
,
232 on_scale_changed(GtkAdjustment
*adj
,
236 on_button_dac_camstart_enter(GtkWidget
*widget
,
240 on_button_dac_camstart(GtkWidget
*widget
,
244 on_button_dac_camstop_enter(GtkWidget
*widget
,
248 on_button_dac_camstop(GtkWidget
*widget
,
251 #endif /* ENABLE_CAM */
252 #endif /* DAC_CAM_H */