Mercurial > mplayer.hg
annotate libfaad2/codebook/hcb_8.h @ 22809:09f97d0161ba
Handle X-QT extradata in a slightly more correct way
| author | cehoyos |
|---|---|
| date | Mon, 26 Mar 2007 09:35:03 +0000 |
| parents | 1d5a49e6d9db |
| children | e83eef58b30a |
| rev | line source |
|---|---|
| 10725 | 1 /* |
| 2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | |
| 3 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com | |
| 4 ** | |
| 5 ** This program is free software; you can redistribute it and/or modify | |
| 6 ** it under the terms of the GNU General Public License as published by | |
| 7 ** the Free Software Foundation; either version 2 of the License, or | |
| 8 ** (at your option) any later version. | |
| 9 ** | |
| 10 ** This program is distributed in the hope that it will be useful, | |
| 11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 ** GNU General Public License for more details. | |
| 14 ** | |
| 15 ** You should have received a copy of the GNU General Public License | |
| 16 ** along with this program; if not, write to the Free Software | |
| 17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
| 18 ** | |
| 19 ** Any non-GPL usage of this software or parts of this software is strictly | |
| 20 ** forbidden. | |
| 21 ** | |
| 22 ** Commercial non-GPL licensing of this software is possible. | |
| 23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | |
| 24 ** | |
|
14726
1d5a49e6d9db
Remove modification notice from files that have not been locally modified.
diego
parents:
12625
diff
changeset
|
25 ** $Id: hcb_8.h,v 1.3 2003/09/09 18:12:01 menno Exp $ |
| 10725 | 26 **/ |
| 27 | |
| 28 /* 2-step huffman table HCB_8 */ | |
| 29 | |
| 30 | |
| 31 /* 1st step: 5 bits | |
| 32 * 2^5 = 32 entries | |
| 33 * | |
| 34 * Used to find offset into 2nd step table and number of extra bits to get | |
| 35 */ | |
| 36 static hcb hcb8_1[] = { | |
| 37 /* 3 bit codeword */ | |
| 38 { /* 00000 */ 0, 0 }, | |
| 39 { /* */ 0, 0 }, | |
| 40 { /* */ 0, 0 }, | |
| 41 { /* */ 0, 0 }, | |
| 42 | |
| 43 /* 4 bit codewords */ | |
| 44 { /* 00100 */ 1, 0 }, | |
| 45 { /* */ 1, 0 }, | |
| 46 { /* 00110 */ 2, 0 }, | |
| 47 { /* */ 2, 0 }, | |
| 48 { /* 01000 */ 3, 0 }, | |
| 49 { /* */ 3, 0 }, | |
| 50 { /* 01010 */ 4, 0 }, | |
| 51 { /* */ 4, 0 }, | |
| 52 { /* 01100 */ 5, 0 }, | |
| 53 { /* */ 5, 0 }, | |
| 54 | |
| 55 /* 5 bit codewords */ | |
| 56 { /* 01110 */ 6, 0 }, | |
| 57 { /* 01111 */ 7, 0 }, | |
| 58 { /* 10000 */ 8, 0 }, | |
| 59 { /* 10001 */ 9, 0 }, | |
| 60 { /* 10010 */ 10, 0 }, | |
| 61 { /* 10011 */ 11, 0 }, | |
| 62 { /* 10100 */ 12, 0 }, | |
| 63 | |
| 64 /* 6 bit codewords */ | |
| 65 { /* 10101 */ 13, 1 }, | |
| 66 { /* 10110 */ 15, 1 }, | |
| 67 { /* 10111 */ 17, 1 }, | |
| 68 { /* 11000 */ 19, 1 }, | |
| 69 { /* 11001 */ 21, 1 }, | |
| 70 | |
| 71 /* 7 bit codewords */ | |
| 72 { /* 11010 */ 23, 2 }, | |
| 73 { /* 11011 */ 27, 2 }, | |
| 74 { /* 11100 */ 31, 2 }, | |
| 75 | |
| 76 /* 7/8 bit codewords */ | |
| 77 { /* 11101 */ 35, 3 }, | |
| 78 | |
| 79 /* 8 bit codewords */ | |
| 80 { /* 11110 */ 43, 3 }, | |
| 81 | |
| 82 /* 8/9/10 bit codewords */ | |
| 83 { /* 11111 */ 51, 5 } | |
| 84 }; | |
| 85 | |
| 86 /* 2nd step table | |
| 87 * | |
| 88 * Gives size of codeword and actual data (x,y,v,w) | |
| 89 */ | |
| 90 static hcb_2_pair hcb8_2[] = { | |
| 91 /* 3 bit codeword */ | |
| 92 { 3, 1, 1 }, | |
| 93 | |
| 94 /* 4 bit codewords */ | |
| 95 { 4, 2, 1 }, | |
| 96 { 4, 1, 0 }, | |
| 97 { 4, 1, 2 }, | |
| 98 { 4, 0, 1 }, | |
| 99 { 4, 2, 2 }, | |
| 100 | |
| 101 /* 5 bit codewords */ | |
| 102 { 5, 0, 0 }, | |
| 103 { 5, 2, 0 }, | |
| 104 { 5, 0, 2 }, | |
| 105 { 5, 3, 1 }, | |
| 106 { 5, 1, 3 }, | |
| 107 { 5, 3, 2 }, | |
| 108 { 5, 2, 3 }, | |
| 109 | |
| 110 /* 6 bit codewords */ | |
| 111 { 6, 3, 3 }, | |
| 112 { 6, 4, 1 }, | |
| 113 { 6, 1, 4 }, | |
| 114 { 6, 4, 2 }, | |
| 115 { 6, 2, 4 }, | |
| 116 { 6, 3, 0 }, | |
| 117 { 6, 0, 3 }, | |
| 118 { 6, 4, 3 }, | |
| 119 { 6, 3, 4 }, | |
| 120 { 6, 5, 2 }, | |
| 121 | |
| 122 /* 7 bit codewords */ | |
| 123 { 7, 5, 1 }, | |
| 124 { 7, 2, 5 }, | |
| 125 { 7, 1, 5 }, | |
| 126 { 7, 5, 3 }, | |
| 127 { 7, 3, 5 }, | |
| 128 { 7, 4, 4 }, | |
| 129 { 7, 5, 4 }, | |
| 130 { 7, 0, 4 }, | |
| 131 { 7, 4, 5 }, | |
| 132 { 7, 4, 0 }, | |
| 133 { 7, 2, 6 }, | |
| 134 { 7, 6, 2 }, | |
| 135 | |
| 136 /* 7/8 bit codewords */ | |
| 137 { 7, 6, 1 }, { 7, 6, 1 }, | |
| 138 { 7, 1, 6 }, { 7, 1, 6 }, | |
| 139 { 8, 3, 6 }, | |
| 140 { 8, 6, 3 }, | |
| 141 { 8, 5, 5 }, | |
| 142 { 8, 5, 0 }, | |
| 143 | |
| 144 /* 8 bit codewords */ | |
| 145 { 8, 6, 4 }, | |
| 146 { 8, 0, 5 }, | |
| 147 { 8, 4, 6 }, | |
| 148 { 8, 7, 1 }, | |
| 149 { 8, 7, 2 }, | |
| 150 { 8, 2, 7 }, | |
| 151 { 8, 6, 5 }, | |
| 152 { 8, 7, 3 }, | |
| 153 | |
| 154 /* 8/9/10 bit codewords */ | |
| 155 { 8, 1, 7 }, { 8, 1, 7 }, { 8, 1, 7 }, { 8, 1, 7 }, | |
| 156 { 8, 5, 6 }, { 8, 5, 6 }, { 8, 5, 6 }, { 8, 5, 6 }, | |
| 157 { 8, 3, 7 }, { 8, 3, 7 }, { 8, 3, 7 }, { 8, 3, 7 }, | |
| 158 { 9, 6, 6 }, { 9, 6, 6 }, | |
| 159 { 9, 7, 4 }, { 9, 7, 4 }, | |
| 160 { 9, 6, 0 }, { 9, 6, 0 }, | |
| 161 { 9, 4, 7 }, { 9, 4, 7 }, | |
| 162 { 9, 0, 6 }, { 9, 0, 6 }, | |
| 163 { 9, 7, 5 }, { 9, 7, 5 }, | |
| 164 { 9, 7, 6 }, { 9, 7, 6 }, | |
| 165 { 9, 6, 7 }, { 9, 6, 7 }, | |
| 166 { 10, 5, 7 }, | |
| 167 { 10, 7, 0 }, | |
| 168 { 10, 0, 7 }, | |
| 169 { 10, 7, 7 } | |
| 170 }; |
