[Gdal-dev] jjpgdataset.cpp quantization tables

dburken at comcast.net dburken at comcast.net
Thu May 10 10:36:53 EDT 2007


Hi Frank,

Hey I think there's a typo here (at least the array size), but you should check it, my eyes are going:)

See below,
Dave


I think:

This:
> 
> const static int Q1table[256] = 
> {
>     8,    72,     72,     72,    72,    72,    72,    72,    72,    72,
>     78,    74,     76,    74,    78,    89,    81,    84,    84,    81,
>     89,    106,    93,    94,    99,    94,    93,    106,    129,    111,
>     108,    116,    116,    108,    111,    129,    135,    128,    136,    
>     145,    136,    128,    135,    155,    160,    177,    177,    160,
>     155,    193,    213,    228,    213,    193,    255,    255,    255,    
>     255
> };
> 
Should be this:
> 
> const static int Q1table[64] = 
> {
>    8,    72,  72,  72,  72,  72,  72,  72, // 0 - 7
>    72,   72,  78,  74,  76,  74,  78,  89, // 8 - 15
>    81,   84,  84,  81,  89, 106,  93,  94, // 16 - 23
>    99,   94,  93, 106, 129, 111, 108, 116, // 24 - 31
>    116, 108, 111, 129, 135, 128, 136, 145, // 32 - 39
>    136, 128, 135, 155, 160, 177, 177, 160, // 40 - 47
>    155, 193, 213, 228, 213, 193, 255, 255, // 48 - 55
>    255, 255, 255, 255, 255, 255, 255, 255  // 56 - 63
> };




More information about the Gdal-dev mailing list