Enlightenment CVS committal

Author  : gilbertt
Project : misc
Module  : camE

Dir     : misc/camE


Modified Files:
        example.camErc webcam.c 


Log Message:

Patch from James Ballantine <[EMAIL PROTECTED]>
adds options to flip captured image vertically or horizontally before
processing.


===================================================================
RCS file: /cvsroot/enlightenment/misc/camE/example.camErc,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- example.camErc      7 Feb 2003 12:33:07 -0000       1.22
+++ example.camErc      15 Mar 2003 15:25:54 -0000      1.23
@@ -157,3 +157,10 @@
 # scale = 1
 # scale_width = 640
 # scale_height = 480
+#
+# Flip the image horizontally or vertically.
+# Horizontal flipping is useful for some Philips cams
+# which give a mirrored image when used with the pwc module.
+# flip_horizontal = 1
+# flip_vertical = 1
+
===================================================================
RCS file: /cvsroot/enlightenment/misc/camE/webcam.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -3 -r1.60 -r1.61
--- webcam.c    25 Feb 2003 13:25:12 -0000      1.60
+++ webcam.c    15 Mar 2003 15:25:54 -0000      1.61
@@ -138,6 +138,8 @@
 int bw_percent = 100;
 int delay_correct = 0;
 int reinit_device = 0;
+int flip_horizontal = 0;
+int flip_vertical = 0;
 
 int connections = 0;
 CURL *curl_handle = NULL;
@@ -1379,6 +1381,10 @@
     pwc_wb_red = i;
   if (-1 != (i = cfg_get_int("grab", "pwc_wb_blue")))
     pwc_wb_blue = i;
+  if (-1 != (i = cfg_get_int("grab", "flip_horizontal")))
+    flip_horizontal = 1;
+  if (-1 != (i = cfg_get_int("grab", "flip_vertical")))
+    flip_vertical = 1;
 
   if (cam_framerate > 60)
     cam_framerate = 60;
@@ -1494,6 +1500,14 @@
         system(action_post_shot);
         log("post-shot action done\n");
       }
+
+      if (flip_horizontal) {
+        imlib_image_flip_horizontal();
+      }
+      if (flip_vertical) {
+        imlib_image_flip_vertical();
+      }
+      
       if (overlay_im)
         draw_overlay(image);
       add_time_text(image, get_message(), width, height);




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to