Mercurial > libavcodec.hg
comparison imgresample.c @ 8042:e70975d5ff80 libavcodec
uses FF_ARRAY_ELEMS() where appropriate
author | aurel |
---|---|
date | Tue, 21 Oct 2008 21:40:24 +0000 |
parents | 4ce4a18cae8e |
children | 0d108ec85620 |
comparison
equal
deleted
inserted
replaced
8041:24761747ac3d | 8042:e70975d5ff80 |
---|---|
788 } | 788 } |
789 img[(YSIZE - y) * XSIZE + (XSIZE - x)] = v; | 789 img[(YSIZE - y) * XSIZE + (XSIZE - x)] = v; |
790 } | 790 } |
791 } | 791 } |
792 save_pgm("/tmp/in.pgm", img, XSIZE, YSIZE); | 792 save_pgm("/tmp/in.pgm", img, XSIZE, YSIZE); |
793 for(i=0;i<sizeof(factors)/sizeof(float);i++) { | 793 for(i=0;i<FF_ARRAY_ELEMS(factors);i++) { |
794 fact = factors[i]; | 794 fact = factors[i]; |
795 xsize = (int)(XSIZE * fact); | 795 xsize = (int)(XSIZE * fact); |
796 ysize = (int)((YSIZE - 100) * fact); | 796 ysize = (int)((YSIZE - 100) * fact); |
797 s = img_resample_full_init(xsize, ysize, XSIZE, YSIZE, 50 ,50, 0, 0, 0, 0, 0, 0); | 797 s = img_resample_full_init(xsize, ysize, XSIZE, YSIZE, 50 ,50, 0, 0, 0, 0, 0, 0); |
798 av_log(NULL, AV_LOG_INFO, "Factor=%0.2f\n", fact); | 798 av_log(NULL, AV_LOG_INFO, "Factor=%0.2f\n", fact); |