#
# NAME:
#	jpeg_table1.tab
#
#	data source /usr/users/shine/ana/le94f1w6302m90rcpn0001.strt3d
#	first 8 cells
#	uses dct5 type of dct computation
# HISTORY:
#	Created 5-Dec-96 by M.Morrison
#		(from "NUMS4.TXT" file on PC floppy from R.Lindgen)
#	30-Jan-97 (MDM) - Added DC entry which was missing (had
#			  padded it with a 0 back in Dec)
#
#the Q's, however, we really don't divide by these but multiply by 2^14/q and
#then shift 14
#in zig zag order
#       0x8       0x6       0x6       0x6       0x6       0x6       0x8       0x7
#       0x7       0x8       0xb       0x9       0x8       0x9       0xb      0x10
#       0xc       0xc       0xc       0xc      0x10      0x19      0x17      0x13
#       0xf      0x13      0x17      0x19      0x21      0x1f      0x1c      0x1b
#      0x1b      0x1c      0x1f      0x21      0x25      0x25      0x26      0x22
#      0x26      0x25      0x25      0x26      0x2a      0x30      0x30      0x2a
#      0x26      0x28      0x34      0x34      0x34      0x28      0x2f      0x3b
#      0x3b      0x2f      0x30      0x3c      0x30      0x33      0x33      0x32
#the 2^14/Q values are what we really use, these are below:
#in zig zag order
--- Q

     0x800     0xaaa     0xaaa     0xaaa     0xaaa     0xaaa     0x800     0x924
     0x924     0x800     0x5d1     0x71c     0x800     0x71c     0x5d1     0x400
     0x555     0x555     0x555     0x555     0x400     0x28f     0x2c8     0x35e
     0x444     0x35e     0x2c8     0x28f     0x1f0     0x210     0x249     0x25e
     0x25e     0x249     0x210     0x1f0     0x1ba     0x1ba     0x1af     0x1e1
     0x1af     0x1ba     0x1ba     0x1af     0x186     0x155     0x155     0x186
     0x1af     0x199     0x13b     0x13b     0x13b     0x199     0x15c     0x115
     0x115     0x15c     0x155     0x111     0x155     0x141     0x141     0x147
#
#8 cells of data each 8x8
#
#     0x2d3     0x2d3     0x2d3     0x2cb     0x2bb     0x2b4     0x2b5     0x2b5
#     0x2cd     0x2cd     0x2cd     0x2c9     0x2bb     0x2b4     0x2b4     0x2b6
#     0x2c6     0x2c6     0x2c6     0x2c6     0x2c1     0x2bb     0x2b9     0x2bc
#     0x2c4     0x2c4     0x2c4     0x2bf     0x2be     0x2be     0x2be     0x2c0
#     0x2bd     0x2bd     0x2bd     0x2b8     0x2b9     0x2be     0x2c1     0x2c6
#     0x2b7     0x2b7     0x2b7     0x2b9     0x2c1     0x2c7     0x2ca     0x2d2
#     0x2c1     0x2c1     0x2c1     0x2ca     0x2d6     0x2d8     0x2d8     0x2df
#     0x2d4     0x2d4     0x2d4     0x2e4     0x2ee     0x2ea     0x2e9     0x2ee
 
#     0x2b8     0x2bd     0x2c4     0x2cb     0x2d5     0x2db     0x2d9     0x2dd
#     0x2b8     0x2bc     0x2c6     0x2d0     0x2d6     0x2d3     0x2d4     0x2dc
#     0x2be     0x2c3     0x2c9     0x2d1     0x2d6     0x2d5     0x2d3     0x2d8
#     0x2c6     0x2cd     0x2d0     0x2cf     0x2d1     0x2d5     0x2d2     0x2d4
#     0x2cf     0x2d7     0x2d5     0x2ce     0x2ca     0x2ce     0x2d1     0x2d2
#     0x2da     0x2de     0x2db     0x2d2     0x2c9     0x2c8     0x2cc     0x2cc
#     0x2e4     0x2e6     0x2e4     0x2d9     0x2cc     0x2c6     0x2c3     0x2c2
#     0x2ed     0x2eb     0x2ec     0x2e4     0x2d4     0x2c9     0x2bf     0x2bd
 
#     0x2e0     0x2df     0x2e6     0x2ef     0x2f1     0x2f5     0x2fa     0x2f9
#     0x2e2     0x2e5     0x2eb     0x2ef     0x2f1     0x2f2     0x2f3     0x2f2
#     0x2e2     0x2ec     0x2ed     0x2ed     0x2f1     0x2f1     0x2ee     0x2eb
#     0x2e0     0x2eb     0x2ed     0x2ed     0x2ef     0x2ec     0x2ea     0x2e8
#     0x2d7     0x2de     0x2e5     0x2eb     0x2ea     0x2e6     0x2e6     0x2e8
#     0x2ce     0x2d4     0x2dc     0x2e4     0x2e5     0x2e5     0x2ea     0x2f0
#     0x2ca     0x2d5     0x2da     0x2de     0x2e4     0x2ed     0x2f6     0x2fb
#     0x2c7     0x2d4     0x2dc     0x2e2     0x2ec     0x2f8     0x2fe     0x2fd
 
#     0x2f2     0x2e7     0x2dd     0x2cb     0x2c2     0x2ba     0x2b1     0x2b3
#     0x2e8     0x2e0     0x2da     0x2cc     0x2c9     0x2c5     0x2be     0x2c0
#     0x2e2     0x2de     0x2da     0x2d3     0x2d2     0x2d2     0x2cb     0x2c6
#     0x2e3     0x2e1     0x2dd     0x2d7     0x2dc     0x2e0     0x2d8     0x2cc
#     0x2e8     0x2e9     0x2e3     0x2df     0x2e5     0x2ec     0x2e5     0x2d9
#     0x2f4     0x2f1     0x2ed     0x2ef     0x2f2     0x2f1     0x2ed     0x2e5
#     0x2fb     0x2f6     0x2f7     0x2fd     0x2ff     0x2f8     0x2f0     0x2ec
#     0x2fc     0x2fa     0x2fb     0x300     0x305     0x302     0x2f7     0x2f3
 
#     0x2bc     0x2c0     0x2c6     0x2cf     0x2d6     0x2d7     0x2d3     0x2d1
#     0x2c5     0x2c6     0x2cb     0x2d4     0x2da     0x2da     0x2d2     0x2cf
#     0x2c8     0x2ce     0x2d4     0x2d6     0x2da     0x2da     0x2d2     0x2cd
#     0x2cd     0x2d6     0x2d7     0x2d2     0x2d6     0x2d9     0x2d4     0x2ce
#     0x2d6     0x2da     0x2d8     0x2d2     0x2d3     0x2d9     0x2d8     0x2d0
#     0x2df     0x2df     0x2e0     0x2dd     0x2db     0x2dc     0x2db     0x2d6
#     0x2e8     0x2e6     0x2e5     0x2e6     0x2e5     0x2df     0x2dd     0x2e0
#     0x2f1     0x2ec     0x2e8     0x2e7     0x2e7     0x2e3     0x2e5     0x2e9
 
#     0x2d6     0x2d3     0x2c9     0x2d3     0x2d7     0x2da     0x2dd     0x2dd
#     0x2d0     0x2cb     0x2c9     0x2d5     0x2d7     0x2d4     0x2d5     0x2d8
#     0x2c9     0x2c6     0x2ce     0x2dc     0x2da     0x2d1     0x2cd     0x2d6
#     0x2ca     0x2c9     0x2cf     0x2d9     0x2db     0x2d4     0x2d0     0x2d6
#     0x2cc     0x2ce     0x2d2     0x2d7     0x2db     0x2d6     0x2d1     0x2d1
#     0x2d2     0x2d3     0x2d6     0x2d8     0x2d8     0x2d4     0x2cf     0x2cb
#     0x2e1     0x2dd     0x2db     0x2db     0x2d7     0x2d4     0x2ce     0x2ce
#     0x2e9     0x2e8     0x2e8     0x2e5     0x2dd     0x2d4     0x2ce     0x2d2
 
#     0x2d3     0x2ca     0x2cb     0x2ce     0x2cd     0x2d2     0x2dd     0x2e5
#     0x2d9     0x2d4     0x2d5     0x2d6     0x2d2     0x2d6     0x2e3     0x2ec
#     0x2e1     0x2e0     0x2dd     0x2e1     0x2e0     0x2e1     0x2ea     0x2f3
#     0x2e3     0x2e4     0x2e0     0x2e4     0x2ea     0x2ee     0x2f3     0x2f4
#     0x2db     0x2e3     0x2e2     0x2e1     0x2e7     0x2f0     0x2f4     0x2f2
#     0x2d4     0x2e1     0x2e4     0x2e0     0x2e2     0x2eb     0x2f2     0x2f1
#     0x2d7     0x2df     0x2e0     0x2dd     0x2df     0x2e9     0x2f2     0x2ef
#     0x2d9     0x2da     0x2d8     0x2d9     0x2df     0x2e7     0x2ed     0x2eb
 
#     0x2ea     0x2e7     0x2db     0x2d2     0x2d2     0x2d2     0x2d0     0x2d5
#     0x2ee     0x2e8     0x2e2     0x2e2     0x2e0     0x2dd     0x2dd     0x2eb
#     0x2f2     0x2ec     0x2ea     0x2ed     0x2eb     0x2e9     0x2ed     0x2f3
#     0x2f5     0x2f3     0x2f2     0x2f2     0x2f2     0x2f3     0x2f9     0x2fa
#     0x2f3     0x2f5     0x2f5     0x2f7     0x2fc     0x2fa     0x2fc     0x304
#     0x2ef     0x2f3     0x2f8     0x2fe     0x306     0x300     0x2fb     0x306
#     0x2eb     0x2ef     0x2f9     0x2fd     0x302     0x300     0x2fe     0x305
#     0x2e6     0x2e8     0x2f2     0x2f7     0x2f7     0x2fc     0x307     0x305

#the DCT's for each cell, 8 cells

--- Q-DCT

    0xfac7         0    0xfff7       0xa       0xc         0    0x         0
       0x1    0xfffc       0x2         0    0x    0xfffe       0x1         0
         0         0       0x1       0x1         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
    0xfad1       0x1    0xfffc       0x1    0xfff1    0x    0x    0x
       0x2    0x       0x1    0x    0x       0x1         0         0
         0         0       0x1         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
    0xfae8    0xfff5       0x5       0x2       0x5    0xfffd    0x    0x
    0xfffb    0xfffe       0x1    0x       0x1       0x1         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
    0xfae2       0xa    0xffe9       0x2       0x8    0x       0x3       0x3
       0x4         0         0       0x1         0    0x         0         0
         0    0x         0         0         0         0         0         0
         0       0x1         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
    0xfad8    0x    0xfff4       0x3    0xfffb    0xfffd       0x1    0xfffd
    0x    0x         0         0         0       0x1         0         0
         0         0         0         0         0         0         0         0
         0       0x1         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
    0xfad5         0    0xfffd       0x4    0xfffa    0xfffd         0       0x1
       0x2         0       0x1    0x       0x2       0x1       0x1         0
         0         0         0         0         0         0         0         0
       0x1         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
    0xfae1    0xfff7    0xfffb    0xfff9       0x1       0x4    0x       0x2
         0    0x         0    0x       0x1         0         0         0
       0x1         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
    0xfaf1    0xfffd    0xfff3    0xfff9       0x7       0x1    0x       0x3
       0x1    0x    0x       0x1         0       0x1       0x1         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0
         0         0         0         0         0         0         0         0

#Huffman Tables

#DC values (hex) 16 values
--- Huff-DC
      0x7e      0x3e       0xe       0x6         0       0x1       0x2      0x1e
      0xfe     0x3fc     0x7f9     0x7fa     0x7fb     0x7fc     0x7fd     0x7fe 
#DC lengths (hex)
--- Huff-DC-Length
       0x7       0x6       0x4       0x3       0x2       0x2       0x2       0x5
       0x8       0xa       0xb       0xb       0xb       0xb       0xb       0xb 
#AC values (hex) 256 values
--- Huff-AC
       0xa         0       0x1       0x4       0xb      0x1a      0x78     0x7f4
    0x7f8c    0x7f8d    0x7f8e    0x7f8f    0x7f90    0x7f91    0x7f92    0x7f93
    0x7f94       0xc      0x1b      0x79      0xfa     0x7f5    0x3fc4    0xff2c
    0xff2d    0xff2e    0xff2f    0xff30    0xff31    0xff32    0xff33    0xff34
    0xff35      0x1c      0x7a     0x3f6     0xfee    0xff36    0xff37    0xff38
    0xff39    0xff3a    0xff3b    0xff3c    0xff3d    0xff3e    0xff3f    0xff40
    0xff41      0x3a     0x1f8    0x3fc5    0xff42    0xff43    0xff44    0xff45
    0xff46    0xff47    0xff48    0xff49    0xff4a    0xff4b    0xff4c    0xff4d
    0xff4e      0x3b     0x3f7    0xff4f    0xff50    0xff51    0xff52    0xff53
    0xff54    0xff55    0xff56    0xff57    0xff58    0xff59    0xff5a    0xff5b
    0xff5c      0x7b    0x1fde    0xff5d    0xff5e    0xff5f    0xff60    0xff61
    0xff62    0xff63    0xff64    0xff65    0xff66    0xff67    0xff68    0xff69
    0xff6a      0x7c    0xff6b    0xff6c    0xff6d    0xff6e    0xff6f    0xff70
    0xff71    0xff72    0xff73    0xff74    0xff75    0xff76    0xff77    0xff78
    0xff79      0xfb    0xff7a    0xff7b    0xff7c    0xff7d    0xff7e    0xff7f
    0xff80    0xff81    0xff82    0xff83    0xff84    0xff85    0xff86    0xff87
    0xff88     0x1f9    0xff89    0xff8a    0xff8b    0xff8c    0xff8d    0xff8e
    0xff8f    0xff90    0xff91    0xff92    0xff93    0xff94    0xff95    0xff96
    0xff97     0x1fa    0xff98    0xff99    0xff9a    0xff9b    0xff9c    0xff9d
    0xff9e    0xff9f    0xffa0    0xffa1    0xffa2    0xffa3    0xffa4    0xffa5
    0xffa6     0x3f8    0xffa7    0xffa8    0xffa9    0xffaa    0xffab    0xffac
    0xffad    0xffae    0xffaf    0xffb0    0xffb1    0xffb2    0xffb3    0xffb4
    0xffb5     0x3f9    0xffb6    0xffb7    0xffb8    0xffb9    0xffba    0xffbb
    0xffbc    0xffbd    0xffbe    0xffbf    0xffc0    0xffc1    0xffc2    0xffc3
    0xffc4     0x7f6    0xffc5    0xffc6    0xffc7    0xffc8    0xffc9    0xffca
    0xffcb    0xffcc    0xffcd    0xffce    0xffcf    0xffd0    0xffd1    0xffd2
    0xffd3    0x1fdf    0xffd4    0xffd5    0xffd6    0xffd7    0xffd8    0xffd9
    0xffda    0xffdb    0xffdc    0xffdd    0xffde    0xffdf    0xffe0    0xffe1
    0xffe2    0x1fe0    0xffe3    0xffe4    0xffe5    0xffe6    0xffe7    0xffe8
    0xffe9    0xffea    0xffeb    0xffec    0xffed    0xffee    0xffef    0xfff0
    0x1fe1    0x7f95    0xfff1    0xfff2    0xfff3    0xfff4    0xfff5    0xfff6
    0xfff7    0xfff8    0xfff9    0xfffa    0xfffb    0xfffc    0xfffd    0xfffe
#AC lengths (hex)
--- Huff-AC-Length
       0x4       0x2       0x2       0x3       0x4       0x5       0x7       0xb
       0xf       0xf       0xf       0xf       0xf       0xf       0xf       0xf
       0xf       0x4       0x5       0x7       0x8       0xb       0xe      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0x5       0x7       0xa       0xc      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0x6       0x9       0xe      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0x6       0xa      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0x7       0xd      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0x7      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0x8      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0x9      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0x9      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0xa      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0xa      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0xb      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0xd      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
      0x10       0xd      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10
       0xd       0xf      0x10      0x10      0x10      0x10      0x10      0x10
      0x10      0x10      0x10      0x10      0x10      0x10      0x10      0x10

#Huffman coded DCT's for the 8 cells, 75 bytes, hex, 1 pad for ff's
--- Huff-DCT

      0xff         0      0x6b      0x1b      0xe9      0xae      0xaf      0x31
      0x98      0xdb       0xa      0x7a      0x9a      0x28      0xc6      0x6c
         0       0xc       0x8       0x7      0xbd      0x37      0xb4      0x95
      0xa5      0x40      0x22      0x52       0x9      0xac      0x6e      0xb4
      0x86      0xb8       0xe      0xf2      0x73      0x8e      0x9f      0x7a
      0x14      0x59      0xbc      0x48      0x50       0xe      0xbf      0xce
      0xb8      0xd9      0x24      0x29      0x96      0xc8      0x62      0x7f
      0x5a      0x32      0xda      0x28       0xc      0x81      0xb1      0x83
      0xd6      0x98      0x25      0x94      0x13      0x90      0xe4       0x3
      0x93      0x40      0x5f         0