From b40323cc5eda96237399181aa2b7251813d113f8 Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 7 May 2005 10:56:18 +0000 Subject: Changed print outs --- src/mov_encoder.cc | 9 ++++++--- src/server.cc | 20 ++++++++++++-------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/mov_encoder.cc b/src/mov_encoder.cc index bce80f7..f9d47e7 100644 --- a/src/mov_encoder.cc +++ b/src/mov_encoder.cc @@ -39,6 +39,9 @@ /* * $Log$ + * Revision 1.14 2005/05/07 10:56:18 deva + * Changed print outs + * * Revision 1.13 2005/05/07 10:25:34 deva * * Removed ffmpeg code from img_encoder and corrected decoding errors in mov_encoder @@ -142,8 +145,8 @@ MovEncoder::MovEncoder(const char *filename) // frame_rate_num/frame_rate_den specify the number of frames per second for // playback. - fame_par.frame_rate_num = 10;//25; // 25 / 1 fps = 25 fps - fame_par.frame_rate_den = 30000;//1; + fame_par.frame_rate_num = 25; // 25 / 1 fps = 25 fps + fame_par.frame_rate_den = 1; // shape_quality is percentage determing the average binary shape accuracy in // video with arbitrary shape. @@ -156,7 +159,7 @@ MovEncoder::MovEncoder(const char *filename) // verbose when set to 1 outputs information on copyright, modules used and // current frame on standard error. - fame_par.verbose = 0; + fame_par.verbose = 1; fame_init(fame_context, &fame_par, fame_buffer, FAME_BUFFER_SIZE); // FIXME: fame_init return a new context, or NULL if an error occurred. diff --git a/src/server.cc b/src/server.cc index d91a4e5..7d6127d 100644 --- a/src/server.cc +++ b/src/server.cc @@ -31,6 +31,9 @@ /* * $Log$ + * Revision 1.12 2005/05/07 10:56:18 deva + * Changed print outs + * * Revision 1.11 2005/05/03 08:31:59 deva * Removed the error object, and replaced it with a more generic info object. * @@ -288,14 +291,15 @@ void newConnection(Socket *socket) sprintf(cpr, h.header.h_data.cpr); hasCpr = true; } - - printf("Read: %d bytes ", ret); - printf("\ttyp: %d ", h.header_type); - printf("\tcpr: %s ", cpr); - printf("\tfrz: %d ", h.header.h_data.freeze); - printf("\tsht: %d ", h.header.h_data.snapshot); - printf("\tsave: %d\n", h.header.h_data.savestate); - + + // printf("Read: %d bytes ", ret); + // printf("typ: %d ", h.header_type); + fprintf(stdout, "cpr: %s ", cpr); + fprintf(stdout, "frz: %d ", h.header.h_data.freeze); + fprintf(stdout, "sht: %d ", h.header.h_data.snapshot); + fprintf(stdout, "save: %d ", h.header.h_data.savestate); + fflush(stdout); + if(h.header.h_data.snapshot) { if(freeze_frame) { saveFrameAsImage(cpr, freeze_frame); -- cgit v1.2.3