Skip to content
Snippets Groups Projects
Commit f520170a authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

suppressed hack from SRS

parent 7ab3262a
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ MV= mv ...@@ -53,7 +53,7 @@ MV= mv
# library (.a) file creation command # library (.a) file creation command
AR= ar rc AR= ar rc
# second step in .a creation (use "touch" if not needed) # second step in .a creation (use "touch" if not needed)
AR2= ranlib RANLIB= ranlib
# installation program # installation program
INSTALL= /bin/install -c INSTALL= /bin/install -c
INSTALL_PROGRAM= $(INSTALL) INSTALL_PROGRAM= $(INSTALL)
...@@ -124,7 +124,7 @@ ansi2knr: ansi2knr.c ...@@ -124,7 +124,7 @@ ansi2knr: ansi2knr.c
libjpeg.a: $(LIBOBJECTS) libjpeg.a: $(LIBOBJECTS)
$(RM) libjpeg.a $(RM) libjpeg.a
$(AR) libjpeg.a $(LIBOBJECTS) $(AR) libjpeg.a $(LIBOBJECTS)
$(AR2) libjpeg.a $(RANLIB) libjpeg.a
cjpeg: $(COBJECTS) libjpeg.a cjpeg: $(COBJECTS) libjpeg.a
$(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS) $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
......
...@@ -242,12 +242,14 @@ forward_DCT (j_compress_ptr cinfo, jpeg_component_info * compptr, ...@@ -242,12 +242,14 @@ forward_DCT (j_compress_ptr cinfo, jpeg_component_info * compptr,
for (i = 0; i < DCTSIZE2; i++) { for (i = 0; i < DCTSIZE2; i++) {
qval = divisors[i]; qval = divisors[i];
/* SRS Hack to get values */
temp = workspace[ZAG[i]]; temp = workspace[ZAG[i]];
#if 0
/* SRS Hack to get values */
if (bi==0) { if (bi==0) {
printf("%d ",temp); printf("%d ",temp);
if ((i+1)%8==0) printf("\n"); if ((i+1)%8==0) printf("\n");
} }
#endif
/* Divide the coefficient value by qval, ensuring proper rounding. /* Divide the coefficient value by qval, ensuring proper rounding.
* Since C does not specify the direction of rounding for negative * Since C does not specify the direction of rounding for negative
* quotients, we have to force the dividend positive for portability. * quotients, we have to force the dividend positive for portability.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment