From b67947751a24366137844cd1a3b41bed7095bf76 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 3 Jul 2012 09:08:26 +0200 Subject: Fix LU-16: Add cooling point props Added "cooling-point-min", "cooling-point-max" and "cooling-point-default" to query the valid range of "cooling-point". --- test/grab.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/grab.c b/test/grab.c index a5f1cf5..67763b4 100644 --- a/test/grab.c +++ b/test/grab.c @@ -38,6 +38,7 @@ int main(int argc, char *argv[]) guint sensor_width, sensor_height, sensor_width_extended, sensor_height_extended; guint roi_width, roi_height, roi_x, roi_y, roi_width_multiplier, roi_height_multiplier; guint bits, sensor_rate; + gint cp_min, cp_max, cp_default; gchar *name; g_type_init(); @@ -75,6 +76,9 @@ int main(int argc, char *argv[]) "roi-y0", &roi_y, "sensor-bitdepth", &bits, "sensor-pixelrate", &sensor_rate, + "cooling-point-min", &cp_min, + "cooling-point-max", &cp_max, + "cooling-point-default", &cp_default, NULL); g_print("Camera: %s\n", name); @@ -88,6 +92,8 @@ int main(int argc, char *argv[]) g_print("ROI: %ix%i @ (%i, %i), steps: %i, %i\n", roi_width, roi_height, roi_x, roi_y, roi_width_multiplier, roi_height_multiplier); + g_print("Valid cooling point range: [%i, %i] (default: %i)\n", cp_min, cp_max, cp_default); + const int pixel_size = bits == 8 ? 1 : 2; gpointer buffer = g_malloc0(roi_width * roi_height * pixel_size); gchar filename[FILENAME_MAX]; -- cgit v1.2.3