AAC: hoist dependent gain lookup out of the loop
Originally committed as revision 17835 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									6a7d2c3d3a
								
							
						
					
					
						commit
						cfd937b081
					
				@ -1434,10 +1434,11 @@ static void apply_dependent_coupling(AACContext * ac, SingleChannelElement * tar
 | 
				
			|||||||
    for (g = 0; g < ics->num_window_groups; g++) {
 | 
					    for (g = 0; g < ics->num_window_groups; g++) {
 | 
				
			||||||
        for (i = 0; i < ics->max_sfb; i++, idx++) {
 | 
					        for (i = 0; i < ics->max_sfb; i++, idx++) {
 | 
				
			||||||
            if (cce->ch[0].band_type[idx] != ZERO_BT) {
 | 
					            if (cce->ch[0].band_type[idx] != ZERO_BT) {
 | 
				
			||||||
 | 
					                const float gain = cce->coup.gain[index][idx];
 | 
				
			||||||
                for (group = 0; group < ics->group_len[g]; group++) {
 | 
					                for (group = 0; group < ics->group_len[g]; group++) {
 | 
				
			||||||
                    for (k = offsets[i]; k < offsets[i+1]; k++) {
 | 
					                    for (k = offsets[i]; k < offsets[i+1]; k++) {
 | 
				
			||||||
                        // XXX dsputil-ize
 | 
					                        // XXX dsputil-ize
 | 
				
			||||||
                        dest[group*128+k] += cce->coup.gain[index][idx] * src[group*128+k];
 | 
					                        dest[group*128+k] += gain * src[group*128+k];
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user