Home
last modified time | relevance | path

Searched refs:opus_int32 (Results 1 – 25 of 171) sorted by relevance

1234567

/external/libopus/silk/
DMacroCount.h50 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 …]
Dstructs.h47 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;
54 opus_int32 rand_seed;
55 opus_int32 prev_gain_Q16;
63opus_int32 AnaState[ 2 ]; /* Analysis filterbank state: 0-8 kHz …
64opus_int32 AnaState1[ 2 ]; /* Analysis filterbank state: 0-4 kHz …
65opus_int32 AnaState2[ 2 ]; /* Analysis filterbank state: 0-2 kHz …
66opus_int32 XnrgSubfr[ VAD_N_BANDS ]; /* Subframe energies …
[all …]
DMacroDebug.h55 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 …]
DSigProc_FIX.h59opus_int32 Fs_Hz_in, /* I Input sampling rate (Hz) …
60opus_int32 Fs_Hz_out, /* I Output sampling rate (Hz) …
71opus_int32 inLen /* I Number of input samples …
78opus_int32 *S, /* I/O State vector [ 2 ] …
81opus_int32 inLen /* I Number of input samples …
88opus_int32 *S, /* I/O State vector [ 6 ] …
91opus_int32 inLen /* I Number of input samples …
101 …const opus_int32 *B_Q28, /* I MA coefficients [3] …
102 …const opus_int32 *A_Q28, /* I AR coefficients [2] …
103opus_int32 *S, /* I/O State vector [2] …
[all …]
DInlines.h41 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 …]
DLPC_inv_pred_gain.c37 #define MUL32_FRAC_Q(a32, b32, Q) ((opus_int32)(silk_RSHIFT_ROUND64(silk_SMULL(a32, b32), Q)))
41 static opus_int32 LPC_inverse_pred_gain_QA( /* O Returns inverse prediction gain … in LPC_inverse_pred_gain_QA()
42opus_int32 A_QA[ 2 ][ SILK_MAX_ORDER_LPC ], /* I Prediction coefficients … in LPC_inverse_pred_gain_QA()
47 opus_int32 invGain_Q30, rc_Q31, rc_mult1_Q30, rc_mult2, tmp_QA; in LPC_inverse_pred_gain_QA()
48 opus_int32 *Aold_QA, *Anew_QA; in LPC_inverse_pred_gain_QA()
52 invGain_Q30 = (opus_int32)1 << 30; in LPC_inverse_pred_gain_QA()
63 rc_mult1_Q30 = ( (opus_int32)1 << 30 ) - silk_SMMUL( rc_Q31, rc_Q31 ); in LPC_inverse_pred_gain_QA()
97 rc_mult1_Q30 = ( (opus_int32)1 << 30 ) - silk_SMMUL( rc_Q31, rc_Q31 ); in LPC_inverse_pred_gain_QA()
109 opus_int32 silk_LPC_inverse_pred_gain( /* O Returns inverse prediction gain in energ… in silk_LPC_inverse_pred_gain()
115 opus_int32 Atmp_QA[ 2 ][ SILK_MAX_ORDER_LPC ]; in silk_LPC_inverse_pred_gain()
[all …]
Dcontrol.h48 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;
99 opus_int32 internalSampleRate;
120 opus_int32 nChannelsAPI;
123 opus_int32 nChannelsInternal;
[all …]
Dmacros.h51 #define silk_SMULWB(a32, b32) ((opus_int32)(((a32) * (opus_int64)((opus_int16)(b32))) >>…
53 …(a32, b32) ((((a32) >> 16) * (opus_int32)((opus_int16)(b32))) + ((((a32) & 0x0000FFFF) …
58 #define silk_SMLAWB(a32, b32, c32) ((opus_int32)((a32) + (((b32) * (opus_int64)((opus_int16)(…
60 …, c32) ((a32) + ((((b32) >> 16) * (opus_int32)((opus_int16)(c32))) + ((((b32) & 0x0000FFFF) …
65 #define silk_SMULWT(a32, b32) ((opus_int32)(((a32) * (opus_int64)((b32) >> 16)) >> 16))
72 #define silk_SMLAWT(a32, b32, c32) ((opus_int32)((a32) + (((b32) * ((opus_int64)(c32) >> 16))…
78 #define silk_SMULBB(a32, b32) ((opus_int32)((opus_int16)(a32)) * (opus_int32)((opus_int1…
81 #define silk_SMLABB(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * (opus_int32)(…
84 #define silk_SMULBT(a32, b32) ((opus_int32)((opus_int16)(a32)) * ((b32) >> 16))
87 #define silk_SMLABT(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * ((c32) >> 16))
[all …]
DNSQ_del_dec.c38 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 Seed;
47 opus_int32 SeedInit;
[all …]
DNSQ.c40 const opus_int32 x_Q3[], /* I input in Q3 */
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 */
81 …const opus_int32 x_Q3[], /* I Prefiltered input … in silk_NSQ_c()
[all …]
Dmain.h52opus_int32 mid_side_rates_bps[], /* O Bitrates for mid and side sign…
53opus_int32 total_rate_bps, /* I Total bitrate …
65 …const opus_int32 pred_Q13[], /* I Predictors …
71 opus_int32 silk_stereo_find_predictor( /* O Returns predictor in Q13 …
72opus_int32 *ratio_Q14, /* O Ratio of residual and mid ener…
75opus_int32 mid_res_amp_Q0[], /* I/O Smoothed mid, residual norms …
82opus_int32 pred_Q13[], /* I/O Predictors (out: quantized) …
101opus_int32 pred_Q13[] /* O Predictors …
144opus_int32 TargetRate_bps /* I Target max bitrate (bps) …
176opus_int32 gain_Q16[ MAX_NB_SUBFR ], /* I/O gains (quantized out) …
[all …]
/external/libopus/silk/arm/
Dmacros_armv5e.h34 static OPUS_INLINE opus_int32 silk_SMULWB_armv5e(opus_int32 a, opus_int16 b) in silk_SMULWB_armv5e()
49 static OPUS_INLINE opus_int32 silk_SMLAWB_armv5e(opus_int32 a, opus_int32 b, in silk_SMLAWB_armv5e()
65 static OPUS_INLINE opus_int32 silk_SMULWT_armv5e(opus_int32 a, opus_int32 b) in silk_SMULWT_armv5e()
80 static OPUS_INLINE opus_int32 silk_SMLAWT_armv5e(opus_int32 a, opus_int32 b, in silk_SMLAWT_armv5e()
81 opus_int32 c) in silk_SMLAWT_armv5e()
96 static OPUS_INLINE opus_int32 silk_SMULBB_armv5e(opus_int32 a, opus_int32 b) in silk_SMULBB_armv5e()
111 static OPUS_INLINE opus_int32 silk_SMLABB_armv5e(opus_int32 a, opus_int32 b, in silk_SMLABB_armv5e()
112 opus_int32 c) in silk_SMLABB_armv5e()
127 static OPUS_INLINE opus_int32 silk_SMULBT_armv5e(opus_int32 a, opus_int32 b) in silk_SMULBT_armv5e()
142 static OPUS_INLINE opus_int32 silk_SMLABT_armv5e(opus_int32 a, opus_int32 b, in silk_SMLABT_armv5e()
[all …]
Dmacros_armv4.h33 static OPUS_INLINE opus_int32 silk_SMULWB_armv4(opus_int32 a, opus_int16 b) in silk_SMULWB_armv4()
53 static OPUS_INLINE opus_int32 silk_SMULWT_armv4(opus_int32 a, opus_int32 b) in silk_SMULWT_armv4()
73 static OPUS_INLINE opus_int32 silk_SMULWW_armv4(opus_int32 a, opus_int32 b) in silk_SMULWW_armv4()
88 static OPUS_INLINE opus_int32 silk_SMLAWW_armv4(opus_int32 a, opus_int32 b, in silk_SMLAWW_armv4()
89 opus_int32 c) in silk_SMLAWW_armv4()
DSigProc_FIX_armv5e.h33 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/
Dopus.h209 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 …]
Dopus_types.h42 typedef int32_t opus_int32; typedef
48 typedef _G_int32_t opus_int32; typedef
55 typedef int opus_int32; typedef
58 typedef int opus_int32; typedef
64 typedef __int32 opus_int32; typedef
75 typedef SInt32 opus_int32; typedef
83 typedef int32_t opus_int32; typedef
92 typedef int32_t opus_int32; typedef
100 typedef int opus_int32; typedef
108 typedef int opus_int32; typedef
[all …]
/external/libopus/silk/fixed/
Dsolve_LS_FIX.c41 opus_int32 Q36_part;
42 opus_int32 Q48_part;
47opus_int32 *A, /* I/O Pointer to Symetric Square Matrix …
49opus_int32 *L_Q16, /* I/O Pointer to Square Upper triangular Matrix …
55 …const opus_int32 *L_Q16, /* I Pointer to Lower Triangular Matrix …
57 …const opus_int32 *b, /* I b Vector …
58opus_int32 *x_Q16 /* O x Vector …
63 …const opus_int32 *L_Q16, /* I Pointer to Lower Triangular Matrix …
65 …const opus_int32 *b, /* I b Vector …
66opus_int32 *x_Q16 /* O x Vector …
[all …]
Dmain_FIX.h67opus_int32 *pnBytesOut, /* O Pointer to number …
84 …const opus_int32 TargetRate_bps, /* I Target max bitrate…
96opus_int32 xw_Q10[], /* O Weighted signal …
101opus_int32 state[], /* I/O State [order + 1] */
102opus_int32 res_Q2[], /* O Residual signal [length] */
125opus_int32 *corr, /* O Result [order + 1] …
166 …const opus_int32 minInvGain_Q30 /* I Inverse of max pre…
172opus_int32 WLTP[ MAX_NB_SUBFR * LTP_ORDER * LTP_ORDER ], /* O Weight for L…
176 …const opus_int32 Wght_Q15[ MAX_NB_SUBFR ], /* I weights …
189 …const opus_int32 invGains_Q16[ MAX_NB_SUBFR ], /* I Inverse quantizati…
[all …]
Dstructs_FIX.h45 opus_int32 HarmBoost_smth_Q16;
46 opus_int32 HarmShapeGain_smth_Q16;
47 opus_int32 Tilt_smth_Q16;
55 opus_int32 sAR_shp[ MAX_SHAPE_LPC_ORDER + 1 ];
57 opus_int32 sLF_AR_shp_Q12;
58 opus_int32 sLF_MA_shp_Q12;
59 opus_int32 sHarmHP_Q2;
60 opus_int32 rand_seed;
82 opus_int32 Gains_Q16[ MAX_NB_SUBFR ];
92opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ]; /* Packs two int16 coefficient…
[all …]
Dburg_modified_FIX.c46opus_int32 *res_nrg, /* O Residual energy … in silk_burg_modified_c()
48opus_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 …]
Dprefilter_FIX.c49opus_int32 st_res_Q12[], /* I short term residual signal …
50opus_int32 xw_Q3[], /* O prefiltered signal …
51opus_int32 HarmShapeFIRPacked_Q12, /* I Harmonic shaping coeficients …
53opus_int32 LF_shp_Q14, /* I Low-frequancy shaping coeficients …
59opus_int32 state[], /* I/O State [order + 1] */ in silk_warped_LPC_analysis_filter_FIX_c()
60opus_int32 res_Q2[], /* O Residual signal [length] */ in silk_warped_LPC_analysis_filter_FIX_c()
69 opus_int32 acc_Q11, tmp1, tmp2; in silk_warped_LPC_analysis_filter_FIX_c()
96 res_Q2[ n ] = silk_LSHIFT( (opus_int32)input[ n ], 2 ) - silk_RSHIFT_ROUND( acc_Q11, 9 ); in silk_warped_LPC_analysis_filter_FIX_c()
103opus_int32 xw_Q3[], /* O Weighted signal … in silk_prefilter_FIX()
109 opus_int32 tmp_32; in silk_prefilter_FIX()
[all …]
/external/libopus/src/
Dopus_private.h93 opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs);
95 opus_int32 compute_frame_size(const void *analysis_pcm, int frame_size,
96 int variable_duration, int C, opus_int32 Fs, int bitrate_bps,
103 opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_size,
104 unsigned char *data, opus_int32 out_data_bytes, int lsb_depth,
105 const void *analysis_pcm, opus_int32 analysis_size, int c1, int c2,
108 int opus_decode_native(OpusDecoder *st, const unsigned char *data, opus_int32 len,
110 opus_int32 *packet_offset, int soft_clip);
115 struct foo {char c; union { void* p; opus_int32 i; opus_val32 v; } u;}; in align()
124 int opus_packet_parse_impl(const unsigned char *data, opus_int32 len,
[all …]
Drepacketizer.c61 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()
229 opus_int32 opus_repacketizer_out_range(OpusRepacketizer *rp, int begin, int end, unsigned char *dat… in opus_repacketizer_out_range()
234 opus_int32 opus_repacketizer_out(OpusRepacketizer *rp, unsigned char *data, opus_int32 maxlen) in opus_repacketizer_out()
239 int opus_packet_pad(unsigned char *data, opus_int32 len, opus_int32 new_len) in opus_packet_pad()
242 opus_int32 ret; in opus_packet_pad()
262 opus_int32 opus_packet_unpad(unsigned char *data, opus_int32 len) in opus_packet_unpad()
[all …]
/external/libopus/silk/x86/
Dmain_sse.h41opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu…
44 …const opus_int32 *W_Q18, /* I weighting matrix …
49 …const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP co…
64opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu…
67 …const opus_int32 *W_Q18, /* I weighting matrix …
72 …const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP co…
89 …const opus_int32 x_Q3[], /* I Prefiltered input …
96 …const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shap…
97 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
116 …const opus_int32 x_Q3[], /* I Prefiltered input …
[all …]
Dx86_silk_map.c73 …const opus_int32 x_Q3[], /* I Prefiltered input …
80 …const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shap…
81 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
95opus_int32 *rate_dist_Q14, /* O best weighted quant error + mu…
98 …const opus_int32 *W_Q18, /* I weighting matrix …
103 …const opus_int32 max_gain_Q7, /* I maximum sum of absolute LTP co…
117 …const opus_int32 x_Q3[], /* I Prefiltered input …
124 …const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], /* I Low frequency shap…
125 …const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], /* I Quantization step …
140opus_int32 state[], /* I/O State [order + 1] …
[all …]

1234567