shithub: opus

Download patch

ref: e52d240e88f988bf77509bfa01e9ad4f18d4ec44
parent: 9c137d493370cb195f0fb062f94b362c8bed481e
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Mon May 29 14:36:42 EDT 2023

Add blob writing

git/query: bad hash 859bfae61f89fbb57c0d068ca14fc69d12b8b374
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,7 +117,8 @@
                   tests/test_opus_extensions \
                   tests/test_opus_padding \
                   tests/test_opus_projection \
-                  trivial_example
+                  trivial_example \
+                  dump_weights_blob
 
 TESTS = celt/tests/test_unit_cwrs32 \
         celt/tests/test_unit_dft \
@@ -149,6 +150,10 @@
 
 trivial_example_SOURCES = doc/trivial_example.c
 trivial_example_LDADD = libopus.la $(LIBM)
+
+dump_weights_blob_SOURCES = lpcnet/src/write_lpcnet_weights.c
+dump_weights_blob_LDADD = $(LIBM)
+dump_weights_blob_CFLAGS = $(AM_CFLAGS) -DDUMP_BINARY_WEIGHTS
 
 tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
 tests_test_opus_api_LDADD = libopus.la $(NE10_LIBS) $(LIBM)
--- a/autogen.sh
+++ b/autogen.sh
@@ -10,7 +10,7 @@
 test -n "$srcdir" && cd "$srcdir"
 
 git submodule update --init
-(cd lpcnet; ./download_model.sh 399be7c)
+(cd lpcnet; ./download_model.sh 859bfae)
 
 echo "Updating build configuration files, please wait...."
 
--