Changeset 78 for mppenc/branches/r2d/libmpcenc/huffsv7.c
- Timestamp:
- 10/27/06 18:42:05 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mppenc/branches/r2d/libmpcenc/huffsv7.c
r76 r78 62 62 #endif 63 63 64 static const Huff Src_t HuffSCFI_src [4] = {64 static const Huffman_t HuffSCFI_src [4] = { 65 65 { 2, 3 }, { 1, 1 }, { 3, 3 }, { 0, 2 } 66 66 }; 67 67 68 static const Huff Src_t HuffDSCF_src [16] = {68 static const Huffman_t HuffDSCF_src [16] = { 69 69 { 32, 6 }, { 4, 5 }, { 17, 5 }, { 30, 5 }, { 13, 4 }, { 0, 3 }, { 3, 3 }, { 9, 4 }, 70 70 { 5, 3 }, { 2, 3 }, { 14, 4 }, { 3, 4 }, { 31, 5 }, { 5, 5 }, { 33, 6 }, { 12, 4 } 71 71 }; 72 72 73 static const Huff Src_t HuffHdr_src [10] = {73 static const Huffman_t HuffHdr_src [10] = { 74 74 { 92, 8 }, { 47, 7 }, { 10, 5 }, { 4, 4 }, { 0, 2 }, 75 75 { 1, 1 }, { 3, 3 }, { 22, 6 }, { 187, 9 }, { 186, 9 } 76 76 }; 77 77 78 static const Huff Src_t HuffQ1_src [2] [3*3*3] = { {78 static const Huffman_t HuffQ1_src [2] [3*3*3] = { { 79 79 { 54, 6 }, { 9, 5 }, { 32, 6 }, { 5, 5 }, { 10, 4 }, { 7, 5 }, { 52, 6 }, { 0, 5 }, { 35, 6 }, 80 80 { 10, 5 }, { 6, 4 }, { 4, 5 }, { 11, 4 }, { 7, 3 }, { 12, 4 }, { 3, 5 }, { 7, 4 }, { 11, 5 }, … … 86 86 } }; 87 87 88 static const Huff Src_t HuffQ2_src [2] [5*5] = { {88 static const Huffman_t HuffQ2_src [2] [5*5] = { { 89 89 { 89, 7 }, { 47, 6 }, { 15, 5 }, { 0, 5 }, { 91, 7 }, 90 90 { 4, 5 }, { 6, 4 }, { 13, 4 }, { 4, 4 }, { 5, 5 }, … … 101 101 102 102 #ifdef USE_SV8 103 static const Huff Src_t HuffN3_src [2] [7*7] = { {103 static const Huffman_t HuffN3_src [2] [7*7] = { { 104 104 { 78, 7 }, { 20, 6 }, { 36, 6 }, { 51, 6 }, { 21, 6 }, { 101, 7 }, { 255, 8 }, 105 105 { 37, 6 }, { 0, 5 }, { 62, 6 }, { 7, 5 }, { 60, 6 }, { 49, 6 }, { 100, 7 }, … … 120 120 #endif 121 121 122 static const Huff Src_t HuffQ3_src [2] [ 7] = { {122 static const Huffman_t HuffQ3_src [2] [ 7] = { { 123 123 { 12, 4 }, { 4, 3 }, { 0, 2 }, { 1, 2 }, { 7, 3 }, { 5, 3 }, { 13, 4 } 124 124 }, { … … 126 126 } }; 127 127 128 static const Huff Src_t HuffQ4_src [2] [ 9] = { {128 static const Huffman_t HuffQ4_src [2] [ 9] = { { 129 129 { 5, 4 }, { 0, 3 }, { 4, 3 }, { 6, 3 }, { 7, 3 }, { 5, 3 }, { 3, 3 }, { 1, 3 }, { 4, 4 } 130 130 }, { … … 132 132 } }; 133 133 134 static const Huff Src_t HuffQ5_src [2] [15] = { {134 static const Huffman_t HuffQ5_src [2] [15] = { { 135 135 { 57, 6 }, { 23, 5 }, { 8, 4 }, { 10, 4 }, { 13, 4 }, { 0, 3 }, { 2, 3 }, { 3, 3 }, 136 136 { 1, 3 }, { 15, 4 }, { 12, 4 }, { 9, 4 }, { 29, 5 }, { 22, 5 }, { 56, 6 } … … 140 140 } }; 141 141 142 static const Huff Src_t HuffQ6_src [2] [31] = { {142 static const Huffman_t HuffQ6_src [2] [31] = { { 143 143 { 65, 7 }, { 6, 6 }, { 44, 6 }, { 45, 6 }, { 59, 6 }, { 13, 5 }, { 17, 5 }, { 19, 5 }, 144 144 { 23, 5 }, { 21, 5 }, { 26, 5 }, { 30, 5 }, { 0, 4 }, { 2, 4 }, { 5, 4 }, { 7, 4 }, … … 152 152 } }; 153 153 154 static const Huff Src_t HuffQ7_src [2] [63] = { {154 static const Huffman_t HuffQ7_src [2] [63] = { { 155 155 { 103, 8 }, // 0.3338 01100111 156 156 { 153, 8 }, // 0.3766 10011001 … … 283 283 284 284 #ifdef USE_SV8 285 static const Huff Src_t HuffN8_src [2] [127] = { {285 static const Huffman_t HuffN8_src [2] [127] = { { 286 286 { 2426, 13 }, { 4943, 13 }, { 787, 12 }, { 2470, 12 }, { 7270, 13 }, { 1764, 12 }, 287 287 { 3632, 12 }, { 3633, 12 }, { 2486, 12 }, { 395, 11 }, { 607, 11 }, { 1242, 11 }, … … 341 341 */ 342 342 343 void Make_HuffTable ( Huffman_t* dst, const Huff Src_t* src, mpc_size_t len )343 void Make_HuffTable ( Huffman_t* dst, const Huffman_t* src, mpc_size_t len ) 344 344 { 345 345 mpc_size_t i;
Note: See TracChangeset
for help on using the changeset viewer.