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
ccb244a7
Verified
Commit
ccb244a7
authored
1 year ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
bc102f5f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4158
failed
1 year ago
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dnn/dump_data.c
+0
-1
0 additions, 1 deletion
dnn/dump_data.c
dnn/lpcnet_enc.c
+0
-1
0 additions, 1 deletion
dnn/lpcnet_enc.c
dnn/lpcnet_plc.c
+0
-4
0 additions, 4 deletions
dnn/lpcnet_plc.c
dnn/lpcnet_private.h
+0
-4
0 additions, 4 deletions
dnn/lpcnet_private.h
with
0 additions
and
10 deletions
dnn/dump_data.c
+
0
−
1
View file @
ccb244a7
...
...
@@ -101,7 +101,6 @@ void write_audio(LPCNetEncState *st, const opus_int16 *pcm, const int *noise, FI
OPUS_MOVE
(
&
st
->
sig_mem
[
1
],
&
st
->
sig_mem
[
0
],
LPC_ORDER
-
1
);
st
->
sig_mem
[
0
]
=
p
+
ulaw2lin
(
e
);
st
->
exc_mem
=
e
;
}
fwrite
(
data
,
4
*
FRAME_SIZE
,
1
,
file
);
}
...
...
This diff is collapsed.
Click to expand it.
dnn/lpcnet_enc.c
+
0
−
1
View file @
ccb244a7
...
...
@@ -50,7 +50,6 @@ int lpcnet_encoder_get_size() {
int
lpcnet_encoder_init
(
LPCNetEncState
*
st
)
{
memset
(
st
,
0
,
sizeof
(
*
st
));
st
->
exc_mem
=
lin2ulaw
(
0
.
f
);
pitchdnn_init
(
&
st
->
pitchdnn
);
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
dnn/lpcnet_plc.c
+
0
−
4
View file @
ccb244a7
...
...
@@ -132,10 +132,6 @@ static void queue_features(LPCNetPLCState *st, const float *features) {
OPUS_COPY
(
&
st
->
cont_features
[(
CONT_VECTORS
-
1
)
*
NB_FEATURES
],
features
,
NB_FEATURES
);
}
static
void
replace_features
(
LPCNetPLCState
*
st
,
const
float
*
features
)
{
OPUS_COPY
(
&
st
->
cont_features
[(
CONT_VECTORS
-
1
)
*
NB_FEATURES
],
features
,
NB_FEATURES
);
}
/* In this causal version of the code, the DNN model implemented by compute_plc_pred()
needs to generate two feature vectors to conceal the first lost packet.*/
...
...
This diff is collapsed.
Click to expand it.
dnn/lpcnet_private.h
+
0
−
4
View file @
ccb244a7
...
...
@@ -36,13 +36,9 @@ struct LPCNetEncState{
float
exc_buf
[
PITCH_BUF_SIZE
];
float
lp_buf
[
PITCH_BUF_SIZE
];
float
lp_mem
[
4
];
float
last_gain
;
int
last_period
;
float
lpc
[
LPC_ORDER
];
float
vq_mem
[
NB_BANDS
];
float
features
[
NB_TOTAL_FEATURES
];
float
sig_mem
[
LPC_ORDER
];
int
exc_mem
;
float
burg_cepstrum
[
2
*
NB_BANDS
];
};
...
...
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