From f3e44224f0fb320119fe585804d62aa4b0eea106 Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Thu, 9 Jun 2005 13:49:22 +0000 Subject: changed name of qantization table --- src/main.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 274dfbf..e4b8ec4 100644 --- a/src/main.c +++ b/src/main.c @@ -1,4 +1,10 @@ +#include #include + +#include "morecfg.h" +#include "jpeglib.h" + + #include "dct.h" #include "bmpjpeg.h" #include "bmp.h" @@ -13,8 +19,10 @@ unsigned char Image1[MAXCOLS*3*MAXROWS+HEADER]; unsigned char Image2[MAXCOLS*3*MAXROWS+HEADER]; +JQUANT_TBL qtbl; + unsigned char quan_data[64] = { - 8, 6, 6, 7, 6, 5, 8, 7, + 8, 6, 6, 7, 6, 5, 8, 7, 7, 7, 9, 9, 8, 10, 12, 20, 13, 12, 11, 11, 12, 25, 18, 19, 15, 20, 29, 26, 31, 30, 29, 26, @@ -36,6 +44,9 @@ int main(int argc, char *argv[]) { FILE *fI, *fO; + memcpy(quan_data, qtbl.quantval, (size_t)64 * sizeof(UINT16)); + qtbl.sent_table = FALSE; + /*******************************************************************************************/ -- cgit v0.12