Home
last modified time | relevance | path

Searched refs:codec2_state (Results 1 – 2 of 2) sorted by relevance

/dports/audio/codec2/codec2-1.0.3/src/
H A Dcodec2.h93 void codec2_destroy(struct CODEC2 *codec2_state);
97 int codec2_samples_per_frame(struct CODEC2 *codec2_state);
98 int codec2_bits_per_frame(struct CODEC2 *codec2_state);
99 int codec2_bytes_per_frame(struct CODEC2 *codec2_state);
102 int codec2_get_spare_bit_index(struct CODEC2 *codec2_state);
104 void codec2_set_natural_or_gray(struct CODEC2 *codec2_state, int gray);
106 float codec2_get_energy(struct CODEC2 *codec2_state, const unsigned char *bits);
111 float codec2_get_var(struct CODEC2 *codec2_state);
112 float *codec2_enable_user_ratek(struct CODEC2 *codec2_state, int *K);
115 void codec2_700c_post_filter(struct CODEC2 *codec2_state, int en);
[all …]
H A Dcodec2.c2254 if ((codec2_state->fmlfeat = fopen(feat_fn, "wb")) == NULL) { in codec2_open_mlfeat()
2259 if ((codec2_state->fmlmodel = fopen(model_fn, "wb")) == NULL) { in codec2_open_mlfeat()
2286 float codec2_get_var(struct CODEC2 *codec2_state) { in codec2_get_var() argument
2287 if (codec2_state->nse) in codec2_get_var()
2288 return codec2_state->se/codec2_state->nse; in codec2_get_var()
2296 return codec2_state->user_rate_K_vec_no_mean_; in codec2_enable_user_ratek()
2299 void codec2_700c_post_filter(struct CODEC2 *codec2_state, int en) { in codec2_700c_post_filter() argument
2300 codec2_state->post_filter_en = en; in codec2_700c_post_filter()
2303 void codec2_700c_eq(struct CODEC2 *codec2_state, int en) { in codec2_700c_eq() argument
2304 codec2_state->eq_en = en; in codec2_700c_eq()
[all …]