123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #ifndef MODES_H
- #define MODES_H
- #include "opus_types.h"
- #include "celt.h"
- #include "arch.h"
- #include "mdct.h"
- #include "entenc.h"
- #include "entdec.h"
- #define MAX_PERIOD 1024
- #ifndef OVERLAP
- #define OVERLAP(mode) ((mode)->overlap)
- #endif
- #ifndef FRAMESIZE
- #define FRAMESIZE(mode) ((mode)->mdctSize)
- #endif
- typedef struct {
- int size;
- const opus_int16 *index;
- const unsigned char *bits;
- const unsigned char *caps;
- } PulseCache;
- struct OpusCustomMode {
- opus_int32 Fs;
- int overlap;
- int nbEBands;
- int effEBands;
- opus_val16 preemph[4];
- const opus_int16 *eBands;
- int maxLM;
- int nbShortMdcts;
- int shortMdctSize;
- int nbAllocVectors;
- const unsigned char *allocVectors;
- const opus_int16 *logN;
- const opus_val16 *window;
- mdct_lookup mdct;
- PulseCache cache;
- };
- #endif
|