/external/libopus/silk/ |
D | MacroCount.h | 50 printf("ops_count = %d \n ", (opus_int32)ops_count); in silk_PrintCount() 54 static OPUS_INLINE opus_int32 silk_MUL(opus_int32 a32, opus_int32 b32){ in silk_MUL() 55 opus_int32 ret; in silk_MUL() 69 static OPUS_INLINE opus_int32 silk_MLA(opus_int32 a32, opus_int32 b32, opus_int32 c32){ in silk_MLA() 70 opus_int32 ret; in silk_MLA() 77 static OPUS_INLINE opus_int32 silk_MLA_uint(opus_uint32 a32, opus_uint32 b32, opus_uint32 c32){ in silk_MLA_uint() 85 static OPUS_INLINE opus_int32 silk_SMULWB(opus_int32 a32, opus_int32 b32){ in silk_SMULWB() 86 opus_int32 ret; in silk_SMULWB() 88 …ret = (a32 >> 16) * (opus_int32)((opus_int16)b32) + (((a32 & 0x0000FFFF) * (opus_int32)((opus_int1… in silk_SMULWB() 92 static OPUS_INLINE opus_int32 silk_SMLAWB(opus_int32 a32, opus_int32 b32, opus_int32 c32){ in silk_SMLAWB() [all …]
|
D | SigProc_FIX.h | 64 …opus_int32 Fs_Hz_in, /* I Input sampling rate (Hz) … 65 …opus_int32 Fs_Hz_out, /* I Output sampling rate (Hz) … 76 …opus_int32 inLen /* I Number of input samples … 83 …opus_int32 *S, /* I/O State vector [ 2 ] … 86 …opus_int32 inLen /* I Number of input samples … 93 …opus_int32 *S, /* I/O State vector [ 6 ] … 96 …opus_int32 inLen /* I Number of input samples … 106 …const opus_int32 *B_Q28, /* I MA coefficients [3] … 107 …const opus_int32 *A_Q28, /* I AR coefficients [2] … 108 …opus_int32 *S, /* I/O State vector [2] … [all …]
|
D | structs.h | 47 opus_int32 sLTP_shp_Q14[ 2 * MAX_FRAME_LENGTH ]; 48 opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ]; 49 opus_int32 sAR2_Q14[ MAX_SHAPE_LPC_ORDER ]; 50 opus_int32 sLF_AR_shp_Q14; 51 opus_int32 sDiff_shp_Q14; 55 opus_int32 rand_seed; 56 opus_int32 prev_gain_Q16; 64 …opus_int32 AnaState[ 2 ]; /* Analysis filterbank state: 0-8 kHz … 65 …opus_int32 AnaState1[ 2 ]; /* Analysis filterbank state: 0-4 kHz … 66 …opus_int32 AnaState2[ 2 ]; /* Analysis filterbank state: 0-2 kHz … [all …]
|
D | MacroDebug.h | 55 static OPUS_INLINE opus_int32 silk_ADD32_(opus_int32 a, opus_int32 b, char *file, int line){ in silk_ADD32_() 56 opus_int32 ret; in silk_ADD32_() 103 static OPUS_INLINE opus_int32 silk_SUB32_(opus_int32 a, opus_int32 b, char *file, int line){ in silk_SUB32_() 104 opus_int32 ret; in silk_SUB32_() 137 res = (opus_int16)silk_SAT16( silk_ADD32( (opus_int32)(a16), (b16) ) ); in silk_ADD_SAT16_() 138 if ( res != silk_SAT16( (opus_int32)a16 + (opus_int32)b16 ) ) in silk_ADD_SAT16_() 150 static OPUS_INLINE opus_int32 silk_ADD_SAT32_(opus_int32 a32, opus_int32 b32, char *file, int line){ in silk_ADD_SAT32_() 151 opus_int32 res; in silk_ADD_SAT32_() 198 res = (opus_int16)silk_SAT16( silk_SUB32( (opus_int32)(a16), (b16) ) ); in silk_SUB_SAT16_() 199 if ( res != silk_SAT16( (opus_int32)a16 - (opus_int32)b16 ) ) in silk_SUB_SAT16_() [all …]
|
D | macros.h | 44 #define silk_SMULWB(a32, b32) ((opus_int32)(((a32) * (opus_int64)((opus_int16)(b32))) >>… 46 …(a32, b32) ((((a32) >> 16) * (opus_int32)((opus_int16)(b32))) + ((((a32) & 0x0000FFFF) … 51 #define silk_SMLAWB(a32, b32, c32) ((opus_int32)((a32) + (((b32) * (opus_int64)((opus_int16)(… 53 …, c32) ((a32) + ((((b32) >> 16) * (opus_int32)((opus_int16)(c32))) + ((((b32) & 0x0000FFFF) … 58 #define silk_SMULWT(a32, b32) ((opus_int32)(((a32) * (opus_int64)((b32) >> 16)) >> 16)) 65 #define silk_SMLAWT(a32, b32, c32) ((opus_int32)((a32) + (((b32) * ((opus_int64)(c32) >> 16))… 71 #define silk_SMULBB(a32, b32) ((opus_int32)((opus_int16)(a32)) * (opus_int32)((opus_int1… 74 #define silk_SMLABB(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * (opus_int32)(… 77 #define silk_SMULBT(a32, b32) ((opus_int32)((opus_int16)(a32)) * ((b32) >> 16)) 80 #define silk_SMLABT(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * ((c32) >> 16)) [all …]
|
D | Inlines.h | 41 static OPUS_INLINE opus_int32 silk_CLZ64( opus_int64 in ) in silk_CLZ64() 43 opus_int32 in_upper; in silk_CLZ64() 45 in_upper = (opus_int32)silk_RSHIFT64(in, 32); in silk_CLZ64() 48 return 32 + silk_CLZ32( (opus_int32) in ); in silk_CLZ64() 57 opus_int32 in, /* I input */ in silk_CLZ_FRAC() 58 opus_int32 *lz, /* O number of leading zeros */ in silk_CLZ_FRAC() 59 opus_int32 *frac_Q7 /* O the 7 bits right after the leading one */ in silk_CLZ_FRAC() 62 opus_int32 lzeros = silk_CLZ32(in); in silk_CLZ_FRAC() 71 static OPUS_INLINE opus_int32 silk_SQRT_APPROX( opus_int32 x ) in silk_SQRT_APPROX() 73 opus_int32 y, lz, frac_Q7; in silk_SQRT_APPROX() [all …]
|
D | control.h | 48 opus_int32 nChannelsAPI; 51 opus_int32 nChannelsInternal; 54 opus_int32 API_sampleRate; 57 opus_int32 maxInternalSampleRate; 60 opus_int32 minInternalSampleRate; 63 opus_int32 desiredInternalSampleRate; 69 opus_int32 bitRate; 102 opus_int32 internalSampleRate; 128 opus_int32 nChannelsAPI; 131 opus_int32 nChannelsInternal; [all …]
|
D | main.h | 56 …opus_int32 mid_side_rates_bps[], /* O Bitrates for mid and side sign… 57 …opus_int32 total_rate_bps, /* I Total bitrate … 69 …const opus_int32 pred_Q13[], /* I Predictors … 75 opus_int32 silk_stereo_find_predictor( /* O Returns predictor in Q13 … 76 …opus_int32 *ratio_Q14, /* O Ratio of residual and mid ener… 79 …opus_int32 mid_res_amp_Q0[], /* I/O Smoothed mid, residual norms … 86 …opus_int32 pred_Q13[], /* I/O Predictors (out: quantized) … 105 …opus_int32 pred_Q13[] /* O Predictors … 148 …opus_int32 TargetRate_bps /* I Target max bitrate (bps) … 180 …opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* I/O gains (quantized out) … [all …]
|
D | NSQ_del_dec.c | 38 opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ]; 39 opus_int32 RandState[ DECISION_DELAY ]; 40 opus_int32 Q_Q10[ DECISION_DELAY ]; 41 opus_int32 Xq_Q14[ DECISION_DELAY ]; 42 opus_int32 Pred_Q15[ DECISION_DELAY ]; 43 opus_int32 Shape_Q14[ DECISION_DELAY ]; 44 opus_int32 sAR2_Q14[ MAX_SHAPE_LPC_ORDER ]; 45 opus_int32 LF_AR_Q14; 46 opus_int32 Diff_Q14; 47 opus_int32 Seed; [all …]
|
D | NSQ.c | 41 opus_int32 x_sc_Q10[], /* O input scaled with 1/Gain */ 43 opus_int32 sLTP_Q15[], /* O LTP state matching scaled input */ 46 const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I */ 55 const opus_int32 x_sc_Q10[], /* I */ 58 opus_int32 sLTP_Q15[], /* I/O LTP state */ 63 opus_int32 HarmShapeFIRPacked_Q14, /* I */ 65 opus_int32 LF_shp_Q14, /* I */ 66 opus_int32 Gain_Q16, /* I */ 88 …const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shap… in silk_NSQ_c() 89 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step … in silk_NSQ_c() [all …]
|
/external/libopus/silk/arm/ |
D | macros_armv5e.h | 35 #define SAFE_SHL(a,b) ((opus_int32)((opus_uint32)(a) << (b))) 39 static OPUS_INLINE opus_int32 silk_SMULWB_armv5e(opus_int32 a, opus_int16 b) in silk_SMULWB_armv5e() 54 static OPUS_INLINE opus_int32 silk_SMLAWB_armv5e(opus_int32 a, opus_int32 b, in silk_SMLAWB_armv5e() 70 static OPUS_INLINE opus_int32 silk_SMULWT_armv5e(opus_int32 a, opus_int32 b) in silk_SMULWT_armv5e() 85 static OPUS_INLINE opus_int32 silk_SMLAWT_armv5e(opus_int32 a, opus_int32 b, in silk_SMLAWT_armv5e() 86 opus_int32 c) in silk_SMLAWT_armv5e() 101 static OPUS_INLINE opus_int32 silk_SMULBB_armv5e(opus_int32 a, opus_int32 b) in silk_SMULBB_armv5e() 116 static OPUS_INLINE opus_int32 silk_SMLABB_armv5e(opus_int32 a, opus_int32 b, in silk_SMLABB_armv5e() 117 opus_int32 c) in silk_SMLABB_armv5e() 132 static OPUS_INLINE opus_int32 silk_SMULBT_armv5e(opus_int32 a, opus_int32 b) in silk_SMULBT_armv5e() [all …]
|
D | macros_armv4.h | 34 #define SAFE_SHL(a,b) ((opus_int32)((opus_uint32)(a) << (b))) 38 static OPUS_INLINE opus_int32 silk_SMULWB_armv4(opus_int32 a, opus_int16 b) in silk_SMULWB_armv4() 58 static OPUS_INLINE opus_int32 silk_SMULWT_armv4(opus_int32 a, opus_int32 b) in silk_SMULWT_armv4() 78 static OPUS_INLINE opus_int32 silk_SMULWW_armv4(opus_int32 a, opus_int32 b) in silk_SMULWW_armv4() 93 static OPUS_INLINE opus_int32 silk_SMLAWW_armv4(opus_int32 a, opus_int32 b, in silk_SMLAWW_armv4() 94 opus_int32 c) in silk_SMLAWW_armv4()
|
D | arm_silk_map.c | 42 …const opus_int32 *B_Q28, /* I MA coefficients [3] … 43 …const opus_int32 *A_Q28, /* I AR coefficients [2] … 44 …opus_int32 *S, /* I/O State vector [4] … 46 …const opus_int32 len /* I signal length (must be even) … 54 opus_int32 (*const SILK_LPC_INVERSE_PRED_GAIN_IMPL[OPUS_ARCHMASK + 1])( /* O Returns inverse pred… 75 …const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shap… 76 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step … 92 opus_int32 94 const opus_int32 *data0, opus_int32 *data1, const opus_int16 *coef, 108 …opus_int32 *corr, /* O Result [order + 1] …
|
D | SigProc_FIX_armv5e.h | 33 static OPUS_INLINE opus_int32 silk_SMULTT_armv5e(opus_int32 a, opus_int32 b) in silk_SMULTT_armv5e() 35 opus_int32 res; in silk_SMULTT_armv5e() 47 static OPUS_INLINE opus_int32 silk_SMLATT_armv5e(opus_int32 a, opus_int32 b, in silk_SMLATT_armv5e() 48 opus_int32 c) in silk_SMLATT_armv5e() 50 opus_int32 res; in silk_SMLATT_armv5e()
|
/external/libopus/include/ |
D | opus.h | 209 opus_int32 Fs, 230 opus_int32 Fs, 263 OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_encode( 268 opus_int32 max_data_bytes 304 OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus_int32 opus_encode_float( 309 opus_int32 max_data_bytes 424 opus_int32 Fs, 442 opus_int32 Fs, 465 opus_int32 len, 490 opus_int32 len, [all …]
|
D | opus_types.h | 55 typedef int32_t opus_int32; typedef 63 typedef _G_int32_t opus_int32; typedef 70 typedef int opus_int32; typedef 73 typedef int opus_int32; typedef 79 typedef __int32 opus_int32; typedef 90 typedef SInt32 opus_int32; typedef 98 typedef int32_t opus_int32; typedef 107 typedef int32_t opus_int32; typedef 115 typedef int opus_int32; typedef 123 typedef int opus_int32; typedef [all …]
|
/external/libopus/src/ |
D | opus_private.h | 67 opus_int32 bitrate_bps; 141 opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs); 143 opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_size, 144 unsigned char *data, opus_int32 out_data_bytes, int lsb_depth, 145 const void *analysis_pcm, opus_int32 analysis_size, int c1, int c2, 148 int opus_decode_native(OpusDecoder *st, const unsigned char *data, opus_int32 len, 150 opus_int32 *packet_offset, int soft_clip); 155 struct foo {char c; union { void* p; opus_int32 i; opus_val32 v; } u;}; in align() 164 int opus_packet_parse_impl(const unsigned char *data, opus_int32 len, 167 int *payload_offset, opus_int32 *packet_offset); [all …]
|
D | opus_encoder.c | 79 opus_int32 Fs; 83 opus_int32 bitrate_bps; 84 opus_int32 user_bitrate_bps; 97 opus_int32 variable_HP_smth2_Q15; 125 static const opus_int32 mono_voice_bandwidth_thresholds[8] = { 131 static const opus_int32 mono_music_bandwidth_thresholds[8] = { 137 static const opus_int32 stereo_voice_bandwidth_thresholds[8] = { 143 static const opus_int32 stereo_music_bandwidth_thresholds[8] = { 150 static const opus_int32 stereo_voice_threshold = 19000; 151 static const opus_int32 stereo_music_threshold = 17000; [all …]
|
D | repacketizer.c | 61 static int opus_repacketizer_cat_impl(OpusRepacketizer *rp, const unsigned char *data, opus_int32 l… in opus_repacketizer_cat_impl() 92 int opus_repacketizer_cat(OpusRepacketizer *rp, const unsigned char *data, opus_int32 len) in opus_repacketizer_cat() 102 opus_int32 opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int end, in opus_repacketizer_out_range_impl() 103 unsigned char *data, opus_int32 maxlen, int self_delimited, int pad) in opus_repacketizer_out_range_impl() 106 opus_int32 tot_size; in opus_repacketizer_out_range_impl() 230 opus_int32 opus_repacketizer_out_range(OpusRepacketizer *rp, int begin, int end, unsigned char *dat… in opus_repacketizer_out_range() 235 opus_int32 opus_repacketizer_out(OpusRepacketizer *rp, unsigned char *data, opus_int32 maxlen) in opus_repacketizer_out() 240 int opus_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len) in opus_packet_pad() 243 opus_int32 ret; in opus_packet_pad() 263 opus_int32 opus_packet_unpad(unsigned char *data, opus_int32 len) in opus_packet_unpad() [all …]
|
/external/libopus/silk/fixed/ |
D | burg_modified_FIX.c | 46 …opus_int32 *res_nrg, /* O Residual energy … in silk_burg_modified_c() 48 …opus_int32 A_Q16[], /* O Prediction coefficients (length order) … in silk_burg_modified_c() 50 …const opus_int32 minInvGain_Q30, /* I Inverse of max prediction gain … in silk_burg_modified_c() 58 opus_int32 C0, num, nrg, rc_Q31, invGain_Q30, Atmp_QA, Atmp1, tmp1, tmp2, x1, x2; in silk_burg_modified_c() 60 opus_int32 C_first_row[ SILK_MAX_ORDER_LPC ]; in silk_burg_modified_c() 61 opus_int32 C_last_row[ SILK_MAX_ORDER_LPC ]; in silk_burg_modified_c() 62 opus_int32 Af_QA[ SILK_MAX_ORDER_LPC ]; in silk_burg_modified_c() 63 opus_int32 CAf[ SILK_MAX_ORDER_LPC + 1 ]; in silk_burg_modified_c() 64 opus_int32 CAb[ SILK_MAX_ORDER_LPC + 1 ]; in silk_burg_modified_c() 65 opus_int32 xcorr[ SILK_MAX_ORDER_LPC ]; in silk_burg_modified_c() [all …]
|
D | main_FIX.h | 76 …opus_int32 *pnBytesOut, /* O Pointer to number … 112 …opus_int32 *corr, /* O Result [order + 1] … 158 …const opus_int32 minInvGain_Q30 /* I Inverse of max pre… 163 …opus_int32 XXLTP_Q17[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ], /* O Correla… 164 …opus_int32 xXLTP_Q17[ MAX_NB_SUBFR * LTP_ORDER ], /* O Correlation vector… 177 …const opus_int32 invGains_Q16[ MAX_NB_SUBFR ], /* I Inverse quantizati… 186 …opus_int32 nrgs[ MAX_NB_SUBFR ], /* O Residual energy per subf… 190 …const opus_int32 gains[ MAX_NB_SUBFR ], /* I Quantization gains… 198 opus_int32 silk_residual_energy16_covar_FIX( 200 …const opus_int32 *wXX, /* I Correlation matrix… [all …]
|
D | structs_FIX.h | 45 opus_int32 HarmBoost_smth_Q16; 46 opus_int32 HarmShapeGain_smth_Q16; 47 opus_int32 Tilt_smth_Q16; 60 opus_int32 resNrgSmth; 68 opus_int32 Gains_Q16[ MAX_NB_SUBFR ]; 77 …opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ]; /* Packs two int16 coefficient… 85 opus_int32 predGain_Q16; 87 …opus_int32 ResNrg[ MAX_NB_SUBFR ]; /* Residual energy per subfram… 91 opus_int32 GainsUnq_Q16[ MAX_NB_SUBFR ]; 101 opus_int32 nBitsUsedLBRR; [all …]
|
/external/libopus/silk/x86/ |
D | main_sse.h | 42 …opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu… 45 …const opus_int32 *W_Q18, /* I weighting matrix … 50 …const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP co… 65 …opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu… 68 …const opus_int32 *W_Q18, /* I weighting matrix … 73 …const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP co… 92 …const opus_int32 x_Q3[], /* I Prefiltered input … 99 …const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shap… 100 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step … 119 …const opus_int32 x_Q3[], /* I Prefiltered input … [all …]
|
D | NSQ_del_dec_sse4_1.c | 41 opus_int32 sLPC_Q14[ MAX_SUB_FRAME_LENGTH + NSQ_LPC_BUF_LENGTH ]; 42 opus_int32 RandState[ DECISION_DELAY ]; 43 opus_int32 Q_Q10[ DECISION_DELAY ]; 44 opus_int32 Xq_Q14[ DECISION_DELAY ]; 45 opus_int32 Pred_Q15[ DECISION_DELAY ]; 46 opus_int32 Shape_Q14[ DECISION_DELAY ]; 47 opus_int32 sAR2_Q14[ MAX_SHAPE_LPC_ORDER ]; 48 opus_int32 LF_AR_Q14; 49 opus_int32 Seed; 50 opus_int32 SeedInit; [all …]
|
/external/libopus/tests/ |
D | test_opus_projection.c | 97 opus_int32 simple_matrix_size; in test_simple_matrix() 199 const opus_int32 Fs = 48000; in test_creation_arguments() 212 opus_int32 matrix_size; in test_creation_arguments() 249 void generate_music(short *buf, opus_int32 len, opus_int32 channels) in generate_music() 251 opus_int32 i,j,k; in generate_music() 252 opus_int32 *a,*b,*c,*d; in generate_music() 253 a = (opus_int32 *)malloc(sizeof(opus_int32) * channels); in generate_music() 254 b = (opus_int32 *)malloc(sizeof(opus_int32) * channels); in generate_music() 255 c = (opus_int32 *)malloc(sizeof(opus_int32) * channels); in generate_music() 256 d = (opus_int32 *)malloc(sizeof(opus_int32) * channels); in generate_music() [all …]
|