[xiph-commits] r14193 -
experimental/ribamar/etheora/examples/client-server-sdl
ribamar at svn.xiph.org
ribamar at svn.xiph.org
Mon Nov 19 12:38:23 PST 2007
Author: ribamar
Date: 2007-11-19 12:38:23 -0800 (Mon, 19 Nov 2007)
New Revision: 14193
Modified:
experimental/ribamar/etheora/examples/client-server-sdl/client-decoder.c
experimental/ribamar/etheora/examples/client-server-sdl/server-encoder.c
Log:
updating comments in server-encoder
Modified: experimental/ribamar/etheora/examples/client-server-sdl/client-decoder.c
===================================================================
--- experimental/ribamar/etheora/examples/client-server-sdl/client-decoder.c 2007-11-19 20:33:23 UTC (rev 14192)
+++ experimental/ribamar/etheora/examples/client-server-sdl/client-decoder.c 2007-11-19 20:38:23 UTC (rev 14193)
@@ -1,7 +1,7 @@
/*Copyright, 2007, by Ribamar Santarosa, ribamar at gmail.com */
/*
- a bit more sofisticated theora video decoder using etheora. this
+ a simple theora video decoder using etheora. this
example is an client which reads data from a (encoder) server. data
is read from the server though a socket. Video is outputted
into an SDL window.
Modified: experimental/ribamar/etheora/examples/client-server-sdl/server-encoder.c
===================================================================
--- experimental/ribamar/etheora/examples/client-server-sdl/server-encoder.c 2007-11-19 20:33:23 UTC (rev 14192)
+++ experimental/ribamar/etheora/examples/client-server-sdl/server-encoder.c 2007-11-19 20:38:23 UTC (rev 14193)
@@ -3,6 +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.
usage: ./server-encoder [port]
port - a tcp port where to listen incomming connections. it not
@@ -25,7 +27,7 @@
#include <netdb.h>
-#define NUMBER_OF_FRAMES 200 /* video with 20 frames.*/
+#define NUMBER_OF_FRAMES 200 /* video with 200 frames.*/
#define PORT 4443 /* tcp port where to listen. */
int tcp_listen(FILE *finfo, int port) {
More information about the commits
mailing list