comparison acelp_filters.c @ 6775:1f02f929b9ff libavcodec

Update comment to version, negotiated with Diego, and fix missing period (not latest revision of patch was wrongly committed).
author voroshil
date Sun, 11 May 2008 10:07:11 +0000
parents 695f4ab2db4c
children 94465a2c3b34
comparison
equal deleted inserted replaced
6774:ca449dc51bd7 6775:1f02f929b9ff
35 { 35 {
36 int i, k; 36 int i, k;
37 37
38 memset(fc_out, 0, subframe_size * sizeof(int16_t)); 38 memset(fc_out, 0, subframe_size * sizeof(int16_t));
39 39
40 /* Since there are few pulses over entire subframe (i.e. almost all 40 /* Since there are few pulses over an entire subframe (i.e. almost
41 fc_in[i] are zero, in case of G.729D the buffer contains two non-zero 41 all fc_in[i] are zero) it is faster to swap two loops and process
42 samples before the call to ff_acelp_enhance_harmonics, and (due to 42 non-zero samples only. In the case of G.729D the buffer contains
43 pitch_delay bounded to [20; 143]) a maximum four non-zero samples 43 two non-zero samples before the call to ff_acelp_enhance_harmonics
44 for a total of 40 after the call to it), it is faster to swap two loops 44 and, due to pitch_delay being bounded by [20; 143], a maximum
45 and process non-zero samples only. This will reduce the number of 45 of four non-zero samples for a total of 40 after the call. */
46 multiplications from 40*40 to 4*40 for G.729D */
47 for(i=0; i<subframe_size; i++) 46 for(i=0; i<subframe_size; i++)
48 { 47 {
49 if(fc_in[i]) 48 if(fc_in[i])
50 { 49 {
51 for(k=0; k<i; k++) 50 for(k=0; k<i; k++)