summaryrefslogtreecommitdiffstats
path: root/libaf
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-29 19:41:21 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-29 19:41:21 +0000
commit47e2a4ad80721634a320f35acbe98dec8073bd16 (patch)
treed494aba76c99971f7ee8f9a69585aaa670a75941 /libaf
parent3fe168658ad0914fe8a0c2de95d06648e90b8388 (diff)
downloadmpv-47e2a4ad80721634a320f35acbe98dec8073bd16.tar.bz2
mpv-47e2a4ad80721634a320f35acbe98dec8073bd16.tar.xz
less namespace pollution
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14275 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf')
-rw-r--r--libaf/filter.c14
-rw-r--r--libaf/window.c16
-rw-r--r--libaf/window.h14
3 files changed, 22 insertions, 22 deletions
diff --git a/libaf/filter.c b/libaf/filter.c
index 1eef94e13c..460049f0af 100644
--- a/libaf/filter.c
+++ b/libaf/filter.c
@@ -114,19 +114,19 @@ int design_fir(unsigned int n, _ftype_t* w, _ftype_t* fc, unsigned int flags, _f
// Get window coefficients
switch(flags & WINDOW_MASK){
case(BOXCAR):
- boxcar(n,w); break;
+ af_window_boxcar(n,w); break;
case(TRIANG):
- triang(n,w); break;
+ af_window_triang(n,w); break;
case(HAMMING):
- hamming(n,w); break;
+ af_window_hamming(n,w); break;
case(HANNING):
- hanning(n,w); break;
+ af_window_hanning(n,w); break;
case(BLACKMAN):
- blackman(n,w); break;
+ af_window_blackman(n,w); break;
case(FLATTOP):
- flattop(n,w); break;
+ af_window_flattop(n,w); break;
case(KAISER):
- kaiser(n,w,opt); break;
+ af_window_kaiser(n,w,opt); break;
default:
return -1;
}
diff --git a/libaf/window.c b/libaf/window.c
index c04913d165..06830b8dfc 100644
--- a/libaf/window.c
+++ b/libaf/window.c
@@ -24,7 +24,7 @@
// n window length
// w buffer for the window parameters
*/
-void boxcar(int n, _ftype_t* w)
+void af_window_boxcar(int n, _ftype_t* w)
{
int i;
// Calculate window coefficients
@@ -44,7 +44,7 @@ void boxcar(int n, _ftype_t* w)
// n window length
// w buffer for the window parameters
*/
-void triang(int n, _ftype_t* w)
+void af_window_triang(int n, _ftype_t* w)
{
_ftype_t k1 = (_ftype_t)(n & 1);
_ftype_t k2 = 1/((_ftype_t)n + k1);
@@ -65,7 +65,7 @@ void triang(int n, _ftype_t* w)
// n window length
// w buffer for the window parameters
*/
-void hanning(int n, _ftype_t* w)
+void af_window_hanning(int n, _ftype_t* w)
{
int i;
_ftype_t k = 2*M_PI/((_ftype_t)(n+1)); // 2*pi/(N+1)
@@ -84,7 +84,7 @@ void hanning(int n, _ftype_t* w)
// n window length
// w buffer for the window parameters
*/
-void hamming(int n,_ftype_t* w)
+void af_window_hamming(int n,_ftype_t* w)
{
int i;
_ftype_t k = 2*M_PI/((_ftype_t)(n-1)); // 2*pi/(N-1)
@@ -103,7 +103,7 @@ void hamming(int n,_ftype_t* w)
// n window length
// w buffer for the window parameters
*/
-void blackman(int n,_ftype_t* w)
+void af_window_blackman(int n,_ftype_t* w)
{
int i;
_ftype_t k1 = 2*M_PI/((_ftype_t)(n-1)); // 2*pi/(N-1)
@@ -123,7 +123,7 @@ void blackman(int n,_ftype_t* w)
// n window length
// w buffer for the window parameters
*/
-void flattop(int n,_ftype_t* w)
+void af_window_flattop(int n,_ftype_t* w)
{
int i;
_ftype_t k1 = 2*M_PI/((_ftype_t)(n-1)); // 2*pi/(N-1)
@@ -142,7 +142,7 @@ void flattop(int n,_ftype_t* w)
*/
#define BIZ_EPSILON 1E-21 // Max error acceptable
-_ftype_t besselizero(_ftype_t x)
+static _ftype_t besselizero(_ftype_t x)
{
_ftype_t temp;
_ftype_t sum = 1.0;
@@ -186,7 +186,7 @@ _ftype_t besselizero(_ftype_t x)
// 8.960 5.7 0.000275 -90
// 10.056 6.4 0.000087 -100
*/
-void kaiser(int n, _ftype_t* w, _ftype_t b)
+void af_window_kaiser(int n, _ftype_t* w, _ftype_t b)
{
_ftype_t tmp;
_ftype_t k1 = 1.0/besselizero(b);
diff --git a/libaf/window.h b/libaf/window.h
index ab43d43b6d..000dda6766 100644
--- a/libaf/window.h
+++ b/libaf/window.h
@@ -22,12 +22,12 @@
#ifndef _WINDOW_H
#define _WINDOW_H 1
-extern void boxcar(int n, _ftype_t* w);
-extern void triang(int n, _ftype_t* w);
-extern void hanning(int n, _ftype_t* w);
-extern void hamming(int n,_ftype_t* w);
-extern void blackman(int n,_ftype_t* w);
-extern void flattop(int n,_ftype_t* w);
-extern void kaiser(int n, _ftype_t* w,_ftype_t b);
+extern void af_window_boxcar(int n, _ftype_t* w);
+extern void af_window_triang(int n, _ftype_t* w);
+extern void af_window_hanning(int n, _ftype_t* w);
+extern void af_window_hamming(int n,_ftype_t* w);
+extern void af_window_blackman(int n,_ftype_t* w);
+extern void af_window_flattop(int n,_ftype_t* w);
+extern void af_window_kaiser(int n, _ftype_t* w,_ftype_t b);
#endif