[xiph-commits] r14195 - experimental/ribamar/etheora/examples/client-server-sdl

ribamar at svn.xiph.org ribamar at svn.xiph.org
Mon Nov 19 13:35:33 PST 2007


Author: ribamar
Date: 2007-11-19 13:35:32 -0800 (Mon, 19 Nov 2007)
New Revision: 14195

Modified:
   experimental/ribamar/etheora/examples/client-server-sdl/README.txt
   experimental/ribamar/etheora/examples/client-server-sdl/client-decoder.c
   experimental/ribamar/etheora/examples/client-server-sdl/server-encoder.c
Log:
avoiding rgb conversion (not working right)

Modified: experimental/ribamar/etheora/examples/client-server-sdl/README.txt
===================================================================
--- experimental/ribamar/etheora/examples/client-server-sdl/README.txt	2007-11-19 21:23:39 UTC (rev 14194)
+++ experimental/ribamar/etheora/examples/client-server-sdl/README.txt	2007-11-19 21:35:32 UTC (rev 14195)
@@ -1,6 +1,6 @@
 
 this example features 2 programs: a server that encodes some data and accepts
-a connection from a client and a client that connects to that server, get 
+a connection from clients and a client that connects to that server, get 
 data and draw it into an SDL window. 
 
 

Modified: experimental/ribamar/etheora/examples/client-server-sdl/client-decoder.c
===================================================================
--- experimental/ribamar/etheora/examples/client-server-sdl/client-decoder.c	2007-11-19 21:23:39 UTC (rev 14194)
+++ experimental/ribamar/etheora/examples/client-server-sdl/client-decoder.c	2007-11-19 21:35:32 UTC (rev 14195)
@@ -34,7 +34,7 @@
 #include <netdb.h>
 
 
-#define YUV_DECODING 1
+//#define YUV_DECODING 1
 //#define OVERLAY 1
 
 int tcp_socket_connect(char *host, int port, FILE *finfo){
@@ -240,7 +240,7 @@
 
 				  Uint32 a = 0; 
 				  a = (Uint32) 0
-				  	 // + (((Uint32)y) << 2) 
+				  	  + (((Uint32)y) << 3)*0
 				  	  + (((Uint32)y) << 2) 
 					  + (((Uint32)u) << 1) 
 					  + (((Uint32)v) << 0); 

Modified: experimental/ribamar/etheora/examples/client-server-sdl/server-encoder.c
===================================================================
--- experimental/ribamar/etheora/examples/client-server-sdl/server-encoder.c	2007-11-19 21:23:39 UTC (rev 14194)
+++ experimental/ribamar/etheora/examples/client-server-sdl/server-encoder.c	2007-11-19 21:35:32 UTC (rev 14195)
@@ -3,8 +3,8 @@
 /*a very simple theora video encoder using etheora api.
   play with etheora_enc_rgb_draw() r, g, b parameters and get
   different videos. 
-  this example is a server which accepts a connection from a single
-  client, and sends it ogg data. 
+  this example is a server which accepts a connection from
+  clients, and sends it ogg data. 
   
   usage: ./server-encoder [port] 
   port - a tcp port where to listen incomming connections. it not
@@ -83,6 +83,7 @@
 		fprintf(stderr, "usage: \n%s [PORT]\n", args[0]);
 		return 1; 
 	}
+
 while(1){ /* forked while */
 	if( (fout_fd = accept(sock, 0, 0) ) < 0 ){
 		fprintf(stderr, "Can't accept connection.\n");



More information about the commits mailing list