Mercurial > audlegacy-plugins
comparison src/aac/libfaad2/ms.c @ 691:e6c5fdae6e88 trunk
[svn] - oh yes, commit mplayer patches as well
author | nenolod |
---|---|
date | Tue, 20 Feb 2007 06:38:03 -0800 |
parents | 1d8b08df98c3 |
children | f1b6f1b2cdb3 |
comparison
equal
deleted
inserted
replaced
690:0305b3165a01 | 691:e6c5fdae6e88 |
---|---|
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-2005 M. Bakker, Nero AG, http://www.nero.com | 3 ** Copyright (C) 2003-2004 M. Bakker, Ahead Software 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. |
17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 ** Software using this code must display the following message visibly in or | 22 ** Commercial non-GPL licensing of this software is possible. |
23 ** on each copy of the software: | 23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. |
24 ** "FAAD2 AAC/HE-AAC/HE-AACv2/DRM decoder (c) Nero AG, www.nero.com" | |
25 ** in, for example, the about-box or help/startup screen. | |
26 ** | 24 ** |
27 ** Commercial non-GPL licensing of this software is possible. | 25 ** $Id: ms.c,v 1.17 2004/09/04 14:56:28 menno Exp $ |
28 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com. | |
29 ** | |
30 ** $Id: ms.c,v 1.19 2006/05/07 18:09:01 menno Exp $ | |
31 **/ | 26 **/ |
32 | 27 |
33 #include "common.h" | 28 #include "common.h" |
34 #include "structs.h" | 29 #include "structs.h" |
35 | 30 |
61 is carried out. | 56 is carried out. |
62 */ | 57 */ |
63 if ((ics->ms_used[g][sfb] || ics->ms_mask_present == 2) && | 58 if ((ics->ms_used[g][sfb] || ics->ms_mask_present == 2) && |
64 !is_intensity(icsr, g, sfb) && !is_noise(ics, g, sfb)) | 59 !is_intensity(icsr, g, sfb) && !is_noise(ics, g, sfb)) |
65 { | 60 { |
66 for (i = ics->swb_offset[sfb]; i < min(ics->swb_offset[sfb+1], ics->swb_offset_max); i++) | 61 for (i = ics->swb_offset[sfb]; i < ics->swb_offset[sfb+1]; i++) |
67 { | 62 { |
68 k = (group*nshort) + i; | 63 k = (group*nshort) + i; |
69 tmp = l_spec[k] - r_spec[k]; | 64 tmp = l_spec[k] - r_spec[k]; |
70 l_spec[k] = l_spec[k] + r_spec[k]; | 65 l_spec[k] = l_spec[k] + r_spec[k]; |
71 r_spec[k] = tmp; | 66 r_spec[k] = tmp; |