[vlc-devel] commit: linear resampler: use fixed-point as appropriate ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 19 21:15:50 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 19 22:06:17 2009 +0300| [f42db4154cb303aab4a8d49ec364ebcc9c6391cc] | committer: Rémi Denis-Courmont 

linear resampler: use fixed-point as appropriate

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f42db4154cb303aab4a8d49ec364ebcc9c6391cc
---

 modules/audio_filter/resampler/linear.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/audio_filter/resampler/linear.c b/modules/audio_filter/resampler/linear.c
index 8262ce8..130b357 100644
--- a/modules/audio_filter/resampler/linear.c
+++ b/modules/audio_filter/resampler/linear.c
@@ -44,7 +44,7 @@ static int  OpenFilter ( vlc_object_t * );
 static void CloseFilter( vlc_object_t * );
 static block_t *Resample( filter_t *, block_t * );
 
-#if 1
+#if HAVE_FPU
 typedef float sample_t;
 # define VLC_CODEC_NATIVE VLC_CODEC_FL32
 #else
@@ -137,7 +137,7 @@ static block_t *Resample( filter_t *p_filter, block_t *p_in_buf )
             for( unsigned i = 0; i < i_nb_channels ; i++ )
             {
                 p_out[i] = p_prev_sample[i];
-#if CPU_CAPABILITY_FPU
+#if HAVE_FPU
                 p_out[i] += (p_in[i] - p_prev_sample[i])
 #else
                 p_out[i] += (int64_t)(p_in[i] - p_prev_sample[i])
@@ -160,7 +160,7 @@ static block_t *Resample( filter_t *p_filter, block_t *p_in_buf )
             for( unsigned i = 0; i < i_nb_channels ; i++ )
             {
                 p_out[i] = p_in[i];
-#if CPU_CAPABILITY_FPU
+#if HAVE_FPU
                 p_out[i] += (p_in[i + i_nb_channels] - p_in[i])
 #else
                 p_out[i] += (int64_t)(p_in[i + i_nb_channels] - p_in[i])




More information about the vlc-devel mailing list