speex.h | speex.h | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
#ifndef SPEEX_H | #ifndef SPEEX_H | |||
#define SPEEX_H | #define SPEEX_H | |||
#include "speex_bits.h" | #include "speex_bits.h" | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/* Values allowed for *ctl() requests */ | /* Values allowed for *ctl() requests */ | |||
#define SPEEX_SET_PF 0 | #define SPEEX_SET_ENH 0 | |||
#define SPEEX_GET_PF 1 | #define SPEEX_GET_ENH 1 | |||
/*Would be SPEEX_SET_FRAME_SIZE, but it's (currently) invalid*/ | /*Would be SPEEX_SET_FRAME_SIZE, but it's (currently) invalid*/ | |||
#define SPEEX_GET_FRAME_SIZE 3 | #define SPEEX_GET_FRAME_SIZE 3 | |||
#define SPEEX_SET_QUALITY 4 | #define SPEEX_SET_QUALITY 4 | |||
#define SPEEX_GET_QUALITY 5 | #define SPEEX_GET_QUALITY 5 | |||
#define SPEEX_SET_MODE 6 | #define SPEEX_SET_MODE 6 | |||
#define SPEEX_GET_MODE 7 | #define SPEEX_GET_MODE 7 | |||
#define SPEEX_SET_LOW_MODE 8 | #define SPEEX_SET_LOW_MODE 8 | |||
#define SPEEX_GET_LOW_MODE 9 | #define SPEEX_GET_LOW_MODE 9 | |||
#define SPEEX_SET_HIGH_MODE 10 | #define SPEEX_SET_HIGH_MODE 10 | |||
#define SPEEX_GET_HIGH_MODE 11 | #define SPEEX_GET_HIGH_MODE 11 | |||
#define SPEEX_SET_VBR 12 | #define SPEEX_SET_VBR 12 | |||
#define SPEEX_GET_VBR 13 | #define SPEEX_GET_VBR 13 | |||
#define SPEEX_SET_VBR_QUALITY 14 | #define SPEEX_SET_VBR_QUALITY 14 | |||
#define SPEEX_GET_VBR_QUALITY 15 | #define SPEEX_GET_VBR_QUALITY 15 | |||
#define SPEEX_SET_COMPLEXITY 16 | #define SPEEX_SET_COMPLEXITY 16 | |||
#define SPEEX_GET_COMPLEXITY 17 | #define SPEEX_GET_COMPLEXITY 17 | |||
/*Would be SPEEX_SET_FRAME_SIZE, but it's (currently) invalid*/ | ||||
#define SPEEX_GET_BITRATE 19 | ||||
/* Preserving compatibility:*/ | ||||
#define SPEEX_SET_PF 0 | ||||
#define SPEEX_GET_PF 1 | ||||
#define SPEEX_NB_MODES 2 | #define SPEEX_NB_MODES 2 | |||
struct SpeexMode; | struct SpeexMode; | |||
/* Prototypes for mode function pointers */ | /* Prototypes for mode function pointers */ | |||
typedef void *(*encoder_init_func)(struct SpeexMode *mode); | typedef void *(*encoder_init_func)(struct SpeexMode *mode); | |||
typedef void (*encoder_destroy_func)(void *st); | typedef void (*encoder_destroy_func)(void *st); | |||
typedef void (*encode_func)(void *state, float *in, SpeexBits *bits); | typedef void (*encode_func)(void *state, float *in, SpeexBits *bits); | |||
typedef void *(*decoder_init_func)(struct SpeexMode *mode); | typedef void *(*decoder_init_func)(struct SpeexMode *mode); | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 8 lines changed or added | |||