Mercurial > libavcodec.hg
comparison imgresample.c @ 2846:40765c51a7a9 libavcodec
Compilation fixes part 1 patch by (Arvind R. and Burkhard Plaum, plaum, ipf uni-stuttgart de)
author | michael |
---|---|
date | Fri, 26 Aug 2005 19:05:44 +0000 |
parents | 87b7fbed8609 |
children | 84404858c529 |
comparison
equal
deleted
inserted
replaced
2845:d9f4b93e81c5 | 2846:40765c51a7a9 |
---|---|
641 uint8_t img1[XSIZE1 * YSIZE1]; | 641 uint8_t img1[XSIZE1 * YSIZE1]; |
642 uint8_t img2[XSIZE1 * YSIZE1]; | 642 uint8_t img2[XSIZE1 * YSIZE1]; |
643 | 643 |
644 void save_pgm(const char *filename, uint8_t *img, int xsize, int ysize) | 644 void save_pgm(const char *filename, uint8_t *img, int xsize, int ysize) |
645 { | 645 { |
646 #undef fprintf | |
646 FILE *f; | 647 FILE *f; |
647 f=fopen(filename,"w"); | 648 f=fopen(filename,"w"); |
648 fprintf(f,"P5\n%d %d\n%d\n", xsize, ysize, 255); | 649 fprintf(f,"P5\n%d %d\n%d\n", xsize, ysize, 255); |
649 fwrite(img,1, xsize * ysize,f); | 650 fwrite(img,1, xsize * ysize,f); |
650 fclose(f); | 651 fclose(f); |
652 #define fprintf please_use_av_log | |
651 } | 653 } |
652 | 654 |
653 static void dump_filter(int16_t *filter) | 655 static void dump_filter(int16_t *filter) |
654 { | 656 { |
655 int i, ph; | 657 int i, ph; |