#define QTABLE_SIZE 64 /// number of elements in quantization table
#define QTABLE_HEAD_CACHE 8 /// number of quantization pairs in cache (just for generation of JPEG headers)
staticunsignedintstd_quant_tbls[4*QTABLE_SIZE]={/// make it possible to modify runtime later?
staticunsignedintstd_quant_tbls[4*QTABLE_SIZE]={/// make it possible to modify runtime later?
16,11,10,16,24,40,51,61,
12,12,14,19,26,58,60,55,
...
...
@@ -148,7 +102,7 @@
99,99,99,99,99,99,99,99,
99,99,99,99,99,99,99,99,
///transposed for portrait mode
///transposed for portrait mode
16,12,14,14,18,24,49,72,
11,12,13,17,22,35,64,92,
...
...
@@ -168,69 +122,105 @@
99,99,99,99,99,99,99,99,
99,99,99,99,99,99,99,99
};
};
/// with a number of programmed tables equal to PARS_FRAMES, and that "this" table is not needed it will always be possible to find an unused table slot