Skip to content

Commit bfa01f1

Browse files
committed
Update build for LPCNet merge
1 parent 7458c1b commit bfa01f1

16 files changed

+59
-61
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "lpcnet"]
2-
path = lpcnet
3-
url = https://github.com/xiph/LPCNet

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ target_include_directories(
278278
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/opus>
279279
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}
280280
${CMAKE_CURRENT_SOURCE_DIR}
281-
${CMAKE_CURRENT_SOURCE_DIR}/lpcnet/include
281+
${CMAKE_CURRENT_SOURCE_DIR}/dnn/include
282282
celt
283283
silk)
284284

@@ -601,7 +601,7 @@ if(OPUS_BUILD_PROGRAMS)
601601
target_include_directories(opus_demo PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
602602
target_include_directories(opus_demo PRIVATE silk) # debug.h
603603
target_include_directories(opus_demo PRIVATE celt) # arch.h
604-
target_include_directories(opus_demo PRIVATE lpcnet/include)
604+
target_include_directories(opus_demo PRIVATE dnn/include)
605605
target_link_libraries(opus_demo PRIVATE opus ${OPUS_REQUIRED_LIBRARIES})
606606
target_compile_definitions(opus_demo PRIVATE OPUS_BUILD)
607607

@@ -652,7 +652,7 @@ if(BUILD_TESTING AND NOT BUILD_SHARED_LIBS)
652652

653653
add_executable(test_opus_encode ${test_opus_encode_sources})
654654
target_include_directories(test_opus_encode
655-
PRIVATE ${CMAKE_CURRENT_BINARY_DIR} celt lpcnet/include)
655+
PRIVATE ${CMAKE_CURRENT_BINARY_DIR} celt dnn/include)
656656
target_link_libraries(test_opus_encode PRIVATE opus)
657657
target_compile_definitions(test_opus_encode PRIVATE OPUS_BUILD)
658658
add_test(NAME test_opus_encode COMMAND ${CMAKE_COMMAND}
@@ -662,7 +662,7 @@ if(BUILD_TESTING AND NOT BUILD_SHARED_LIBS)
662662

663663
add_executable(test_opus_extensions ${test_opus_extensions_sources})
664664
target_include_directories(test_opus_extensions
665-
PRIVATE ${CMAKE_CURRENT_BINARY_DIR} celt lpcnet/include)
665+
PRIVATE ${CMAKE_CURRENT_BINARY_DIR} celt dnn/include)
666666
target_link_libraries(test_opus_extensions PRIVATE opus)
667667
target_compile_definitions(test_opus_extensions PRIVATE OPUS_BUILD)
668668
add_test(NAME test_opus_extensions COMMAND ${CMAKE_COMMAND}

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DIST_SUBDIRS = doc
1111

1212
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk \
1313
-I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed $(NE10_CFLAGS) \
14-
-I$(top_srcdir)/lpcnet/include
14+
-I$(top_srcdir)/dnn/include
1515

1616
include celt_sources.mk
1717
include lpcnet_sources.mk
@@ -154,7 +154,7 @@ opus_compare_LDADD = $(LIBM)
154154
trivial_example_SOURCES = doc/trivial_example.c
155155
trivial_example_LDADD = libopus.la $(LIBM)
156156

157-
dump_weights_blob_SOURCES = lpcnet/src/write_lpcnet_weights.c
157+
dump_weights_blob_SOURCES = dnn/write_lpcnet_weights.c
158158
dump_weights_blob_LDADD = $(LIBM)
159159
dump_weights_blob_CFLAGS = $(AM_CFLAGS) -DDUMP_BINARY_WEIGHTS
160160

autogen.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ for /F "tokens=4 delims= " %%A in ('findstr "download_model.sh" autogen.sh') do
1010
REM Remove trailing ")" character from the model variable
1111
set "model=%model:~0,-1%"
1212

13-
cd lpcnet
13+
cd dnn
1414
call download_model.bat %model%
1515
cd ..
1616

autogen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ srcdir=`dirname $0`
1010
test -n "$srcdir" && cd "$srcdir"
1111

1212
git submodule update --init
13-
(cd lpcnet; ./download_model.sh 2ddc476)
13+
(cd dnn; ./download_model.sh 2ddc476)
1414

1515
echo "Updating build configuration files, please wait...."
1616

celt/celt_decoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#include "celt_lpc.h"
5252
#include "vq.h"
5353
#include "lpcnet.h"
54-
#include "lpcnet/src/lpcnet_private.h"
54+
#include "dnn/lpcnet_private.h"
5555

5656
/* The maximum pitch lag to allow in the pitch-based PLC. It's possible to save
5757
CPU time in the PLC pitch search by making this smaller than MAX_PERIOD. The

dnn/download_model.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ if not exist %model% (
77
)
88

99
tar -xvzf %model%
10+
move .\src\*.c .
11+
move .\src\*.h .
1012

lpcnet

Lines changed: 0 additions & 1 deletion
This file was deleted.

lpcnet_headers.mk

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ silk/dred_coding.h \
33
silk/dred_config.h \
44
silk/dred_decoder.h \
55
silk/dred_encoder.h \
6-
lpcnet/include/dred_rdovae.h \
7-
lpcnet/include/lpcnet.h \
8-
lpcnet/src/burg.h \
9-
lpcnet/src/common.h \
10-
lpcnet/src/freq.h \
11-
lpcnet/src/kiss99.h \
12-
lpcnet/src/lpcnet_private.h \
13-
lpcnet/src/nnet_data.h \
14-
lpcnet/src/nnet.h \
15-
lpcnet/src/plc_data.h \
16-
lpcnet/src/tansig_table.h \
17-
lpcnet/src/vec.h \
18-
lpcnet/src/vec_avx.h \
19-
lpcnet/src/vec_neon.h \
20-
lpcnet/src/dred_rdovae_constants.h \
21-
lpcnet/src/dred_rdovae_enc.h \
22-
lpcnet/src/dred_rdovae_enc_data.h \
23-
lpcnet/src/dred_rdovae_dec.h \
24-
lpcnet/src/dred_rdovae_dec_data.h \
25-
lpcnet/src/dred_rdovae_stats_data.h \
26-
lpcnet/src/pitch.h
6+
dnn/include/dred_rdovae.h \
7+
dnn/include/lpcnet.h \
8+
dnn/burg.h \
9+
dnn/common.h \
10+
dnn/freq.h \
11+
dnn/kiss99.h \
12+
dnn/lpcnet_private.h \
13+
dnn/nnet_data.h \
14+
dnn/nnet.h \
15+
dnn/plc_data.h \
16+
dnn/tansig_table.h \
17+
dnn/vec.h \
18+
dnn/vec_avx.h \
19+
dnn/vec_neon.h \
20+
dnn/dred_rdovae_constants.h \
21+
dnn/dred_rdovae_enc.h \
22+
dnn/dred_rdovae_enc_data.h \
23+
dnn/dred_rdovae_dec.h \
24+
dnn/dred_rdovae_dec_data.h \
25+
dnn/dred_rdovae_stats_data.h \
26+
dnn/pitch.h

lpcnet_sources.mk

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
LPCNET_SOURCES = \
2-
lpcnet/src/burg.c \
3-
lpcnet/src/common.c \
4-
lpcnet/src/freq.c \
5-
lpcnet/src/kiss99.c \
6-
lpcnet/src/lpcnet.c \
7-
lpcnet/src/lpcnet_dec.c \
8-
lpcnet/src/lpcnet_enc.c \
9-
lpcnet/src/lpcnet_plc.c \
10-
lpcnet/src/lpcnet_tables.c \
11-
lpcnet/src/nnet.c \
12-
lpcnet/src/nnet_data.c \
13-
lpcnet/src/plc_data.c \
14-
lpcnet/src/parse_lpcnet_weights.c \
15-
lpcnet/src/dred_rdovae.c \
16-
lpcnet/src/dred_rdovae_enc.c \
17-
lpcnet/src/dred_rdovae_enc_data.c \
18-
lpcnet/src/dred_rdovae_dec.c \
19-
lpcnet/src/dred_rdovae_dec_data.c \
20-
lpcnet/src/dred_rdovae_stats_data.c \
2+
dnn/burg.c \
3+
dnn/common.c \
4+
dnn/freq.c \
5+
dnn/kiss99.c \
6+
dnn/lpcnet.c \
7+
dnn/lpcnet_dec.c \
8+
dnn/lpcnet_enc.c \
9+
dnn/lpcnet_plc.c \
10+
dnn/lpcnet_tables.c \
11+
dnn/nnet.c \
12+
dnn/nnet_data.c \
13+
dnn/plc_data.c \
14+
dnn/parse_lpcnet_weights.c \
15+
dnn/dred_rdovae.c \
16+
dnn/dred_rdovae_enc.c \
17+
dnn/dred_rdovae_enc_data.c \
18+
dnn/dred_rdovae_dec.c \
19+
dnn/dred_rdovae_dec_data.c \
20+
dnn/dred_rdovae_stats_data.c \
2121
silk/dred_encoder.c \
2222
silk/dred_coding.c \
2323
silk/dred_decoder.c

0 commit comments

Comments
 (0)