summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/tools/grab.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/tools/grab.c b/bin/tools/grab.c
index f355fcb..c6a0d71 100644
--- a/bin/tools/grab.c
+++ b/bin/tools/grab.c
@@ -33,6 +33,7 @@
typedef struct {
gint n_frames;
gdouble duration;
+ gdouble exposure_time;
gchar *filename;
#ifdef HAVE_LIBTIFF
gboolean write_tiff;
@@ -219,6 +220,7 @@ main (int argc, char *argv[])
static Options opts = {
.n_frames = -1,
.duration = -1.0,
+ .exposure_time = 0.001,
.filename = NULL,
#ifdef HAVE_LIBTIFF
.write_tiff = FALSE,
@@ -228,6 +230,7 @@ main (int argc, char *argv[])
static GOptionEntry entries[] = {
{ "num-frames", 'n', 0, G_OPTION_ARG_INT, &opts.n_frames, "Number of frames to acquire", "N" },
{ "duration", 'd', 0, G_OPTION_ARG_DOUBLE, &opts.duration, "Duration in seconds", NULL },
+ { "exposure-time", 'e', 0, G_OPTION_ARG_DOUBLE, &opts.exposure_time, "Exposure time in seconds", NULL },
{ "output", 'o', 0, G_OPTION_ARG_STRING, &opts.filename, "Output file name", "FILE" },
#ifdef HAVE_LIBTIFF
{ "write-tiff", 't', 0, G_OPTION_ARG_NONE, &opts.write_tiff, "Write as TIFF", NULL },
@@ -265,6 +268,7 @@ main (int argc, char *argv[])
goto cleanup_camera;
}
+ g_object_set (camera, "exposure-time", opts.exposure_time, NULL);
error = record_frames (camera, &opts);
if (error != NULL)