Update of /cvsroot/playerstage/code/player/utils/playercam
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5263/utils/playercam

Modified Files:
        playercam.c 
Log Message:
applied Radu's camera patch for SR3K driver

Index: playercam.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/utils/playercam/playercam.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** playercam.c 8 Nov 2006 18:34:41 -0000       1.13
--- playercam.c 13 Nov 2006 18:03:13 -0000      1.14
***************
*** 63,66 ****
--- 63,67 ----
  colorspaces:
  - @ref PLAYER_CAMERA_FORMAT_MONO8
+ - @ref PLAYER_CAMERA_FORMAT_MONO16
  - @ref PLAYER_CAMERA_FORMAT_RGB888
  
***************
*** 177,181 ****
           "  -r <rate>      : the refresh rate of the video\n"
           "  -t <transport> : transport to use (either \"tcp\" or \"udp\")\n\n"
!          "Currently supports RGB888 and 8-bit grey scale images.\n\n");
  }
  
--- 178,182 ----
           "  -r <rate>      : the refresh rate of the video\n"
           "  -t <transport> : transport to use (either \"tcp\" or \"udp\")\n\n"
!          "Currently supports RGB888 and 8/16-bit grey scale images.\n\n");
  }
  
***************
*** 461,464 ****
--- 462,477 ----
            }
            break;
+         case PLAYER_CAMERA_FORMAT_MONO16:
+       {
+         int j = 0;
+         // Transform to MONO8
+         for (i = 0; i < g_camera->image_count; i++, j+=2)
+         {
+           g_img[i*3+1] = g_img[i*3+2] = g_img[i*3+3] = 
+               ((unsigned char)(g_camera->image[j]) << 8) + 
+                (unsigned char)(g_camera->image[j+1]);
+         }
+           break;
+       }
          case PLAYER_CAMERA_FORMAT_RGB888:
            // do nothing


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to