summaryrefslogtreecommitdiff
path: root/stripdown.sh
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2025-08-15 12:42:40 +0200
committererdgeist <erdgeist@erdgeist.org>2025-08-15 12:42:40 +0200
commit30325d24d107dbf133da39f7c96d1510fd1c9449 (patch)
tree932baa5b2a4475821f16dccf9e3e05011daa6d92 /stripdown.sh
parent9022d768021bbe15c7815cc6f8b64218b46f0e10 (diff)
Bump to codec2 version 1.2.0erdgeist-bump-to-1.2.0
Diffstat (limited to 'stripdown.sh')
-rwxr-xr-xstripdown.sh17
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 @@
3BUILDDIR=build_stripped 3BUILDDIR=build_stripped
4DESTDIR=codec2lite 4DESTDIR=codec2lite
5 5
6LIBSRC="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" 6LIBSRC="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"
7LIBGENSRC="codebooklspmelvq.c codebookmel.c codebooknewamp2.c codebooknewamp2_energy.c" 7LIBGENSRC="codebook.c codebookd.c codebookge.c codebooknewamp1.c codebooknewamp1_energy.c codebooknewamp2.c codebooknewamp2_energy.c codebookjmv.c"
8 8
9LIBINC="_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" 9LIBINC="_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"
10LIBGENINC="version.h" 10LIBGENINC="version.h"
11 11
12EMPTYINC="c2wideband.h dump.h" 12EMPTYINC="c2wideband.h dump.h"
@@ -36,7 +36,7 @@ done
36 36
37cd ${BUILDDIR} 37cd ${BUILDDIR}
38cmake .. 38cmake ..
39make tnewamp1 39cmake --build . -t codec2
40 40
41# copy generated files 41# copy generated files
42for file in ${LIBGENSRC}; do 42for file in ${LIBGENSRC}; do
@@ -55,10 +55,9 @@ CFLAGS = -Wall -Wno-strict-overflow -std=gnu11 -fPIC -g -O2 -I. -lm
55CFLAGS += -DHORUS_L2_RX -DINTERLEAVER -DRUN_TIME_TABLES -DSCRAMBLER -Dcodec2_EXPORTS 55CFLAGS += -DHORUS_L2_RX -DINTERLEAVER -DRUN_TIME_TABLES -DSCRAMBLER -Dcodec2_EXPORTS
56CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers 56CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers
57 57
58LIBSRC=codebook.c codebookd.c codebookge.c codebookmel.c codebooklspmelvq.c codebookjvm.c \ 58LIBSRC=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
63all: main 62all: 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