87 |
static int dec_stop(); |
static int dec_stop(); |
88 |
static void usage(); |
static void usage(); |
89 |
static int write_image(char *prefix, unsigned char *image); |
static int write_image(char *prefix, unsigned char *image); |
|
static int write_tga(char *filename, unsigned char *image); |
|
90 |
static int write_pnm(char *filename, unsigned char *image); |
static int write_pnm(char *filename, unsigned char *image); |
91 |
|
static int write_tga(char *filename, unsigned char *image); |
92 |
|
|
93 |
const char * type2str(int type) |
const char * type2str(int type) |
94 |
{ |
{ |
186 |
|
|
187 |
#if defined(_MSC_VER) |
#if defined(_MSC_VER) |
188 |
if (ARG_INPUTFILE==NULL) { |
if (ARG_INPUTFILE==NULL) { |
189 |
fprintf(stderr, "Warning: MSVC build does not read correctly from stdin. Use the -i switch.\n\n"); |
fprintf(stderr, "Warning: MSVC build does not read EOF correctly from stdin. Use the -i switch.\n\n"); |
190 |
} |
} |
191 |
#endif |
#endif |
192 |
|
|
412 |
printf("Nothing was decoded!\n"); |
printf("Nothing was decoded!\n"); |
413 |
} |
} |
414 |
|
|
|
|
|
415 |
/***************************************************************************** |
/***************************************************************************** |
416 |
* XviD PART Stop |
* XviD PART Stop |
417 |
****************************************************************************/ |
****************************************************************************/ |
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 |
|
|
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 |
****************************************************************************/ |
****************************************************************************/ |
636 |
xvid_gbl_init_t xvid_gbl_init; |
xvid_gbl_init_t xvid_gbl_init; |
637 |
xvid_dec_create_t xvid_dec_create; |
xvid_dec_create_t xvid_dec_create; |
638 |
|
|
639 |
|
/* Reset the structure with zeros */ |
640 |
|
memset(&xvid_gbl_init, 0, sizeof(xvid_gbl_init_t)); |
641 |
|
memset(&xvid_dec_create, 0, sizeof(xvid_dec_create_t)); |
642 |
|
|
643 |
/*------------------------------------------------------------------------ |
/*------------------------------------------------------------------------ |
644 |
* XviD core initialization |
* XviD core initialization |
645 |
*----------------------------------------------------------------------*/ |
*----------------------------------------------------------------------*/ |