Mercurial > mplayer.hg
comparison libfaad2/sbr_tf_grid.c @ 12527:4a370c80fe5c
update to the 2.0 release of faad, patch by adland
author | diego |
---|---|
date | Wed, 02 Jun 2004 22:59:04 +0000 |
parents | 3185f64f6350 |
children | d81145997036 |
comparison
equal
deleted
inserted
replaced
12526:e183ad37d24c | 12527:4a370c80fe5c |
---|---|
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 M. Bakker, Ahead Software 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. |
20 ** forbidden. | 20 ** forbidden. |
21 ** | 21 ** |
22 ** Commercial non-GPL licensing of this software is possible. | 22 ** Commercial non-GPL licensing of this software is possible. |
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. | 23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com. |
24 ** | 24 ** |
25 ** $Id: sbr_tf_grid.c,v 1.4 2003/09/30 16:32:02 menno Exp $ | 25 ** $Id: sbr_tf_grid.c,v 1.2 2003/10/03 22:22:27 alex Exp $ |
26 **/ | 26 **/ |
27 | 27 |
28 /* Time/Frequency grid */ | 28 /* Time/Frequency grid */ |
29 | 29 |
30 #include "common.h" | 30 #include "common.h" |
34 | 34 |
35 #include <stdlib.h> | 35 #include <stdlib.h> |
36 | 36 |
37 #include "sbr_syntax.h" | 37 #include "sbr_syntax.h" |
38 #include "sbr_tf_grid.h" | 38 #include "sbr_tf_grid.h" |
39 | |
40 | |
41 /* static function declarations */ | |
42 #if 0 | |
43 static int16_t rel_bord_lead(sbr_info *sbr, uint8_t ch, uint8_t l); | |
44 static int16_t rel_bord_trail(sbr_info *sbr, uint8_t ch, uint8_t l); | |
45 #endif | |
46 static uint8_t middleBorder(sbr_info *sbr, uint8_t ch); | |
47 | |
39 | 48 |
40 uint8_t envelope_time_border_vector(sbr_info *sbr, uint8_t ch) | 49 uint8_t envelope_time_border_vector(sbr_info *sbr, uint8_t ch) |
41 { | 50 { |
42 uint8_t l, border, temp; | 51 uint8_t l, border, temp; |
43 | 52 |
153 sbr->t_Q[ch][1] = sbr->t_E[ch][index]; | 162 sbr->t_Q[ch][1] = sbr->t_E[ch][index]; |
154 sbr->t_Q[ch][2] = sbr->t_E[ch][sbr->L_E[ch]]; | 163 sbr->t_Q[ch][2] = sbr->t_E[ch][sbr->L_E[ch]]; |
155 } | 164 } |
156 } | 165 } |
157 | 166 |
167 #if 0 | |
158 static int16_t rel_bord_lead(sbr_info *sbr, uint8_t ch, uint8_t l) | 168 static int16_t rel_bord_lead(sbr_info *sbr, uint8_t ch, uint8_t l) |
159 { | 169 { |
160 uint8_t i; | 170 uint8_t i; |
161 int16_t acc = 0; | 171 int16_t acc = 0; |
162 | 172 |
207 return acc; | 217 return acc; |
208 } | 218 } |
209 | 219 |
210 return 0; | 220 return 0; |
211 } | 221 } |
222 #endif | |
212 | 223 |
213 static uint8_t middleBorder(sbr_info *sbr, uint8_t ch) | 224 static uint8_t middleBorder(sbr_info *sbr, uint8_t ch) |
214 { | 225 { |
215 int8_t retval; | 226 int8_t retval = 0; |
216 | 227 |
217 switch (sbr->bs_frame_class[ch]) | 228 switch (sbr->bs_frame_class[ch]) |
218 { | 229 { |
219 case FIXFIX: | 230 case FIXFIX: |
220 retval = sbr->L_E[ch]/2; | 231 retval = sbr->L_E[ch]/2; |