celt.h | celt.h | |||
---|---|---|---|---|
skipping to change at line 74 | skipping to change at line 74 | |||
#define CELT_INTERNAL_ERROR -3 | #define CELT_INTERNAL_ERROR -3 | |||
/** The data passed (e.g. compressed data to decoder) is corrupted */ | /** The data passed (e.g. compressed data to decoder) is corrupted */ | |||
#define CELT_CORRUPTED_DATA -4 | #define CELT_CORRUPTED_DATA -4 | |||
/** Invalid/unsupported request number */ | /** Invalid/unsupported request number */ | |||
#define CELT_UNIMPLEMENTED -5 | #define CELT_UNIMPLEMENTED -5 | |||
/* Requests */ | /* Requests */ | |||
#define CELT_SET_COMPLEXITY_REQUEST 2 | #define CELT_SET_COMPLEXITY_REQUEST 2 | |||
/** Controls the complexity from 0-10 (int) */ | /** Controls the complexity from 0-10 (int) */ | |||
#define CELT_SET_COMPLEXITY(x) CELT_SET_COMPLEXITY_REQUEST, _celt_check_int (x) | #define CELT_SET_COMPLEXITY(x) CELT_SET_COMPLEXITY_REQUEST, _celt_check_int (x) | |||
#define CELT_SET_LTP_REQUEST 3 | ||||
/** Activate or deactivate the use of the long term predictor (PITCH) from | ||||
0 or 1 (int) */ | ||||
#define CELT_SET_LTP(x) CELT_SET_LTP_REQUEST, _celt_check_int(x) | ||||
/** GET the frame size used in the current mode */ | /** GET the frame size used in the current mode */ | |||
#define CELT_GET_FRAME_SIZE 1000 | #define CELT_GET_FRAME_SIZE 1000 | |||
/** 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 number of channels used in the current mode */ | /** GET the number of channels used in the current mode */ | |||
#define CELT_GET_NB_CHANNELS 1002 | #define CELT_GET_NB_CHANNELS 1002 | |||
/** 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 | |||
skipping to change at line 110 | skipping to change at line 113 | |||
typedef struct CELTMode CELTMode; | typedef struct CELTMode CELTMode; | |||
/** \defgroup codec Encoding and decoding */ | /** \defgroup codec Encoding and decoding */ | |||
/* @{ */ | /* @{ */ | |||
/* Mode calls */ | /* Mode calls */ | |||
/** Creates a new mode struct. This will be passed to an encoder or decoder . | /** Creates a new mode struct. This will be passed to an encoder or decoder . | |||
The mode MUST NOT BE DESTROYED until the encoders and decoders that use it | The mode MUST NOT BE DESTROYED until the encoders and decoders that use it | |||
are destroyed as well. | are destroyed as well. | |||
@param Fs Sampling rate (32000 to 64000 Hz) | @param Fs Sampling rate (32000 to 96000 Hz) | |||
@param channels Number of channels | @param channels Number of channels | |||
@param frame_size Number of samples (per channel) to encode in each packet (64 - 256) | @param frame_size Number of samples (per channel) to encode in each packet (64 - 256) | |||
@param lookahead Extra latency (in samples per channel) in addition to the frame size (between 32 and frame_size). The larger that value, the better the quality (at the expense of latency) | @param lookahead Extra latency (in samples per channel) in addition to the frame size (between 32 and frame_size). The larger that value, the better the quality (at the expense of latency) | |||
@param error Returned error code (if NULL, no error will be returned) | @param error Returned error code (if NULL, no error will be returned) | |||
@return A newly created mode | @return A newly created mode | |||
*/ | */ | |||
EXPORT CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_ size, int *error); | EXPORT CELTMode *celt_mode_create(celt_int32_t Fs, int channels, int frame_ size, int *error); | |||
/** Destroys a mode struct. Only call this after all encoders and decoders | /** Destroys a mode struct. Only call this after all encoders and decoders | |||
using this mode are destroyed as well. | using this mode are destroyed as well. | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 5 lines changed or added | |||