00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 int scale_factor_quant6[] =
00024 {
00025 1, 2, 2, 3, 3, 4, 6, 7,
00026 10, 12, 16, 20, 26, 34, 44, 56,
00027 72, 93, 120, 155, 200, 257, 331, 427,
00028 550, 708, 912, 1175, 1514, 1950, 2512, 3236,
00029 4169, 5370, 6918, 8913, 11482, 14791, 19055, 24547,
00030 31623, 40738, 52481, 67608, 87096, 112202, 144544, 186209,
00031 239883, 309030, 398107, 512861, 660693, 851138, 1096478, 1412538,
00032 1819701, 2344229, 3019952, 3890451, 5011872, 6456542, 8317638, 0
00033 };
00034
00035 int scale_factor_quant7[] =
00036 {
00037 1, 1, 2, 2, 2, 2, 3, 3,
00038 3, 4, 4, 5, 6, 7, 7, 8,
00039 10, 11, 12, 14, 16, 18, 20, 23,
00040 26, 30, 34, 38, 44, 50, 56, 64,
00041 72, 82, 93, 106, 120, 136, 155, 176,
00042 200, 226, 257, 292, 331, 376, 427, 484,
00043 550, 624, 708, 804, 912, 1035, 1175, 1334,
00044 1514, 1718, 1950, 2213, 2512, 2851, 3236, 3673,
00045 4169, 4732, 5370, 6095, 6918, 7852, 8913, 10116,
00046 11482, 13032, 14791, 16788, 19055, 21627, 24547, 27861,
00047 31623, 35892, 40738, 46238, 52481, 59566, 67608, 76736,
00048 87096, 98855, 112202, 127350, 144544, 164059, 186209, 211349,
00049 239883, 272270, 309030, 350752, 398107, 451856, 512861, 582103,
00050 660693, 749894, 851138, 966051, 1096478, 1244515, 1412538, 1603245,
00051 1819701, 2065380, 2344229, 2660725, 3019952, 3427678, 3890451, 4415704,
00052 5011872, 5688529, 6456542, 7328245, 8317638, 0, 0, 0
00053 };
00054
00055 int lossy_quant[] =
00056 {
00057 0, 6710886, 4194304, 3355443, 2474639, 2097152, 1761608, 1426063,
00058 796918, 461373, 251658, 146801, 79692, 46137, 27263, 16777,
00059 10486, 5872, 3355, 1887, 1258, 713, 336, 168,
00060 84, 42, 21, 0, 0, 0, 0, 0
00061 };
00062
00063 double lossy_quant_d[] =
00064 {
00065 0, 1.6, 1.0, 0.8, 0.59, 0.50, 0.42, 0.34,
00066 0.19, 0.11, 0.06, 0.035, 0.019, 0.011, 0.0065, 0.0040,
00067 0.0025, 0.0014, 0.0008, 0.00045, 0.00030, 0.00017, 0.00008, 0.00004,
00068 0.00002, 0.00001, 0.000005, 0, 0, 0, 0, 0
00069 };
00070
00071 int lossless_quant[] =
00072 {
00073 0, 4194304, 2097152, 1384120, 1048576, 696254, 524288, 348127,
00074 262144, 131072, 65431, 33026, 16450, 8208, 4100, 2049,
00075 1024, 512, 256, 128, 64, 32, 16, 8,
00076 4, 2, 1, 0, 0, 0, 0, 0
00077 };
00078
00079 double lossless_quant_d[] =
00080 {
00081 0, 1.0, 0.5, 0.33, 0.25, 0.166, 0.125,
00082 0.083, 0.0625, 0.03125, 0.0156, 7.874E-3, 3.922E-3, 1.957E-3,
00083 9.775E-4, 4.885E-4, 2.442E-4, 1.221E-4, 6.104E-5, 3.052E-5, 1.526E-5,
00084 7.629E-6, 3.815E-6, 1.907E-6, 9.537E-7, 4.768E-7, 2.384E-7, 0,
00085 0, 0, 0, 0
00086 };