/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ * \/ \/ \/ \/ \/ * $Id$ * * Copyright (C) 2009 Mohamed Tarek * * 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 software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ****************************************************************************/ #include "ffmpeg_get_bits.h" #include "../librm/rm.h" #include "codeclib.h" #if (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) || (CONFIG_CPU == MCF5250) /* PP5022/24 and MCF5250 have larger IRAM */ #define IBSS_ATTR_LARGE_IRAM IBSS_ATTR #define ICODE_ATTR_LARGE_IRAM ICODE_ATTR #else /* other CPUs IRAM is not large enough */ #define IBSS_ATTR_LARGE_IRAM #define ICODE_ATTR_LARGE_IRAM #endif /* These structures are needed to store the parsed gain control data. */ typedef struct { int num_gain_data; int levcode[8]; int loccode[8]; } gain_info; typedef struct { gain_info gBlock[4]; } gain_block; typedef struct { int pos; int numCoefs; int32_t coef[8]; } tonal_component; typedef struct { int bandsCoded; int numComponents; tonal_component components[64]; int32_t *prevFrame; int gcBlkSwitch; gain_block gainBlock[2]; int32_t *spectrum; int32_t *IMDCT_buf; int32_t delayBuf1[46] MEM_ALIGN_ATTR; ///