[svn] / trunk / xvidcore / examples / xvid_decraw.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/examples/xvid_decraw.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1441, Tue Apr 20 06:10:40 2004 UTC revision 1442, Tue Apr 20 19:47:00 2004 UTC
# Line 20  Line 20 
20   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
21   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22   *   *
23   * $Id: xvid_decraw.c,v 1.14 2004-04-15 19:44:05 edgomez Exp $   * $Id: xvid_decraw.c,v 1.15 2004-04-20 19:47:00 edgomez Exp $
24   *   *
25   ****************************************************************************/   ****************************************************************************/
26    
# Line 79  Line 79 
79   ****************************************************************************/   ****************************************************************************/
80    
81  static double msecond();  static double msecond();
 static int write_pgm(char *filename,  
                                          unsigned char *image);  
82  static int dec_init(int use_assembler, int debug_level);  static int dec_init(int use_assembler, int debug_level);
83  static int dec_main(unsigned char *istream,  static int dec_main(unsigned char *istream,
84                                          unsigned char *ostream,                                          unsigned char *ostream,
# Line 88  Line 86 
86                                          xvid_dec_stats_t *xvid_dec_stats);                                          xvid_dec_stats_t *xvid_dec_stats);
87  static int dec_stop();  static int dec_stop();
88  static void usage();  static void usage();
89  int write_image(char *prefix, unsigned char *image);  static int write_image(char *prefix, unsigned char *image);
90  int write_pnm(char *filename, unsigned char *image);  static int write_pnm(char *filename, unsigned char *image);
91  int write_tga(char *filename, unsigned char *image);  static int write_tga(char *filename, unsigned char *image);
92    
93  const char * type2str(int type)  const char * type2str(int type)
94  {  {
# Line 351  Line 349 
349                          sprintf(filename, "%sdec%05d", filepath, filenr);                          sprintf(filename, "%sdec%05d", filepath, filenr);
350                          if(write_image(filename, out_buffer)) {                          if(write_image(filename, out_buffer)) {
351                                  fprintf(stderr,                                  fprintf(stderr,
352                                                  "Error writing decoded PGM frame %s\n",                                                  "Error writing decoded frame %s\n",
353                                                  filename);                                                  filename);
354                          }                          }
355                  }                  }
# Line 476  Line 474 
474   *              output functions   *              output functions
475   ****************************************************************************/   ****************************************************************************/
476    
477  int write_image(char *prefix, unsigned char *image)  static int write_image(char *prefix, unsigned char *image)
478  {  {
479          char filename[1024];          char filename[1024];
480          char *ext;          char *ext;
# Line 504  Line 502 
502          return(ret);          return(ret);
503  }  }
504    
505  int write_tga(char *filename, unsigned char *image)  static int write_tga(char *filename, unsigned char *image)
506  {  {
507          FILE * f;          FILE * f;
508          char hdr[18];          char hdr[18];
# Line 585  Line 583 
583          return(0);          return(0);
584  }  }
585    
586  int write_pnm(char *filename, unsigned char *image)  static int write_pnm(char *filename, unsigned char *image)
587  {  {
588          FILE * f;          FILE * f;
589    
# Line 624  Line 622 
622    
623          return 0;          return 0;
624  }  }
625    
626  /*****************************************************************************  /*****************************************************************************
627   * Routines for decoding: init decoder, use, and stop decoder   * Routines for decoding: init decoder, use, and stop decoder
628   ****************************************************************************/   ****************************************************************************/

Legend:
Removed from v.1441  
changed lines
  Added in v.1442

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4