Update of /cvsroot/playerstage/code/player/utils/playercam
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13484/utils/playercam
Modified Files:
playercam.c
Log Message:
post-CVS-screwup changes
Index: playercam.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/utils/playercam/playercam.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** playercam.c 27 Apr 2006 02:36:59 -0000 1.10
--- playercam.c 12 May 2006 21:34:09 -0000 1.11
***************
*** 95,98 ****
--- 95,99 ----
int16_t g_blobfinder_index = 0;
int16_t g_rate = 30;
+ int16_t g_transport = PLAYERC_TRANSPORT_TCP;
playerc_client_t* g_client = NULL;
***************
*** 119,123 ****
{
int ch=0, errflg=0;
! const char* optflags = "i:h:p:r:b:";
while((ch=getopt(argc, argv, optflags))!=-1)
--- 120,124 ----
{
int ch=0, errflg=0;
! const char* optflags = "i:h:p:r:b:t:";
while((ch=getopt(argc, argv, optflags))!=-1)
***************
*** 138,141 ****
--- 139,153 ----
g_rate = atoi(optarg);
break;
+ case 't':
+ if(!strcasecmp(optarg,"tcp"))
+ g_transport = PLAYERC_TRANSPORT_TCP;
+ else if(!strcasecmp(optarg,"udp"))
+ g_transport = PLAYERC_TRANSPORT_UDP;
+ else
+ {
+ printf("unknown transport \"%s\"", optarg);
+ return(-1);
+ }
+ break;
case 'b':
g_blobfinder_index = atoi(optarg);
***************
*** 163,167 ****
" -i <index> : the index of the camera\n"
" -b <index> : the index of the blobfinder\n"
! " -r <rate> : the refresh rate of the video\n\n"
"Currently supports RGB888 and 8-bit grey scale images.\n\n");
}
--- 175,180 ----
" -i <index> : the index of the camera\n"
" -b <index> : the index of the blobfinder\n"
! " -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");
}
***************
*** 346,349 ****
--- 359,363 ----
// be running on "localhost" at port 6665
g_client = playerc_client_create(NULL, g_hostname, g_port);
+ playerc_client_set_transport(g_client, g_transport);
if (0 != playerc_client_connect(g_client))
{
***************
*** 484,488 ****
{
g_print("ERROR reading player g_client\n");
! exit(-1);
}
}
--- 498,502 ----
{
g_print("ERROR reading player g_client\n");
! //exit(-1);
}
}
-------------------------------------------------------
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