celt.h | celt.h | |||
---|---|---|---|---|
skipping to change at line 116 | skipping to change at line 116 | |||
#define CELT_SET_START_BAND_REQUEST 10000 | #define CELT_SET_START_BAND_REQUEST 10000 | |||
#define CELT_SET_START_BAND(x) CELT_SET_START_BAND_REQUEST, _celt_check_int (x) | #define CELT_SET_START_BAND(x) CELT_SET_START_BAND_REQUEST, _celt_check_int (x) | |||
#define CELT_SET_END_BAND_REQUEST 10001 | #define CELT_SET_END_BAND_REQUEST 10001 | |||
#define CELT_SET_END_BAND(x) CELT_SET_END_BAND_REQUEST, _celt_check_int(x) | #define CELT_SET_END_BAND(x) CELT_SET_END_BAND_REQUEST, _celt_check_int(x) | |||
#define CELT_SET_CHANNELS_REQUEST 10002 | #define CELT_SET_CHANNELS_REQUEST 10002 | |||
#define CELT_SET_CHANNELS(x) CELT_SET_CHANNELS_REQUEST, _celt_check_int(x) | #define CELT_SET_CHANNELS(x) CELT_SET_CHANNELS_REQUEST, _celt_check_int(x) | |||
#define CELT_SET_SIGNALLING_REQUEST 10003 | ||||
#define CELT_SET_SIGNALLING(x) CELT_SET_SIGNALLING_REQUEST, _celt_check_int | ||||
(x) | ||||
/** GET the lookahead used in the current mode */ | /** GET the lookahead used in the current mode */ | |||
#define CELT_GET_LOOKAHEAD 1001 | #define CELT_GET_LOOKAHEAD 1001 | |||
/** GET the sample rate used in the current mode */ | /** GET the sample rate used in the current mode */ | |||
#define CELT_GET_SAMPLE_RATE 1003 | #define CELT_GET_SAMPLE_RATE 1003 | |||
/** GET the bit-stream version for compatibility check */ | /** GET the bit-stream version for compatibility check */ | |||
#define CELT_GET_BITSTREAM_VERSION 2000 | #define CELT_GET_BITSTREAM_VERSION 2000 | |||
/** Contains the state of an encoder. One encoder state is needed | /** Contains the state of an encoder. One encoder state is needed | |||
for each stream. It is initialised once at the beginning of the | for each stream. It is initialised once at the beginning of the | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 4 lines changed or added | |||
opus.h | opus.h | |||
---|---|---|---|---|
skipping to change at line 126 | skipping to change at line 126 | |||
#define OPUS_SET_DTX_FLAG_REQUEST 16 | #define OPUS_SET_DTX_FLAG_REQUEST 16 | |||
#define OPUS_SET_DTX_FLAG(x) OPUS_SET_DTX_FLAG_REQUEST, __check_int(x) | #define OPUS_SET_DTX_FLAG(x) OPUS_SET_DTX_FLAG_REQUEST, __check_int(x) | |||
#define OPUS_GET_DTX_FLAG_REQUEST 17 | #define OPUS_GET_DTX_FLAG_REQUEST 17 | |||
#define OPUS_GET_DTX_FLAG(x) OPUS_GET_DTX_FLAG_REQUEST, __check_int_ptr(x) | #define OPUS_GET_DTX_FLAG(x) OPUS_GET_DTX_FLAG_REQUEST, __check_int_ptr(x) | |||
#define OPUS_SET_VOICE_RATIO_REQUEST 18 | #define OPUS_SET_VOICE_RATIO_REQUEST 18 | |||
#define OPUS_SET_VOICE_RATIO(x) OPUS_SET_VOICE_RATIO_REQUEST, __check_int(x ) | #define OPUS_SET_VOICE_RATIO(x) OPUS_SET_VOICE_RATIO_REQUEST, __check_int(x ) | |||
#define OPUS_GET_VOICE_RATIO_REQUEST 19 | #define OPUS_GET_VOICE_RATIO_REQUEST 19 | |||
#define OPUS_GET_VOICE_RATIO(x) OPUS_GET_VOICE_RATIO_REQUEST, __check_int_p tr(x) | #define OPUS_GET_VOICE_RATIO(x) OPUS_GET_VOICE_RATIO_REQUEST, __check_int_p tr(x) | |||
#define OPUS_SET_VBR_CONSTRAINT_REQUEST 20 | ||||
#define OPUS_SET_VBR_CONSTRAINT(x) OPUS_SET_VBR_CONSTRAINT_REQUEST, __check | ||||
_int(x) | ||||
#define OPUS_GET_VBR_CONSTRAINT_REQUEST 21 | ||||
#define OPUS_GET_VBR_CONSTRAINT(x) OPUS_GET_VBR_CONSTRAINT_REQUEST, __check | ||||
_int_ptr(x) | ||||
typedef struct OpusEncoder OpusEncoder; | typedef struct OpusEncoder OpusEncoder; | |||
typedef struct OpusDecoder OpusDecoder; | typedef struct OpusDecoder OpusDecoder; | |||
OpusEncoder *opus_encoder_create(int Fs, int channels); | OpusEncoder *opus_encoder_create(int Fs, int channels); | |||
/* returns length of data payload (in bytes) */ | /* returns length of data payload (in bytes) */ | |||
int opus_encode(OpusEncoder *st, const short *pcm, int frame_size, | int opus_encode(OpusEncoder *st, const short *pcm, int frame_size, | |||
unsigned char *data, int max_data_bytes); | unsigned char *data, int max_data_bytes); | |||
void opus_encoder_destroy(OpusEncoder *st); | void opus_encoder_destroy(OpusEncoder *st); | |||
skipping to change at line 149 | skipping to change at line 154 | |||
OpusDecoder *opus_decoder_create(int Fs, int channels); | OpusDecoder *opus_decoder_create(int Fs, int channels); | |||
/* returns (CELT) error code */ | /* returns (CELT) error code */ | |||
int opus_decode(OpusDecoder *st, const unsigned char *data, int len, | int opus_decode(OpusDecoder *st, const unsigned char *data, int len, | |||
short *pcm, int frame_size, int decode_fec); | short *pcm, int frame_size, int decode_fec); | |||
int opus_decoder_ctl(OpusDecoder *st, int request, ...); | int opus_decoder_ctl(OpusDecoder *st, int request, ...); | |||
void opus_decoder_destroy(OpusDecoder *st); | void opus_decoder_destroy(OpusDecoder *st); | |||
int opus_packet_get_bandwidth(const unsigned char *data); | ||||
int opus_packet_get_samples_per_frame(const unsigned char *data, int Fs); | ||||
int opus_packet_get_nb_channels(const unsigned char *data); | ||||
int opus_packet_get_nb_frames(const unsigned char packet[], int len); | ||||
int opus_decoder_get_nb_samples(const OpusDecoder *dec, const unsigned char | ||||
packet[], int len); | ||||
#if OPUS_TEST_RANGE_CODER_STATE | #if OPUS_TEST_RANGE_CODER_STATE | |||
int opus_encoder_get_final_range(OpusEncoder *st); | int opus_encoder_get_final_range(OpusEncoder *st); | |||
int opus_decoder_get_final_range(OpusDecoder *st); | int opus_decoder_get_final_range(OpusDecoder *st); | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif /* OPUS_H */ | #endif /* OPUS_H */ | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 14 lines changed or added | |||