Reworked the static modes. Now, if all static modes have the same frame size,

overlap or number of channels, we can pass the hint to the compiler.
This commit is contained in:
Jean-Marc Valin 2008-04-11 04:07:52 +10:00
parent c1a4c2ec44
commit b18ec0b08d
6 changed files with 106 additions and 35 deletions

View file

@ -39,7 +39,7 @@
#include "os_support.h"
#ifdef STATIC_MODES
#include "static_modes.h"
#include "static_modes.c"
#endif
#define MODEVALID 0xa110ca7e
@ -287,7 +287,6 @@ CELTMode EXPORT *celt_mode_create(celt_int32_t Fs, int channels, int frame_size,
mode->Fs = Fs;
mode->overlap = lookahead;
mode->mdctSize = frame_size;
mode->nbMdctBlocks = 1;
mode->nbChannels = channels;
mode->eBands = compute_ebands(Fs, frame_size, &mode->nbEBands);
compute_pbands(mode, res);