Searched defs:pulses (Results 1 - 22 of 22) sorted by relevance

/external/chromium_org/third_party/opus/src/silk/
H A Dcode_signs.c43 const opus_int8 pulses[], /* I pulse signal */
47 const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] /* I Sum of absolute pulses per block */
56 q_ptr = pulses;
77 opus_int pulses[], /* I/O pulse signal */
81 const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] /* I Sum of absolute pulses per block */
90 q_ptr = pulses;
41 silk_encode_signs( ec_enc *psRangeEnc, const opus_int8 pulses[], opus_int length, const opus_int signalType, const opus_int quantOffsetType, const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] ) argument
75 silk_decode_signs( ec_dec *psRangeDec, opus_int pulses[], opus_int length, const opus_int signalType, const opus_int quantOffsetType, const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] ) argument
H A Ddecode_pulses.c39 opus_int pulses[], /* O Excitation signal */
85 silk_shell_decoder( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], psRangeDec, sum_pulses[ i ] );
87 silk_memset( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof( opus_int ) );
97 pulses_ptr = &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ];
106 /* Mark the number of pulses non-zero for sign decoding. */
114 silk_decode_signs( psRangeDec, pulses, frame_length, signalType, quantOffsetType, sum_pulses );
37 silk_decode_pulses( ec_dec *psRangeDec, opus_int pulses[], const opus_int signalType, const opus_int quantOffsetType, const opus_int frame_length ) argument
H A Dencode_pulses.c42 opus_int max_pulses, /* I max value for sum of pulses */
64 opus_int8 pulses[], /* I quantization indices */
91 silk_memset( &pulses[ frame_length ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof(opus_int8));
94 /* Take the absolute value of the pulses */
98 abs_pulses[i+0] = ( opus_int )silk_abs( pulses[ i + 0 ] );
99 abs_pulses[i+1] = ( opus_int )silk_abs( pulses[ i + 1 ] );
100 abs_pulses[i+2] = ( opus_int )silk_abs( pulses[ i + 2 ] );
101 abs_pulses[i+3] = ( opus_int )silk_abs( pulses[ i + 3 ] );
104 /* Calc sum pulses per shell code frame */
138 /* find rate level that leads to fewest bits for coding of pulses pe
60 silk_encode_pulses( ec_enc *psRangeEnc, const opus_int signalType, const opus_int quantOffsetType, opus_int8 pulses[], const opus_int frame_length ) argument
[all...]
H A Ddec_API.c199 opus_int pulses[ MAX_FRAME_LENGTH ]; local
215 silk_decode_pulses( psRangeDec, pulses, channel_state[ n ].indices.signalType,
H A DNSQ.c53 opus_int8 pulses[], /* O */
76 opus_int8 pulses[], /* O Quantized pulse signal */
153 silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_Q14,
158 pulses += psEncC->subfr_length;
179 opus_int8 pulses[], /* O */
339 pulses[ i ] = (opus_int8)silk_RSHIFT_ROUND( q1_Q10, 10 );
366 NSQ->rand_seed = silk_ADD32_ovflw( NSQ->rand_seed, pulses[ i ] );
71 silk_NSQ( const silk_encoder_state *psEncC, silk_nsq_state *NSQ, SideInfoIndices *psIndices, const opus_int32 x_Q3[], opus_int8 pulses[], const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], const opus_int Tilt_Q14[ MAX_NB_SUBFR ], const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], const opus_int pitchL[ MAX_NB_SUBFR ], const opus_int Lambda_Q10, const opus_int LTP_scale_Q14 ) argument
175 silk_noise_shape_quantizer( silk_nsq_state *NSQ, opus_int signalType, const opus_int32 x_sc_Q10[], opus_int8 pulses[], opus_int16 xq[], opus_int32 sLTP_Q15[], const opus_int16 a_Q12[], const opus_int16 b_Q14[], const opus_int16 AR_shp_Q13[], opus_int lag, opus_int32 HarmShapeFIRPacked_Q14, opus_int Tilt_Q14, opus_int32 LF_shp_Q14, opus_int32 Gain_Q16, opus_int Lambda_Q10, opus_int offset_Q10, opus_int length, opus_int shapingLPCOrder, opus_int predictLPCOrder ) argument
H A DNSQ_del_dec.c85 opus_int8 pulses[], /* O */
114 opus_int8 pulses[], /* O Quantized pulse signal */
233 pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 );
257 silk_noise_shape_quantizer_del_dec( NSQ, psDelDec, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15,
263 pulses += psEncC->subfr_length;
284 pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 );
311 opus_int8 pulses[], /* O */
600 pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 );
109 silk_NSQ_del_dec( const silk_encoder_state *psEncC, silk_nsq_state *NSQ, SideInfoIndices *psIndices, const opus_int32 x_Q3[], opus_int8 pulses[], const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], const opus_int Tilt_Q14[ MAX_NB_SUBFR ], const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], const opus_int pitchL[ MAX_NB_SUBFR ], const opus_int Lambda_Q10, const opus_int LTP_scale_Q14 ) argument
306 silk_noise_shape_quantizer_del_dec( silk_nsq_state *NSQ, NSQ_del_dec_struct psDelDec[], opus_int signalType, const opus_int32 x_Q10[], opus_int8 pulses[], opus_int16 xq[], opus_int32 sLTP_Q15[], opus_int32 delayedGain_Q10[], const opus_int16 a_Q12[], const opus_int16 b_Q14[], const opus_int16 AR_shp_Q13[], opus_int lag, opus_int32 HarmShapeFIRPacked_Q14, opus_int Tilt_Q14, opus_int32 LF_shp_Q14, opus_int32 Gain_Q16, opus_int Lambda_Q10, opus_int offset_Q10, opus_int length, opus_int subfr, opus_int shapingLPCOrder, opus_int predictLPCOrder, opus_int warping_Q16, opus_int nStatesDelayedDecision, opus_int *smpl_buf_idx, opus_int decisionDelay ) argument
H A Dstructs.h193 opus_int8 pulses[ MAX_FRAME_LENGTH ]; member in struct:__anon14732
/external/libopus/silk/
H A Dcode_signs.c43 const opus_int8 pulses[], /* I pulse signal */
47 const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] /* I Sum of absolute pulses per block */
56 q_ptr = pulses;
77 opus_int pulses[], /* I/O pulse signal */
81 const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] /* I Sum of absolute pulses per block */
90 q_ptr = pulses;
41 silk_encode_signs( ec_enc *psRangeEnc, const opus_int8 pulses[], opus_int length, const opus_int signalType, const opus_int quantOffsetType, const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] ) argument
75 silk_decode_signs( ec_dec *psRangeDec, opus_int pulses[], opus_int length, const opus_int signalType, const opus_int quantOffsetType, const opus_int sum_pulses[ MAX_NB_SHELL_BLOCKS ] ) argument
H A Ddecode_pulses.c39 opus_int pulses[], /* O Excitation signal */
85 silk_shell_decoder( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], psRangeDec, sum_pulses[ i ] );
87 silk_memset( &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof( opus_int ) );
97 pulses_ptr = &pulses[ silk_SMULBB( i, SHELL_CODEC_FRAME_LENGTH ) ];
106 /* Mark the number of pulses non-zero for sign decoding. */
114 silk_decode_signs( psRangeDec, pulses, frame_length, signalType, quantOffsetType, sum_pulses );
37 silk_decode_pulses( ec_dec *psRangeDec, opus_int pulses[], const opus_int signalType, const opus_int quantOffsetType, const opus_int frame_length ) argument
H A Dencode_pulses.c42 opus_int max_pulses, /* I max value for sum of pulses */
64 opus_int8 pulses[], /* I quantization indices */
91 silk_memset( &pulses[ frame_length ], 0, SHELL_CODEC_FRAME_LENGTH * sizeof(opus_int8));
94 /* Take the absolute value of the pulses */
98 abs_pulses[i+0] = ( opus_int )silk_abs( pulses[ i + 0 ] );
99 abs_pulses[i+1] = ( opus_int )silk_abs( pulses[ i + 1 ] );
100 abs_pulses[i+2] = ( opus_int )silk_abs( pulses[ i + 2 ] );
101 abs_pulses[i+3] = ( opus_int )silk_abs( pulses[ i + 3 ] );
104 /* Calc sum pulses per shell code frame */
138 /* find rate level that leads to fewest bits for coding of pulses pe
60 silk_encode_pulses( ec_enc *psRangeEnc, const opus_int signalType, const opus_int quantOffsetType, opus_int8 pulses[], const opus_int frame_length ) argument
[all...]
H A Ddec_API.c199 opus_int pulses[ MAX_FRAME_LENGTH ]; local
215 silk_decode_pulses( psRangeDec, pulses, channel_state[ n ].indices.signalType,
H A DNSQ.c53 opus_int8 pulses[], /* O */
76 opus_int8 pulses[], /* O Quantized pulse signal */
153 silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_Q14,
158 pulses += psEncC->subfr_length;
179 opus_int8 pulses[], /* O */
339 pulses[ i ] = (opus_int8)silk_RSHIFT_ROUND( q1_Q10, 10 );
366 NSQ->rand_seed = silk_ADD32_ovflw( NSQ->rand_seed, pulses[ i ] );
71 silk_NSQ( const silk_encoder_state *psEncC, silk_nsq_state *NSQ, SideInfoIndices *psIndices, const opus_int32 x_Q3[], opus_int8 pulses[], const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], const opus_int Tilt_Q14[ MAX_NB_SUBFR ], const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], const opus_int pitchL[ MAX_NB_SUBFR ], const opus_int Lambda_Q10, const opus_int LTP_scale_Q14 ) argument
175 silk_noise_shape_quantizer( silk_nsq_state *NSQ, opus_int signalType, const opus_int32 x_sc_Q10[], opus_int8 pulses[], opus_int16 xq[], opus_int32 sLTP_Q15[], const opus_int16 a_Q12[], const opus_int16 b_Q14[], const opus_int16 AR_shp_Q13[], opus_int lag, opus_int32 HarmShapeFIRPacked_Q14, opus_int Tilt_Q14, opus_int32 LF_shp_Q14, opus_int32 Gain_Q16, opus_int Lambda_Q10, opus_int offset_Q10, opus_int length, opus_int shapingLPCOrder, opus_int predictLPCOrder ) argument
H A DNSQ_del_dec.c85 opus_int8 pulses[], /* O */
114 opus_int8 pulses[], /* O Quantized pulse signal */
233 pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 );
257 silk_noise_shape_quantizer_del_dec( NSQ, psDelDec, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15,
263 pulses += psEncC->subfr_length;
284 pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 );
311 opus_int8 pulses[], /* O */
600 pulses[ i - decisionDelay ] = (opus_int8)silk_RSHIFT_ROUND( psDD->Q_Q10[ last_smple_idx ], 10 );
109 silk_NSQ_del_dec( const silk_encoder_state *psEncC, silk_nsq_state *NSQ, SideInfoIndices *psIndices, const opus_int32 x_Q3[], opus_int8 pulses[], const opus_int16 PredCoef_Q12[ 2 * MAX_LPC_ORDER ], const opus_int16 LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ], const opus_int16 AR2_Q13[ MAX_NB_SUBFR * MAX_SHAPE_LPC_ORDER ], const opus_int HarmShapeGain_Q14[ MAX_NB_SUBFR ], const opus_int Tilt_Q14[ MAX_NB_SUBFR ], const opus_int32 LF_shp_Q14[ MAX_NB_SUBFR ], const opus_int32 Gains_Q16[ MAX_NB_SUBFR ], const opus_int pitchL[ MAX_NB_SUBFR ], const opus_int Lambda_Q10, const opus_int LTP_scale_Q14 ) argument
306 silk_noise_shape_quantizer_del_dec( silk_nsq_state *NSQ, NSQ_del_dec_struct psDelDec[], opus_int signalType, const opus_int32 x_Q10[], opus_int8 pulses[], opus_int16 xq[], opus_int32 sLTP_Q15[], opus_int32 delayedGain_Q10[], const opus_int16 a_Q12[], const opus_int16 b_Q14[], const opus_int16 AR_shp_Q13[], opus_int lag, opus_int32 HarmShapeFIRPacked_Q14, opus_int Tilt_Q14, opus_int32 LF_shp_Q14, opus_int32 Gain_Q16, opus_int Lambda_Q10, opus_int offset_Q10, opus_int length, opus_int subfr, opus_int shapingLPCOrder, opus_int predictLPCOrder, opus_int warping_Q16, opus_int nStatesDelayedDecision, opus_int *smpl_buf_idx, opus_int decisionDelay ) argument
H A Dstructs.h193 opus_int8 pulses[ MAX_FRAME_LENGTH ]; member in struct:__anon24563
/external/chromium_org/third_party/opus/src/celt/
H A Drate.h80 static OPUS_INLINE int pulses2bits(const CELTMode *m, int band, int LM, int pulses) argument
86 return pulses == 0 ? 0 : cache[pulses]+1;
89 /** Compute the pulse allocation, i.e. how many pulses will go in each
95 @param pulses Number of pulses per band (returned)
99 opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth);
H A Drate.c527 opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth)
634 pulses, ebits, fine_priority, C, LM, ec, encode, prev, signalBandwidth);
526 compute_allocation(const CELTMode *m, int start, int end, const int *offsets, const int *cap, int alloc_trim, int *intensity, int *dual_stereo, opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth) argument
H A Dbands.c260 opus_val16 *prev2logE, int *pulses, opus_uint32 seed)
275 depth = (1+pulses[i])/((m->eBands[i+1]-m->eBands[i])<<LM);
444 /* Decide whether we should spread the pulses in the current frame */
1356 celt_norm *X_, celt_norm *Y_, unsigned char *collapse_masks, const celt_ener *bandE, int *pulses,
1432 b = IMAX(0, IMIN(16383, IMIN(remaining_bits+1,pulses[i]+curr_balance)));
1509 balance += pulses[i] + tell;
258 anti_collapse(const CELTMode *m, celt_norm *X_, unsigned char *collapse_masks, int LM, int C, int size, int start, int end, opus_val16 *logE, opus_val16 *prev1logE, opus_val16 *prev2logE, int *pulses, opus_uint32 seed) argument
1355 quant_all_bands(int encode, const CELTMode *m, int start, int end, celt_norm *X_, celt_norm *Y_, unsigned char *collapse_masks, const celt_ener *bandE, int *pulses, int shortBlocks, int spread, int dual_stereo, int intensity, int *tf_res, opus_int32 total_bits, opus_int32 balance, ec_ctx *ec, int LM, int codedBands, opus_uint32 *seed) argument
/external/libopus/celt/
H A Drate.h80 static OPUS_INLINE int pulses2bits(const CELTMode *m, int band, int LM, int pulses) argument
86 return pulses == 0 ? 0 : cache[pulses]+1;
89 /** Compute the pulse allocation, i.e. how many pulses will go in each
95 @param pulses Number of pulses per band (returned)
99 opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth);
H A Drate.c527 opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth)
634 pulses, ebits, fine_priority, C, LM, ec, encode, prev, signalBandwidth);
526 compute_allocation(const CELTMode *m, int start, int end, const int *offsets, const int *cap, int alloc_trim, int *intensity, int *dual_stereo, opus_int32 total, opus_int32 *balance, int *pulses, int *ebits, int *fine_priority, int C, int LM, ec_ctx *ec, int encode, int prev, int signalBandwidth) argument
H A Dbands.c260 opus_val16 *prev2logE, int *pulses, opus_uint32 seed)
275 depth = (1+pulses[i])/((m->eBands[i+1]-m->eBands[i])<<LM);
444 /* Decide whether we should spread the pulses in the current frame */
1356 celt_norm *X_, celt_norm *Y_, unsigned char *collapse_masks, const celt_ener *bandE, int *pulses,
1432 b = IMAX(0, IMIN(16383, IMIN(remaining_bits+1,pulses[i]+curr_balance)));
1509 balance += pulses[i] + tell;
258 anti_collapse(const CELTMode *m, celt_norm *X_, unsigned char *collapse_masks, int LM, int C, int size, int start, int end, opus_val16 *logE, opus_val16 *prev1logE, opus_val16 *prev2logE, int *pulses, opus_uint32 seed) argument
1355 quant_all_bands(int encode, const CELTMode *m, int start, int end, celt_norm *X_, celt_norm *Y_, unsigned char *collapse_masks, const celt_ener *bandE, int *pulses, int shortBlocks, int spread, int dual_stereo, int intensity, int *tf_res, opus_int32 total_bits, opus_int32 balance, ec_ctx *ec, int LM, int codedBands, opus_uint32 *seed) argument
/external/chromium_org/third_party/opus/src/silk/float/
H A Dwrappers_FLP.c100 opus_int8 pulses[], /* O Quantized pulse signal */
163 silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x_Q3, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
166 silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x_Q3, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
95 silk_NSQ_wrapper_FLP( silk_encoder_state_FLP *psEnc, silk_encoder_control_FLP *psEncCtrl, SideInfoIndices *psIndices, silk_nsq_state *psNSQ, opus_int8 pulses[], const silk_float x[] ) argument
/external/libopus/silk/float/
H A Dwrappers_FLP.c100 opus_int8 pulses[], /* O Quantized pulse signal */
163 silk_NSQ_del_dec( &psEnc->sCmn, psNSQ, psIndices, x_Q3, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
166 silk_NSQ( &psEnc->sCmn, psNSQ, psIndices, x_Q3, pulses, PredCoef_Q12[ 0 ], LTPCoef_Q14,
95 silk_NSQ_wrapper_FLP( silk_encoder_state_FLP *psEnc, silk_encoder_control_FLP *psEncCtrl, SideInfoIndices *psIndices, silk_nsq_state *psNSQ, opus_int8 pulses[], const silk_float x[] ) argument

Completed in 4384 milliseconds