| 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 | |
|