mirror of
https://github.com/google/liblc3.git
synced 2026-05-10 14:48:01 +00:00
mdct: work on 2 input buffers, and remove 1 encoding buffer
This commit is contained in:
10
src/mdct.h
10
src/mdct.h
@@ -33,15 +33,13 @@
|
||||
* Forward MDCT transformation
|
||||
* dt, sr Duration and samplerate (size of the transform)
|
||||
* sr_dst Samplerate destination, scale transforam accordingly
|
||||
* x [-nd..-1] Previous, [0..ns-1] Current samples
|
||||
* y Output `ns` frequency coefficients
|
||||
* x, d Temporal samples and delayed buffer
|
||||
* y, d Output `ns` coefficients and `nd` delayed samples
|
||||
*
|
||||
* The number of previous samples `nd` accessed on `x` is :
|
||||
* nd: `ns` * 23/30 for 7.5ms frame duration
|
||||
* nd: `ns` * 5/ 8 for 10ms frame duration
|
||||
* `x` and `y` can be the same buffer
|
||||
*/
|
||||
void lc3_mdct_forward(enum lc3_dt dt, enum lc3_srate sr,
|
||||
enum lc3_srate sr_dst, const float *x, float *y);
|
||||
enum lc3_srate sr_dst, const float *x, float *d, float *y);
|
||||
|
||||
/**
|
||||
* Inverse MDCT transformation
|
||||
|
||||
Reference in New Issue
Block a user