aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4l.h
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2014-07-21 13:58:47 +0100
committerAlessio Treglia <alessio@debian.org>2014-07-21 13:58:47 +0100
commit33a083b7cbd868f88fcb7bc99145fa5e1fac40df (patch)
tree518305a81b3a6ca45d79a060dee998c92559dd92 /src/v4l.h
parente25104d1480e03993980d944d21d788a95ecd09d (diff)
Imported Upstream version 0.19upstream/0.19
Diffstat (limited to 'src/v4l.h')
-rw-r--r--src/v4l.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/v4l.h b/src/v4l.h
index 5cd9f13..7f20293 100644
--- a/src/v4l.h
+++ b/src/v4l.h
@@ -21,12 +21,17 @@
#include "camorama-filter-chain.h"
-#define PICMAX 0
-#define PICMIN 1
-#define PICHALF 2
-#define JPEG 0
-#define PNG 1
-#define PPM 2
+typedef enum {
+ PICMAX = 0,
+ PICMIN = 1,
+ PICHALF = 2
+} CamoImageSize;
+
+enum {
+ JPEG = 0,
+ PNG = 1,
+ PPM = 2
+};
typedef struct camera {
int dev;
@@ -34,7 +39,7 @@ typedef struct camera {
int y;
int depth;
int desk_depth;
- int size;
+ CamoImageSize size;
int contrast, brightness, colour, hue, wb;
int frame_number;
struct video_capability vid_cap;
@@ -56,7 +61,6 @@ typedef struct camera {
gboolean timestamp, rtimestamp, usedate, usestring;
gboolean rtimefn, timefn;
GdkPixmap *pixmap;
- GdkWindow *window;
GtkWidget *da, *tray_tooltip, *status;
unsigned char *pic_buf, *tmp;
guint timeout_id, idle_id;

Privacy Policy