Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
0ba6458b
Verified
Commit
0ba6458b
authored
2 years ago
by
Jan Buethe
Committed by
Jean-Marc Valin
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
added --enable-neural-fec option to configure
parent
e04826d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
configure.ac
+9
-0
9 additions, 0 deletions
configure.ac
silk/dred_decoder.c
+0
-1
0 additions, 1 deletion
silk/dred_decoder.c
silk/enc_API.c
+4
-0
4 additions, 0 deletions
silk/enc_API.c
silk/init_encoder.c
+4
-1
4 additions, 1 deletion
silk/init_encoder.c
silk/structs.h
+2
-0
2 additions, 0 deletions
silk/structs.h
with
19 additions
and
2 deletions
configure.ac
+
9
−
0
View file @
0ba6458b
...
...
@@ -162,6 +162,15 @@ AS_IF([test "$enable_custom_modes" = "yes"],[
AM_CONDITIONAL([CUSTOM_MODES], [test "$enable_custom_modes" = "yes"])
AC_ARG_ENABLE([neural-fec],
[AS_HELP_STRING([--enable-neural-fec], [Use neural FEC for SILK])],,
[enable_neural_fec=yes])
AS_IF([test "$enable_neural_fec" = "yes"],[
AC_DEFINE([ENABLE_NEURAL_FEC], [1], [Neural FEC])
AC_DEFINE([DISABLE_DOT_PROD], [1], [Disable dot product])
])
AC_ARG_ENABLE([neural-plc],
[AS_HELP_STRING([--enable-neural-plc], [Use neural PLC for SILK])],,
[enable_neural_plc=yes])
...
...
This diff is collapsed.
Click to expand it.
silk/dred_decoder.c
+
0
−
1
View file @
0ba6458b
...
...
@@ -73,7 +73,6 @@ void dred_decode_redundancy_package(DREDDec *dec, float *features, opus_uint8 *b
{
q_level
=
(
int
)
round
(
DRED_ENC_Q0
+
1
.
f
*
(
DRED_ENC_Q1
-
DRED_ENC_Q0
)
*
i
/
(
DRED_NUM_REDUNDANCY_FRAMES
-
2
));
offset
=
q_level
*
DRED_LATENT_DIM
;
dred_decode_latents
(
&
dec
->
ec_dec
,
latents
,
...
...
This diff is collapsed.
Click to expand it.
silk/enc_API.c
+
4
−
0
View file @
0ba6458b
...
...
@@ -41,7 +41,9 @@ POSSIBILITY OF SUCH DAMAGE.
#include
"main_FLP.h"
#endif
#ifdef ENABLE_NEURAL_FEC
#include
"dred_encoder.h"
#endif
/***************************************/
/* Read control structure from encoder */
...
...
@@ -466,8 +468,10 @@ opus_int silk_Encode( /* O Returns error co
}
silk_encode_do_VAD_Fxx
(
&
psEnc
->
state_Fxx
[
0
],
activity
);
#ifdef ENABLE_NEURAL_FEC
/* DRED Encoder */
dred_encode_silk_frame
(
&
psEnc
->
state_Fxx
[
0
].
sCmn
.
dred_encoder
,
&
psEnc
->
state_Fxx
[
0
].
sCmn
.
inputBuf
[
0
]
);
#endif
/* Encode */
for
(
n
=
0
;
n
<
encControl
->
nChannelsInternal
;
n
++
)
{
...
...
This diff is collapsed.
Click to expand it.
silk/init_encoder.c
+
4
−
1
View file @
0ba6458b
...
...
@@ -36,7 +36,9 @@ POSSIBILITY OF SUCH DAMAGE.
#include
"tuning_parameters.h"
#include
"cpu_support.h"
#ifdef ENABLE_NEURAL_FEC
#include
"dred_encoder.h"
#endif
/*********************************/
/* Initialize Silk Encoder state */
...
...
@@ -62,8 +64,9 @@ opus_int silk_init_encoder(
/* Initialize Silk VAD */
ret
+=
silk_VAD_Init
(
&
psEnc
->
sCmn
.
sVAD
);
#ifdef ENABLE_NEURAL_FEC
/* Initialize DRED Encoder */
init_dred_encoder
(
&
psEnc
->
sCmn
.
dred_encoder
);
#endif
return
ret
;
}
This diff is collapsed.
Click to expand it.
silk/structs.h
+
2
−
0
View file @
0ba6458b
...
...
@@ -234,7 +234,9 @@ typedef struct {
opus_int
LBRR_GainIncreases
;
/* Gains increment for coding LBRR frames */
SideInfoIndices
indices_LBRR
[
MAX_FRAMES_PER_PACKET
];
opus_int8
pulses_LBRR
[
MAX_FRAMES_PER_PACKET
][
MAX_FRAME_LENGTH
];
#ifdef ENABLE_NEURAL_FEC
DREDEnc
dred_encoder
;
#endif
}
silk_encoder_state
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment