[FFmpeg-soc] [soc]: r2931 - aac/aac.c

superdump subversion at mplayerhq.hu
Wed Jul 30 18:06:05 CEST 2008


Author: superdump
Date: Wed Jul 30 18:06:05 2008
New Revision: 2931

Log:
Rename (in)dependent_coupling() as apply_(in)dependent_coupling()


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Wed Jul 30 18:06:05 2008
@@ -2041,7 +2041,7 @@ static void apply_ssr(AACContext * ac, S
  *
  * @param   index   which gain to use for coupling
  */
-static void dependent_coupling(AACContext * ac, ChannelElement * cc, SingleChannelElement * sce, int index) {
+static void apply_dependent_coupling(AACContext * ac, ChannelElement * cc, SingleChannelElement * sce, int index) {
     IndividualChannelStream * ics = &cc->ch[0].ics;
     const uint16_t * offsets = ics->swb_offset;
     float * dest = sce->coeffs;
@@ -2074,7 +2074,7 @@ static void dependent_coupling(AACContex
  *
  * @param   index   which gain to use for coupling
  */
-static void independent_coupling(AACContext * ac, ChannelElement * cc, SingleChannelElement * sce, int index) {
+static void apply_independent_coupling(AACContext * ac, ChannelElement * cc, SingleChannelElement * sce, int index) {
     int i;
     float gain = cc->coup.gain[index][0][0] * sce->mixing_gain;
     for (i = 0; i < 1024; i++)
@@ -2124,7 +2124,7 @@ static int spectral_to_sample(AACContext
             ChannelElement *che = ac->che[j][i];
             if(che) {
                 if(j == ID_CCE && !che->coup.is_indep_coup && (che->coup.domain == 0))
-                    apply_channel_coupling(ac, che, dependent_coupling);
+                    apply_channel_coupling(ac, che, apply_dependent_coupling);
 #ifdef AAC_LTP
                 if (ac->m4ac.object_type == AOT_AAC_LTP) {
                     int ret;
@@ -2139,7 +2139,7 @@ static int spectral_to_sample(AACContext
                 if(che->ch[1].tns.present)
                     apply_tns(ac, 1, &che->ch[1], che->ch[1].coeffs);
                 if(j == ID_CCE && !che->coup.is_indep_coup && (che->coup.domain == 1))
-                    apply_channel_coupling(ac, che, dependent_coupling);
+                    apply_channel_coupling(ac, che, apply_dependent_coupling);
 #ifdef AAC_SSR
                 if (ac->m4ac.object_type == AOT_AAC_SSR) {
                     apply_ssr(ac, &che->ch[0]);
@@ -2154,7 +2154,7 @@ static int spectral_to_sample(AACContext
                 }
 #endif /* AAC_SSR */
                 if(j == ID_CCE && che->coup.is_indep_coup && (che->coup.domain == 1))
-                    apply_channel_coupling(ac, che, independent_coupling);
+                    apply_channel_coupling(ac, che, apply_independent_coupling);
 #ifdef AAC_LTP
                 if (ac->m4ac.object_type == AOT_AAC_LTP) {
                     int ret;



More information about the FFmpeg-soc mailing list