mirror of
https://github.com/xiph/opus.git
synced 2025-06-01 08:07:41 +00:00
Add pitch feature computation
This commit is contained in:
parent
96d89e99d8
commit
0100cd95de
3 changed files with 57 additions and 1 deletions
|
@ -17,6 +17,9 @@
|
|||
#define PLC_MAX_FEC 100
|
||||
#define MAX_FEATURE_BUFFER_SIZE 4
|
||||
|
||||
#define PITCH_IF_MAX_FREQ 30
|
||||
#define PITCH_IF_FEATURES (3*PITCH_IF_MAX_FREQ - 2)
|
||||
|
||||
struct LPCNetState {
|
||||
LPCNetModel model;
|
||||
int arch;
|
||||
|
@ -44,6 +47,9 @@ struct LPCNetEncState{
|
|||
int arch;
|
||||
float analysis_mem[OVERLAP_SIZE];
|
||||
float mem_preemph;
|
||||
kiss_fft_cpx prev_if[PITCH_IF_MAX_FREQ];
|
||||
float if_features[PITCH_IF_FEATURES];
|
||||
float xcorr_features[PITCH_MAX_PERIOD - PITCH_MIN_PERIOD];
|
||||
float pitch_mem[LPC_ORDER];
|
||||
float pitch_filt;
|
||||
float xc[2][PITCH_MAX_PERIOD+1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue