summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c13
1 files changed, 12 insertions, 1 deletions
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 <stdlib.h>
#include <stdio.h>
+
+#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;
+
/*******************************************************************************************/