[MPlayer-dev-eng] [PATCH] AF Pitch filter

Compn tempn at twmi.rr.com
Mon May 28 04:40:58 CEST 2007


On Mon, 07 May 2007 00:01:49 +0100, Charlie Brej scribed:

>Index: libaf/kiss_fft.c
>Index: libaf/kiss_fft.h

>Index: libaf/af_pitch.c
>===================================================================
>--- libaf/af_pitch.c	(revision 0)
>+++ libaf/af_pitch.c	(revision 0)
>+#include "kiss_fftr.h"

what is wrong with this picture? :)

gcc -I../libavcodec -I../libavformat -Wdeclaration-after-statement -I. -I.. -I../libavutil -W -Wall -Wno-unused-parameter -O2 -march=i486 -mtune=i686 -g3  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/local/include/freetype2 -I/usr/local/include   -c -o af_pitch.o af_pitch.c
af_pitch.c:12:23: kiss_fftr.h: No such file or directory
af_pitch.c:30: error: syntax error before "kiss_fftr_cfg"
af_pitch.c:30: warning: no semicolon at end of struct or union
af_pitch.c:31: warning: type defaults to `int' in declaration of `ffr_cfg_inv'
af_pitch.c:31: warning: data definition has no type or storage class
af_pitch.c:33: warning: type defaults to `int' in declaration of `af_pitch_t'
af_pitch.c:33: warning: data definition has no type or storage class
af_pitch.c: In function `control':
af_pitch.c:38: error: `s' undeclared (first use in this function)
af_pitch.c:38: error: (Each undeclared identifier is reported only once
af_pitch.c:38: error: for each function it appears in.)
af_pitch.c:44: warning: implicit declaration of function `kiss_fft_next_fast_size'
af_pitch.c:81: warning: implicit declaration of function `kiss_fft_free'
af_pitch.c:82: warning: implicit declaration of function `kiss_fftr_alloc'
af_pitch.c: At top level:
af_pitch.c:111: error: syntax error before '*' token
af_pitch.c: In function `kiss_fftr_simple':
af_pitch.c:113: error: `setup' undeclared (first use in this function)
af_pitch.c:118: error: `kiss_fft_cpx' undeclared (first use in this function)
af_pitch.c:118: error: syntax error before "ffr_vals"
af_pitch.c:120: warning: implicit declaration of function `kiss_fftr'
af_pitch.c:120: error: `data_in' undeclared (first use in this function)
af_pitch.c:120: error: `ffr_vals' undeclared (first use in this function)
af_pitch.c:127: warning: implicit declaration of function `kiss_fftri'
af_pitch.c:130: error: `data_out' undeclared (first use in this function)
af_pitch.c:115: warning: unused variable `count_max'
af_pitch.c: In function `play':
af_pitch.c:143: error: `s' undeclared (first use in this function)
af_pitch.c:144: warning: ISO C90 forbids mixed declarations and code
af_pitch.c: In function `af_open':
af_pitch.c:214: error: `s' undeclared (first use in this function)
make: *** [af_pitch.o] Error 1

Administrator at KAMA /d/mplayer-testclips/mplayer/libaf
$ ls *.h
_kiss_fft_guts.h  af_hrtf.h      af_wadsp.h  equalizer.h  window.h
af.h              af_mp.h        control.h   filter.h
af_format.h       af_resample.h  dsp.h       kiss_fft.h

Administrator at KAMA /d/mplayer-testclips/mplayer/libaf
$ vi af_pitch.c 


------------
i tried removing that r and make again,  but still error:
------------



Administrator at KAMA /d/mplayer-testclips/mplayer/libaf
$ make
gcc -I../libavcodec -I../libavformat -Wdeclaration-after-statement -I. -I.. -I../libavutil -W -Wall -Wno-unused-parameter -O2 -march=i486 -mtune=i686 -g3  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I/usr/local/include/freetype2 -I/usr/local/include   -c -o af_pitch.o af_pitch.c
af_pitch.c:30: error: syntax error before "kiss_fftr_cfg"
af_pitch.c:30: warning: no semicolon at end of struct or union
af_pitch.c:31: warning: type defaults to `int' in declaration of `ffr_cfg_inv'
af_pitch.c:31: warning: data definition has no type or storage class
af_pitch.c:33: warning: type defaults to `int' in declaration of `af_pitch_t'
af_pitch.c:33: warning: data definition has no type or storage class
af_pitch.c: In function `control':
af_pitch.c:38: error: `s' undeclared (first use in this function)
af_pitch.c:38: error: (Each undeclared identifier is reported only once
af_pitch.c:38: error: for each function it appears in.)
af_pitch.c:82: warning: implicit declaration of function `kiss_fftr_alloc'
af_pitch.c: At top level:
af_pitch.c:111: error: syntax error before '*' token
af_pitch.c: In function `kiss_fftr_simple':
af_pitch.c:113: error: `setup' undeclared (first use in this function)
af_pitch.c:120: warning: implicit declaration of function `kiss_fftr'
af_pitch.c:120: error: `data_in' undeclared (first use in this function)
af_pitch.c:127: warning: implicit declaration of function `kiss_fftri'
af_pitch.c:130: error: `data_out' undeclared (first use in this function)
af_pitch.c: In function `play':
af_pitch.c:143: error: `s' undeclared (first use in this function)
af_pitch.c:144: warning: ISO C90 forbids mixed declarations and code
af_pitch.c: In function `af_open':
af_pitch.c:214: error: `s' undeclared (first use in this function)
make: *** [af_pitch.o] Error 1



-compn



More information about the MPlayer-dev-eng mailing list