From f520170adf06dc5b7861e72767a4c96574caa3a1 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 20 Dec 2000 11:08:30 +0000 Subject: [PATCH] suppressed hack from SRS --- jpeg/Makefile | 4 ++-- jpeg/jcdctmgr.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jpeg/Makefile b/jpeg/Makefile index 6617a24d35..02279d4498 100644 --- a/jpeg/Makefile +++ b/jpeg/Makefile @@ -53,7 +53,7 @@ MV= mv # library (.a) file creation command AR= ar rc # second step in .a creation (use "touch" if not needed) -AR2= ranlib +RANLIB= ranlib # installation program INSTALL= /bin/install -c INSTALL_PROGRAM= $(INSTALL) @@ -124,7 +124,7 @@ ansi2knr: ansi2knr.c libjpeg.a: $(LIBOBJECTS) $(RM) libjpeg.a $(AR) libjpeg.a $(LIBOBJECTS) - $(AR2) libjpeg.a + $(RANLIB) libjpeg.a cjpeg: $(COBJECTS) libjpeg.a $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS) diff --git a/jpeg/jcdctmgr.c b/jpeg/jcdctmgr.c index ca45d34a96..b29121e129 100644 --- a/jpeg/jcdctmgr.c +++ b/jpeg/jcdctmgr.c @@ -242,12 +242,14 @@ forward_DCT (j_compress_ptr cinfo, jpeg_component_info * compptr, for (i = 0; i < DCTSIZE2; i++) { qval = divisors[i]; -/* SRS Hack to get values */ temp = workspace[ZAG[i]]; +#if 0 +/* SRS Hack to get values */ if (bi==0) { printf("%d ",temp); if ((i+1)%8==0) printf("\n"); } +#endif /* Divide the coefficient value by qval, ensuring proper rounding. * Since C does not specify the direction of rounding for negative * quotients, we have to force the dividend positive for portability. -- GitLab