summaryrefslogtreecommitdiff
path: root/render/scale.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-26 07:49:51 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-26 07:49:51 +0100
commit2235b780ce692e1393fdd925eea0cdd9e1a422a1 (patch)
tree3127ba97ac8344622b546263024605016d74180d /render/scale.c
parent15c3754cf0f156f9e98fa60dcc89b69b0f011643 (diff)
downloadmupdf-2235b780ce692e1393fdd925eea0cdd9e1a422a1.tar.xz
special versions of duff_*. dynamic object comparison.
Diffstat (limited to 'render/scale.c')
-rw-r--r--render/scale.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/render/scale.c b/render/scale.c
index 461f5100..01ebec2d 100644
--- a/render/scale.c
+++ b/render/scale.c
@@ -1,5 +1,7 @@
#include <fitz.h>
+/* TODO: these should go in fz_rastfuncs */
+
typedef void (*rowfunc)(unsigned char *src, unsigned char *dst, int w, int ncomp, int denom);
typedef void (*colfunc)(unsigned char *src, unsigned char *dst, int w, int ncomp, int denom);
@@ -119,7 +121,7 @@ scalecols(unsigned char *src, unsigned char *dst, int w, int ncomp, int denom)
static void
scalecols1(unsigned char *src, unsigned char *dst, int w, int ncomp, int denom)
{
- int x, y, k;
+ int x, y;
unsigned char *s;
int sum;
@@ -136,7 +138,7 @@ scalecols1(unsigned char *src, unsigned char *dst, int w, int ncomp, int denom)
static void
scalecols2(unsigned char *src, unsigned char *dst, int w, int ncomp, int denom)
{
- int x, y, k;
+ int x, y;
unsigned char *s;
int sum0, sum1;