Defines |
#define | CELT_OK 0 |
#define | CELT_BAD_ARG -1 |
#define | CELT_INVALID_MODE -2 |
#define | CELT_INTERNAL_ERROR -3 |
#define | CELT_CORRUPTED_DATA -4 |
#define | CELT_UNIMPLEMENTED -5 |
#define | CELT_INVALID_STATE -6 |
#define | CELT_ALLOC_FAIL -7 |
#define | CELT_GET_MODE(x) CELT_GET_MODE_REQUEST, _celt_check_mode_ptr_ptr(x) |
#define | CELT_SET_COMPLEXITY(x) CELT_SET_COMPLEXITY_REQUEST, _celt_check_int(x) |
#define | CELT_SET_PREDICTION(x) CELT_SET_PREDICTION_REQUEST, _celt_check_int(x) |
#define | CELT_SET_VBR_RATE(x) CELT_SET_VBR_RATE_REQUEST, _celt_check_int(x) |
#define | CELT_RESET_STATE_REQUEST 8 |
#define | CELT_SET_START_BAND(x) CELT_SET_START_BAND_REQUEST, _celt_check_int(x) |
#define | CELT_GET_LOOKAHEAD 1001 |
#define | CELT_GET_SAMPLE_RATE 1003 |
#define | CELT_GET_BITSTREAM_VERSION 2000 |
Typedefs |
typedef struct CELTEncoder | CELTEncoder |
| Encoder state.
|
typedef struct CELTDecoder | CELTDecoder |
typedef struct CELTMode | CELTMode |
Functions |
EXPORT CELTMode * | celt_mode_create (celt_int32 Fs, int frame_size, int *error) |
EXPORT void | celt_mode_destroy (CELTMode *mode) |
EXPORT int | celt_mode_info (const CELTMode *mode, int request, celt_int32 *value) |
EXPORT CELTEncoder * | celt_encoder_create (const CELTMode *mode, int channels, int *error) |
EXPORT void | celt_encoder_destroy (CELTEncoder *st) |
EXPORT int | celt_encode_resynthesis_float (CELTEncoder *st, const float *pcm, float *optional_resynthesis, int frame_size, unsigned char *compressed, int nbCompressedBytes) |
EXPORT int | celt_encode_float (CELTEncoder *st, const float *pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes) |
EXPORT int | celt_encode_resynthesis (CELTEncoder *st, const celt_int16 *pcm, celt_int16 *optional_resynthesis, int frame_size, unsigned char *compressed, int nbCompressedBytes) |
EXPORT int | celt_encode (CELTEncoder *st, const celt_int16 *pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes) |
EXPORT int | celt_encoder_ctl (CELTEncoder *st, int request,...) |
EXPORT CELTDecoder * | celt_decoder_create (const CELTMode *mode, int channels, int *error) |
EXPORT void | celt_decoder_destroy (CELTDecoder *st) |
EXPORT int | celt_decode_float (CELTDecoder *st, const unsigned char *data, int len, float *pcm, int frame_size) |
EXPORT int | celt_decode (CELTDecoder *st, const unsigned char *data, int len, celt_int16 *pcm, int frame_size) |
EXPORT int | celt_decoder_ctl (CELTDecoder *st, int request,...) |
EXPORT const char * | celt_strerror (int error) |
Contains all the functions for encoding and decoding audio.
Definition in file celt.h.