Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Buethe <jbuethe@amazon.de>2023-12-07 14:37:51 +0300
committerJan Buethe <jbuethe@amazon.de>2023-12-07 14:37:51 +0300
commite727d543adbbd0986bc6a3b33e263af57995124d (patch)
treeb0d6c3c9826f76fcec474cebbbf3d9fd3c5515eb
parent09682f825252719a25fa15070dd1d4c2d49b397b (diff)
some fixes
-rw-r--r--dnn/osce_structs.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/dnn/osce_structs.h b/dnn/osce_structs.h
index 4f1720dd..67fbf811 100644
--- a/dnn/osce_structs.h
+++ b/dnn/osce_structs.h
@@ -3,8 +3,12 @@
#include "opus_types.h"
#include "osce_config.h"
+#ifndef DISABLE_LACE
#include "lace_data.h"
+#endif
+#ifndef DISABLE_NOLACE
#include "nolace_data.h"
+#endif
#include "nndsp.h"
#include "nnet.h"
@@ -18,8 +22,9 @@ typedef struct {
float signal_history[OSCE_FEATURES_MAX_HISTORY];
} OSCEFeatureState;
-/* LACE */
+#ifndef DISABLE_LACE
+/* LACE */
typedef struct {
float feature_net_conv2_state[LACE_FEATURE_NET_CONV2_STATE_SIZE];
float feature_net_gru_state[LACE_COND_DIM]; /* ToDo: fix! */
@@ -33,12 +38,14 @@ typedef struct {
typedef struct
{
LACELayers layers;
- LACEState state;
float window[LACE_OVERLAP_SIZE];
} LACE;
-/* NoLACE */
+#endif /* #ifndef DISABLE_LACE */
+
+#ifndef DISABLE_NOLACE
+/* NoLACE */
typedef struct {
float feature_net_conv2_state[NOLACE_FEATURE_NET_CONV2_STATE_SIZE];
float feature_net_gru_state[NOLACE_COND_DIM];
@@ -62,19 +69,28 @@ typedef struct {
typedef struct {
NOLACELayers layers;
- NoLACEState state;
float window[LACE_OVERLAP_SIZE];
} NoLACE;
+#endif /* #ifndef DISABLE_NOLACE */
+
/* OSCEModel */
typedef struct {
+#ifndef DISABLE_LACE
LACE lace;
+#endif
+#ifndef DISABLE_NOLACE
NoLACE nolace;
+#endif
} OSCEModel;
typedef union {
+#ifndef DISABLE_LACE
LACEState lace;
+#endif
+#ifndef DISABLE_NOLACE
NoLACEState nolace;
+#endif
} OSCEState;
#endif \ No newline at end of file