49 #define CELTEncoder OpusCustomEncoder 50 #define CELTDecoder OpusCustomDecoder 51 #define CELTMode OpusCustomMode 63 #define __celt_check_mode_ptr_ptr(ptr) ((ptr) + ((ptr) - (const CELTMode**)(ptr))) 65 #define __celt_check_analysis_ptr(ptr) ((ptr) + ((ptr) - (const AnalysisInfo*)(ptr))) 70 #define OPUS_FRAMESIZE_VARIABLE 5010 73 #define CELT_SET_PREDICTION_REQUEST 10002 79 #define CELT_SET_PREDICTION(x) CELT_SET_PREDICTION_REQUEST, __opus_check_int(x) 81 #define CELT_SET_INPUT_CLIPPING_REQUEST 10004 82 #define CELT_SET_INPUT_CLIPPING(x) CELT_SET_INPUT_CLIPPING_REQUEST, __opus_check_int(x) 84 #define CELT_GET_AND_CLEAR_ERROR_REQUEST 10007 85 #define CELT_GET_AND_CLEAR_ERROR(x) CELT_GET_AND_CLEAR_ERROR_REQUEST, __opus_check_int_ptr(x) 87 #define CELT_SET_CHANNELS_REQUEST 10008 88 #define CELT_SET_CHANNELS(x) CELT_SET_CHANNELS_REQUEST, __opus_check_int(x) 92 #define CELT_SET_START_BAND_REQUEST 10010 93 #define CELT_SET_START_BAND(x) CELT_SET_START_BAND_REQUEST, __opus_check_int(x) 95 #define CELT_SET_END_BAND_REQUEST 10012 96 #define CELT_SET_END_BAND(x) CELT_SET_END_BAND_REQUEST, __opus_check_int(x) 98 #define CELT_GET_MODE_REQUEST 10015 100 #define CELT_GET_MODE(x) CELT_GET_MODE_REQUEST, __celt_check_mode_ptr_ptr(x) 102 #define CELT_SET_SIGNALLING_REQUEST 10016 103 #define CELT_SET_SIGNALLING(x) CELT_SET_SIGNALLING_REQUEST, __opus_check_int(x) 105 #define CELT_SET_TONALITY_REQUEST 10018 106 #define CELT_SET_TONALITY(x) CELT_SET_TONALITY_REQUEST, __opus_check_int(x) 107 #define CELT_SET_TONALITY_SLOPE_REQUEST 10020 108 #define CELT_SET_TONALITY_SLOPE(x) CELT_SET_TONALITY_SLOPE_REQUEST, __opus_check_int(x) 110 #define CELT_SET_ANALYSIS_REQUEST 10022 111 #define CELT_SET_ANALYSIS(x) CELT_SET_ANALYSIS_REQUEST, __celt_check_analysis_ptr(x) 113 #define OPUS_SET_LFE_REQUEST 10024 114 #define OPUS_SET_LFE(x) OPUS_SET_LFE_REQUEST, __opus_check_int(x) 116 #define OPUS_SET_ENERGY_MASK_REQUEST 10026 117 #define OPUS_SET_ENERGY_MASK(x) OPUS_SET_ENERGY_MASK_REQUEST, __opus_check_val16_ptr(x) 140 #define celt_encoder_ctl opus_custom_encoder_ctl 141 #define celt_decoder_ctl opus_custom_decoder_ctl 145 #define OPUS_CUSTOM_NOSTATIC 147 #define OPUS_CUSTOM_NOSTATIC static OPUS_INLINE 150 static const unsigned char trim_icdf[11] = {126, 124, 119, 109, 87, 41, 19, 9, 4, 2, 0};
152 static const unsigned char spread_icdf[4] = {25, 23, 2, 0};
154 static const unsigned char tapset_icdf[3]={2,1,0};
157 static const unsigned char toOpusTable[20] = {
158 0xE0, 0xE8, 0xF0, 0xF8,
159 0xC0, 0xC8, 0xD0, 0xD8,
160 0xA0, 0xA8, 0xB0, 0xB8,
161 0x00, 0x00, 0x00, 0x00,
162 0x80, 0x88, 0x90, 0x98,
165 static const unsigned char fromOpusTable[16] = {
166 0x80, 0x88, 0x90, 0x98,
167 0x40, 0x48, 0x50, 0x58,
168 0x20, 0x28, 0x30, 0x38,
169 0x00, 0x08, 0x10, 0x18
172 static OPUS_INLINE
int toOpus(
unsigned char c)
176 ret = toOpusTable[c>>3];
183 static OPUS_INLINE
int fromOpus(
unsigned char c)
188 return fromOpusTable[(c>>3)-16] | (c&0x7);
192 #define COMBFILTER_MAXPERIOD 1024 193 #define COMBFILTER_MINPERIOD 15 206 #ifdef NON_STATIC_COMB_FILTER_CONST_C 211 #ifndef OVERRIDE_COMB_FILTER_CONST 212 # define comb_filter_const(y, x, T, N, g10, g11, g12, arch) \ 213 ((void)(arch),comb_filter_const_c(y, x, T, N, g10, g11, g12)) 221 opus_val16 *oldBandE,
int start,
int effEnd,
int C,
int CC,
int isTransient,
222 int LM,
int downsample,
int silence);
void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, opus_val16 g0, opus_val16 g1, int tapset0, int tapset1, const opus_val16 *window, int overlap, int arch)
Definition: celt.c:183
Opus reference implementation types.
int c
Definition: cpp_unittests.cpp:275
float celt_sig
Definition: arch.h:151
int celt_encoder_init(CELTEncoder *st, opus_int32 sampling_rate, int channels, int arch)
Definition: celt_encoder.c:205
float noisiness
Definition: celt.h:57
int resampling_factor(opus_int32 rate)
Definition: celt.c:62
const GLfloat * m
Definition: gl2ext.h:850
#define CELTMode
Definition: celt.h:51
float tonality
Definition: celt.h:55
GLenum mode
Definition: gl2.h:461
Opus reference implementation constants.
#define CELTDecoder
Definition: celt.h:50
float tonality_slope
Definition: celt.h:56
float opus_val16
Definition: arch.h:148
GLuint start
Definition: gl2ext.h:323
int celt_encode_with_ec(OpusCustomEncoder *OPUS_RESTRICT st, const opus_val16 *pcm, int frame_size, unsigned char *compressed, int nbCompressedBytes, ec_enc *enc)
int celt_encoder_get_size(int channels)
Definition: celt_encoder.c:128
OPENSSL_EXPORT const ASN1_OBJECT int const unsigned char int len
Definition: x509.h:1053
int ret
Definition: test_unit_dft.c:69
TestSubObjConstructor T
Definition: TestTypedefs.idl:84
EGLSurface EGLint x
Definition: eglext.h:950
void init_caps(const CELTMode *m, int *cap, int LM, int C)
Definition: celt.c:255
int opus_int32
Definition: opus_types.h:146
float celt_norm
Definition: arch.h:152
#define X(sym)
Definition: alsasymboltable_linux.h:139
int celt_decode_with_ec(OpusCustomDecoder *OPUS_RESTRICT st, const unsigned char *data, int len, opus_val16 *OPUS_RESTRICT pcm, int frame_size, ec_dec *dec, int accum)
Decoder state.
Definition: celt_decoder.c:67
#define CELTEncoder
Definition: celt.h:49
EGLSurface EGLint EGLint y
Definition: eglext.h:950
#define N
Definition: gcc-loops.cpp:14
void celt_preemphasis(const opus_val16 *OPUS_RESTRICT pcmp, celt_sig *OPUS_RESTRICT inp, int N, int CC, int upsample, const opus_val16 *coef, celt_sig *mem, int clip)
Definition: celt_encoder.c:462
string arch
Definition: runtests.py:65
int bandwidth
Definition: celt.h:60
EGLSurface EGLNativeWindowType * window
Definition: eglext.h:934
EGLStreamKHR EGLint EGLint EGLint const void * data
Definition: eglext.h:984
int valid
Definition: celt.h:54
Definition: type_traits_unittest.cc:77
float music_prob
Definition: celt.h:59
Opus-Custom reference implementation API.
int celt_decoder_get_size(int channels)
Definition: celt_decoder.c:103
Encoder state.
Definition: celt_encoder.c:58
Various architecture definitions for CELT.
float opus_val32
Definition: arch.h:149
const signed char tf_select_table[4][8]
Definition: celt.c:247
float activity
Definition: celt.h:58
int celt_decoder_init(CELTDecoder *st, opus_int32 sampling_rate, int channels)
Definition: celt_decoder.c:135