diff options
Diffstat (limited to 'stripdown.sh')
-rwxr-xr-x | stripdown.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/stripdown.sh b/stripdown.sh index c8d8332..c91694a 100755 --- a/stripdown.sh +++ b/stripdown.sh | |||
@@ -3,10 +3,10 @@ | |||
3 | BUILDDIR=build_stripped | 3 | BUILDDIR=build_stripped |
4 | DESTDIR=codec2lite | 4 | DESTDIR=codec2lite |
5 | 5 | ||
6 | LIBSRC="codebook.c codebookd.c codebookge.c codebookjvm.c codebooknewamp1.c codebooknewamp1_energy.c codec2.c codec2_fft.c interp.c kiss_fft.c kiss_fftr.c lpc.c lsp.c mbest.c newamp1.c newamp2.c nlp.c pack.c phase.c postfilter.c quantise.c sine.c" | 6 | LIBSRC="codec2.c codec2_fft.c interp.c kiss_fft.c kiss_fftr.c lpc.c lsp.c mbest.c newamp1.c nlp.c pack.c phase.c postfilter.c quantise.c sine.c" |
7 | LIBGENSRC="codebooklspmelvq.c codebookmel.c codebooknewamp2.c codebooknewamp2_energy.c" | 7 | LIBGENSRC="codebook.c codebookd.c codebookge.c codebooknewamp1.c codebooknewamp1_energy.c codebooknewamp2.c codebooknewamp2_energy.c codebookjmv.c" |
8 | 8 | ||
9 | LIBINC="_kiss_fft_guts.h comp_prim.h lpc.h os.h bpf.h lsp.h phase.h bpfb.h defines.h machdep.h postfilter.h mbest.h quantise.h codec2_fft.h interp.h newamp1.h sine.h codec2_internal.h kiss_fft.h newamp2.h comp.h kiss_fftr.h nlp.h" | 9 | LIBINC="_kiss_fft_guts.h comp_prim.h lpc.h os.h bpf.h lsp.h phase.h bpfb.h defines.h machdep.h postfilter.h mbest.h quantise.h codec2_fft.h interp.h newamp1.h sine.h codec2_internal.h kiss_fft.h comp.h kiss_fftr.h nlp.h" |
10 | LIBGENINC="version.h" | 10 | LIBGENINC="version.h" |
11 | 11 | ||
12 | EMPTYINC="c2wideband.h dump.h" | 12 | EMPTYINC="c2wideband.h dump.h" |
@@ -36,7 +36,7 @@ done | |||
36 | 36 | ||
37 | cd ${BUILDDIR} | 37 | cd ${BUILDDIR} |
38 | cmake .. | 38 | cmake .. |
39 | make tnewamp1 | 39 | cmake --build . -t codec2 |
40 | 40 | ||
41 | # copy generated files | 41 | # copy generated files |
42 | for file in ${LIBGENSRC}; do | 42 | for file in ${LIBGENSRC}; do |
@@ -55,10 +55,9 @@ CFLAGS = -Wall -Wno-strict-overflow -std=gnu11 -fPIC -g -O2 -I. -lm | |||
55 | CFLAGS += -DHORUS_L2_RX -DINTERLEAVER -DRUN_TIME_TABLES -DSCRAMBLER -Dcodec2_EXPORTS | 55 | CFLAGS += -DHORUS_L2_RX -DINTERLEAVER -DRUN_TIME_TABLES -DSCRAMBLER -Dcodec2_EXPORTS |
56 | CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers | 56 | CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers |
57 | 57 | ||
58 | LIBSRC=codebook.c codebookd.c codebookge.c codebookmel.c codebooklspmelvq.c codebookjvm.c \ | 58 | LIBSRC=codebook.c codebookd.c codebookge.c codebookjmv.c codebooknewamp1_energy.c \ |
59 | codebooknewamp1.c codebooknewamp1_energy.c codebooknewamp2.c codebooknewamp2_energy.c \ | 59 | codebooknewamp1.c codec2.c codec2_fft.c interp.c kiss_fft.c kiss_fftr.c \ |
60 | codec2.c codec2_fft.c interp.c kiss_fft.c kiss_fftr.c lpc.c lsp.c mbest.c \ | 60 | lpc.c lsp.c mbest.c newamp1.c nlp.c pack.c phase.c postfilter.c quantise.c sine.c |
61 | newamp1.c newamp2.c nlp.c pack.c phase.c postfilter.c quantise.c sine.c | ||
62 | 61 | ||
63 | all: main | 62 | all: main |
64 | 63 | ||
@@ -87,6 +86,8 @@ int main() { | |||
87 | int off = 0; | 86 | int off = 0; |
88 | unsigned char bits[128]; | 87 | unsigned char bits[128]; |
89 | 88 | ||
89 | fprintf(stderr, "%d samples per frame, %d bits per frame\n", nsam, nbit); | ||
90 | |||
90 | fread(input, 976692, 1, f); | 91 | fread(input, 976692, 1, f); |
91 | fclose(f); | 92 | fclose(f); |
92 | 93 | ||