/* ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ** ** Any non-GPL usage of this software or parts of this software is strictly ** forbidden. ** ** Commercial non-GPL licensing of this software is possible. ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. ** ** $Id$ **/ /* 2-step huffman table HCB_11 */ /* 1st step: 5 bits * 2^5 = 32 entries * * Used to find offset into 2nd step table and number of extra bits to get */ static hcb hcb11_1[] = { /* 4 bits */ { /* 00000 */ 0, 0 }, { /* */ 0, 0 }, { /* 00010 */ 1, 0 }, { /* */ 1, 0 }, /* 5 bits */ { /* 00100 */ 2, 0 }, { /* 00101 */ 3, 0 }, { /* 00110 */ 4, 0 }, { /* 00111 */ 5, 0 }, { /* 01000 */ 6, 0 }, { /* 01001 */ 7, 0 }, /* 6 bits */ { /* 01010 */ 8, 1 }, { /* 01011 */ 10, 1 }, { /* 01100 */ 12, 1 }, /* 6/7 bits */ { /* 01101 */ 14, 2 }, /* 7 bits */ { /* 01110 */ 18, 2 }, { /* 01111 */ 22, 2 }, { /* 10000 */ 26, 2 }, /* 7/8 bits */ { /* 10001 */ 30, 3 }, /* 8 bits */ { /* 10010 */ 38, 3 }, { /* 10011 */ 46, 3 }, { /* 10100 */ 54, 3 }, { /* 10101 */ 62, 3 }, { /* 10110 */ 70, 3 }, { /* 10111 */ 78, 3 }, /* 8/9 bits */ { /* 11000 */ 86, 4 }, /* 9 bits */ { /* 11001 */ 102, 4 }, { /* 11010 */ 118, 4 }, { /* 11011 */ 134, 4 }, /* 9/10 bits */ { /* 11100 */ 150, 5 }, /* 10 bits */ { /* 11101 */ 182, 5 }, { /* 11110 */ 214, 5 }, /* 10/11/12 bits */ { /* 11111 */ 246, 7 } }; /* 2nd step table * * Gives size of codeword and actual data (x,y,v,w) */ static hcb_2_pair hcb11_2[] = { /* 4 */ { 4, 0, 0 }, { 4, 1, 1 }, /* 5 */ { 5, 16, 16 }, { 5, 1, 0 }, { 5, 0, 1 }, { 5, 2, 1 }, { 5, 1, 2 }, { 5, 2, 2 }, /* 6 */ { 6, 1, 3 }, { 6, 3, 1 }, { 6, 3, 2 }, { 6, 2, 0 }, { 6, 2, 3 }, { 6, 0, 2 }, /* 6/7 */ { 6, 3, 3 }, { 6, 3, 3 }, { 7, 4, 1 }, { 7, 1, 4 }, /* 7 */ { 7, 4, 2 }, { 7, 2, 4 }, { 7, 4, 3 }, { 7, 3, 4 }, { 7, 3, 0 }, { 7, 0, 3 }, { 7, 5, 1 }, { 7, 5, 2 }, { 7, 2, 5 }, { 7, 4, 4 }, { 7, 1, 5 }, { 7, 5, 3 }, /* 7/8 */ { 7, 3, 5 }, { 7, 3, 5 }, { 7, 5, 4 }, { 7, 5, 4 }, { 8, 4, 5 }, { 8, 6, 2 }, { 8, 2, 6 }, { 8, 6, 1 }, /* 8 */ { 8, 6, 3 }, { 8, 3, 6 }, { 8, 1, 6 }, { 8, 4, 16 }, { 8, 3, 16 }, { 8, 16, 5 }, { 8, 16, 3 }, { 8, 16, 4 }, { 8, 6, 4 }, { 8, 16, 6 }, { 8, 4, 0 }, { 8, 4, 6 }, { 8, 0, 4 }, { 8, 2, 16 }, { 8, 5, 5 }, { 8, 5, 16 }, { 8, 16, 7 }, { 8, 16, 2 }, { 8, 16, 8 }, { 8, 2, 7 }, { 8, 7, 2 }, { 8, 3, 7 }, { 8, 6, 5 }, { 8, 5, 6 }, { 8, 6, 16 }, { 8, 16, 10 }, { 8, 7, 3 }, { 8, 7, 1 }, { 8, 16, 9 }, { 8, 7, 16 }, { 8, 1, 16 }, { 8, 1, 7 }, { 8, 4, 7 }, { 8, 16, 11 }, { 8, 7, 4 }, { 8, 16, 12 }, { 8, 8, 16 }, {# __________ __ ___. # Open \______ \ ____ ____ | | _\_ |__ _______ ___ # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ # \/ \/ \/ \/ \/ # $Id$ # # libasap ASAPLIB := $(CODECDIR)/libasap.a ASAPLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libasap/SOURCES) ASAPLIB_OBJ := $(call c2obj, $(ASAPLIB_SRC)) OTHER_SRC += $(ASAPLIB_SRC) $(ASAPLIB): $(ASAPLIB_OBJ) $(SILENT)$(shell rm -f $@) $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null ASAPFLAGS = $(filter-out -O%,$(CODECFLAGS)) ASAPFLAGS += -O1 $(CODECDIR)/libasap/%.o: $(ROOTDIR)/apps/codecs/libasap/%.c $(SILENT)mkdir -p $(dir $@) $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(ASAPFLAGS) -c $< -o $@