Mercurial > audlegacy-plugins
comparison src/aac/libfaad2/sbr_tf_grid.c @ 3004:8867d3491f60
Sync with FAAD 2.7; will fix warnings in separate commits.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Wed, 08 Apr 2009 20:12:57 +0100 |
parents | f1b6f1b2cdb3 |
children |
comparison
equal
deleted
inserted
replaced
3003:8b7a44631121 | 3004:8867d3491f60 |
---|---|
1 /* | 1 /* |
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding | 2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding |
3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com | 3 ** Copyright (C) 2003-2005 M. Bakker, Nero AG, http://www.nero.com |
4 ** | 4 ** |
5 ** This program is free software; you can redistribute it and/or modify | 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 | 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 | 7 ** the Free Software Foundation; either version 2 of the License, or |
8 ** (at your option) any later version. | 8 ** (at your option) any later version. |
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 ** GNU General Public License for more details. | 13 ** GNU General Public License for more details. |
14 ** | 14 ** |
15 ** You should have received a copy of the GNU General Public License | 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 | 16 ** along with this program; if not, write to the Free Software |
17 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 ** | 18 ** |
19 ** Any non-GPL usage of this software or parts of this software is strictly | 19 ** Any non-GPL usage of this software or parts of this software is strictly |
20 ** forbidden. | 20 ** forbidden. |
21 ** | 21 ** |
22 ** The "appropriate copyright message" mentioned in section 2c of the GPLv2 | |
23 ** must read: "Code from FAAD2 is copyright (c) Nero AG, www.nero.com" | |
24 ** | |
22 ** Commercial non-GPL licensing of this software is possible. | 25 ** Commercial non-GPL licensing of this software is possible. |
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | 26 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com. |
24 ** | 27 ** |
25 ** $Id: sbr_tf_grid.c,v 1.15 2004/09/04 14:56:28 menno Exp $ | 28 ** $Id: sbr_tf_grid.c,v 1.20 2008/09/19 22:50:20 menno Exp $ |
26 **/ | 29 **/ |
27 | 30 |
28 /* Time/Frequency grid */ | 31 /* Time/Frequency grid */ |
29 | 32 |
30 #include "common.h" | 33 #include "common.h" |
60 { | 63 { |
61 case FIXFIX: | 64 case FIXFIX: |
62 switch (sbr->L_E[ch]) | 65 switch (sbr->L_E[ch]) |
63 { | 66 { |
64 case 4: | 67 case 4: |
65 temp = (int) (sbr->numTimeSlots / 4); | 68 temp = (sbr->numTimeSlots / 4); |
66 t_E_temp[3] = sbr->rate * 3 * temp; | 69 t_E_temp[3] = sbr->rate * 3 * temp; |
67 t_E_temp[2] = sbr->rate * 2 * temp; | 70 t_E_temp[2] = sbr->rate * 2 * temp; |
68 t_E_temp[1] = sbr->rate * temp; | 71 t_E_temp[1] = sbr->rate * temp; |
69 break; | 72 break; |
70 case 2: | 73 case 2: |
71 t_E_temp[1] = sbr->rate * (int) (sbr->numTimeSlots / 2); | 74 t_E_temp[1] = sbr->rate * (sbr->numTimeSlots / 2); |
72 break; | 75 break; |
73 default: | 76 default: |
74 break; | 77 break; |
75 } | 78 } |
76 break; | 79 break; |