HomeSort by relevance Sort by last modified time
    Searched refs:psEnc (Results 1 - 25 of 40) sorted by null

1 2

  /external/chromium_org/third_party/opus/src/silk/
init_encoder.c 43 silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk FIX encoder state */
50 silk_memset( psEnc, 0, sizeof( silk_encoder_state_Fxx ) );
52 psEnc->sCmn.arch = arch;
54 psEnc->sCmn.variable_HP_smth1_Q15 = silk_LSHIFT( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUTOFF_HZ, 16 ) ) - ( 16 << 7 ), 8 );
55 psEnc->sCmn.variable_HP_smth2_Q15 = psEnc->sCmn.variable_HP_smth1_Q15;
58 psEnc->sCmn.first_frame_after_reset = 1;
61 ret += silk_VAD_Init( &psEnc->sCmn.sVAD );
control_codec.c 43 silk_encoder_state_Fxx *psEnc, /* I/O */
48 silk_encoder_state_Fxx *psEnc, /* I/O */
66 silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk encoder state */
76 psEnc->sCmn.useDTX = encControl->useDTX;
77 psEnc->sCmn.useCBR = encControl->useCBR;
78 psEnc->sCmn.API_fs_Hz = encControl->API_sampleRate;
79 psEnc->sCmn.maxInternal_fs_Hz = encControl->maxInternalSampleRate;
80 psEnc->sCmn.minInternal_fs_Hz = encControl->minInternalSampleRate;
81 psEnc->sCmn.desiredInternal_fs_Hz = encControl->desiredInternalSampleRate;
82 psEnc->sCmn.useInBandFEC = encControl->useInBandFEC
    [all...]
enc_API.c 76 silk_encoder *psEnc;
79 psEnc = (silk_encoder *)encState;
82 silk_memset( psEnc, 0, sizeof( silk_encoder ) );
84 if( ret += silk_init_encoder( &psEnc->state_Fxx[ n ], arch ) ) {
89 psEnc->nChannelsAPI = 1;
90 psEnc->nChannelsInternal = 1;
110 silk_encoder *psEnc = (silk_encoder *)encState;
112 state_Fxx = psEnc->state_Fxx;
114 encStatus->nChannelsAPI = psEnc->nChannelsAPI;
115 encStatus->nChannelsInternal = psEnc->nChannelsInternal
    [all...]
  /external/libopus/silk/
init_encoder.c 43 silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk FIX encoder state */
50 silk_memset( psEnc, 0, sizeof( silk_encoder_state_Fxx ) );
52 psEnc->sCmn.arch = arch;
54 psEnc->sCmn.variable_HP_smth1_Q15 = silk_LSHIFT( silk_lin2log( SILK_FIX_CONST( VARIABLE_HP_MIN_CUTOFF_HZ, 16 ) ) - ( 16 << 7 ), 8 );
55 psEnc->sCmn.variable_HP_smth2_Q15 = psEnc->sCmn.variable_HP_smth1_Q15;
58 psEnc->sCmn.first_frame_after_reset = 1;
61 ret += silk_VAD_Init( &psEnc->sCmn.sVAD );
control_codec.c 43 silk_encoder_state_Fxx *psEnc, /* I/O */
48 silk_encoder_state_Fxx *psEnc, /* I/O */
66 silk_encoder_state_Fxx *psEnc, /* I/O Pointer to Silk encoder state */
76 psEnc->sCmn.useDTX = encControl->useDTX;
77 psEnc->sCmn.useCBR = encControl->useCBR;
78 psEnc->sCmn.API_fs_Hz = encControl->API_sampleRate;
79 psEnc->sCmn.maxInternal_fs_Hz = encControl->maxInternalSampleRate;
80 psEnc->sCmn.minInternal_fs_Hz = encControl->minInternalSampleRate;
81 psEnc->sCmn.desiredInternal_fs_Hz = encControl->desiredInternalSampleRate;
82 psEnc->sCmn.useInBandFEC = encControl->useInBandFEC
    [all...]
enc_API.c 76 silk_encoder *psEnc;
79 psEnc = (silk_encoder *)encState;
82 silk_memset( psEnc, 0, sizeof( silk_encoder ) );
84 if( ret += silk_init_encoder( &psEnc->state_Fxx[ n ], arch ) ) {
89 psEnc->nChannelsAPI = 1;
90 psEnc->nChannelsInternal = 1;
110 silk_encoder *psEnc = (silk_encoder *)encState;
112 state_Fxx = psEnc->state_Fxx;
114 encStatus->nChannelsAPI = psEnc->nChannelsAPI;
115 encStatus->nChannelsInternal = psEnc->nChannelsInternal
    [all...]
  /external/chromium_org/third_party/opus/src/silk/fixed/
find_pitch_lags_FIX.c 38 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
59 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length;
62 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length );
64 x_buf = x - psEnc->sCmn.ltp_mem_length;
72 ALLOC( Wsig, psEnc->sCmn.pitch_LPC_win_length, opus_int16 );
75 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length;
77 silk_apply_sine_window( Wsig_ptr, x_buf_ptr, 1, psEnc->sCmn.la_pitch );
80 Wsig_ptr += psEnc->sCmn.la_pitch
    [all...]
encode_frame_FIX.c 38 silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */
45 silk_encoder_state_FIX *psEnc /* I/O Pointer to Silk FIX encoder state */
51 silk_VAD_GetSA_Q8( &psEnc->sCmn, psEnc->sCmn.inputBuf + 1 );
56 if( psEnc->sCmn.speech_activity_Q8 < SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ) ) {
57 psEnc->sCmn.indices.signalType = TYPE_NO_VOICE_ACTIVITY;
58 psEnc->sCmn.noSpeechCounter++;
59 if( psEnc->sCmn.noSpeechCounter < NB_SPEECH_FRAMES_BEFORE_DTX ) {
60 psEnc->sCmn.inDTX = 0;
61 } else if( psEnc->sCmn.noSpeechCounter > MAX_CONSECUTIVE_DTX + NB_SPEECH_FRAMES_BEFORE_DTX )
    [all...]
find_pred_coefs_FIX.c 36 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
55 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
58 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
77 psEnc->sCmn.nb_subfr * psEnc->sCmn.predictLPCOrder
78 + psEnc->sCmn.frame_length, opus_int16 );
79 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
85 silk_assert( psEnc->sCmn.ltp_mem_length - psEnc->sCmn.predictLPCOrder >= psEncCtrl->pitchL[ 0 ] + LTP_ORDER / 2 );
87 ALLOC( WLTP, psEnc->sCmn.nb_subfr * LTP_ORDER * LTP_ORDER, opus_int32 )
    [all...]
LTP_scale_ctrl_FIX.c 36 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
45 round_loss = psEnc->sCmn.PacketLoss_perc + psEnc->sCmn.nFramesPerPacket;
46 psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT(
50 psEnc->sCmn.indices.LTP_scaleIndex = 0;
52 psEncCtrl->LTP_scale_Q14 = silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ];
  /external/libopus/silk/fixed/
find_pitch_lags_FIX.c 38 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
59 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length;
62 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length );
64 x_buf = x - psEnc->sCmn.ltp_mem_length;
72 ALLOC( Wsig, psEnc->sCmn.pitch_LPC_win_length, opus_int16 );
75 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length;
77 silk_apply_sine_window( Wsig_ptr, x_buf_ptr, 1, psEnc->sCmn.la_pitch );
80 Wsig_ptr += psEnc->sCmn.la_pitch
    [all...]
encode_frame_FIX.c 38 silk_encoder_state_FIX *psEnc, /* I/O Pointer to Silk FIX encoder state */
45 silk_encoder_state_FIX *psEnc /* I/O Pointer to Silk FIX encoder state */
51 silk_VAD_GetSA_Q8( &psEnc->sCmn, psEnc->sCmn.inputBuf + 1 );
56 if( psEnc->sCmn.speech_activity_Q8 < SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ) ) {
57 psEnc->sCmn.indices.signalType = TYPE_NO_VOICE_ACTIVITY;
58 psEnc->sCmn.noSpeechCounter++;
59 if( psEnc->sCmn.noSpeechCounter < NB_SPEECH_FRAMES_BEFORE_DTX ) {
60 psEnc->sCmn.inDTX = 0;
61 } else if( psEnc->sCmn.noSpeechCounter > MAX_CONSECUTIVE_DTX + NB_SPEECH_FRAMES_BEFORE_DTX )
    [all...]
find_pred_coefs_FIX.c 36 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
55 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
58 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
77 psEnc->sCmn.nb_subfr * psEnc->sCmn.predictLPCOrder
78 + psEnc->sCmn.frame_length, opus_int16 );
79 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
85 silk_assert( psEnc->sCmn.ltp_mem_length - psEnc->sCmn.predictLPCOrder >= psEncCtrl->pitchL[ 0 ] + LTP_ORDER / 2 );
87 ALLOC( WLTP, psEnc->sCmn.nb_subfr * LTP_ORDER * LTP_ORDER, opus_int32 )
    [all...]
LTP_scale_ctrl_FIX.c 36 silk_encoder_state_FIX *psEnc, /* I/O encoder state */
45 round_loss = psEnc->sCmn.PacketLoss_perc + psEnc->sCmn.nFramesPerPacket;
46 psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT(
50 psEnc->sCmn.indices.LTP_scaleIndex = 0;
52 psEncCtrl->LTP_scale_Q14 = silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ];
  /external/chromium_org/third_party/opus/src/silk/float/
find_pitch_lags_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
56 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length;
59 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length );
61 x_buf = x - psEnc->sCmn.ltp_mem_length;
70 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length;
72 silk_apply_sine_window_FLP( Wsig_ptr, x_buf_ptr, 1, psEnc->sCmn.la_pitch );
75 Wsig_ptr += psEnc->sCmn.la_pitch;
76 x_buf_ptr += psEnc->sCmn.la_pitch
    [all...]
encode_frame_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
44 silk_encoder_state_FLP *psEnc /* I/O Encoder state FLP */
50 silk_VAD_GetSA_Q8( &psEnc->sCmn, psEnc->sCmn.inputBuf + 1 );
55 if( psEnc->sCmn.speech_activity_Q8 < SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ) ) {
56 psEnc->sCmn.indices.signalType = TYPE_NO_VOICE_ACTIVITY;
57 psEnc->sCmn.noSpeechCounter++;
58 if( psEnc->sCmn.noSpeechCounter < NB_SPEECH_FRAMES_BEFORE_DTX ) {
59 psEnc->sCmn.inDTX = 0;
60 } else if( psEnc->sCmn.noSpeechCounter > MAX_CONSECUTIVE_DTX + NB_SPEECH_FRAMES_BEFORE_DTX )
    [all...]
find_pred_coefs_FLP.c 36 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
52 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
58 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
62 silk_assert( psEnc->sCmn.ltp_mem_length - psEnc->sCmn.predictLPCOrder >= psEncCtrl->pitchL[ 0 ] + LTP_ORDER / 2 );
66 psEncCtrl->pitchL, Wght, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_length );
69 silk_quant_LTP_gains_FLP( psEncCtrl->LTPCoef, psEnc->sCmn.indices.LTPIndex, &psEnc->sCmn.indices.PERIndex
    [all...]
LTP_scale_ctrl_FLP.c 35 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
44 round_loss = psEnc->sCmn.PacketLoss_perc + psEnc->sCmn.nFramesPerPacket;
45 psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT( round_loss * psEncCtrl->LTPredCodGain * 0.1f, 0.0f, 2.0f );
48 psEnc->sCmn.indices.LTP_scaleIndex = 0;
51 psEncCtrl->LTP_scale = (silk_float)silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ] / 16384.0f;
process_gains_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
42 silk_shape_state_FLP *psShapeSt = &psEnc->sShape;
48 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
50 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
56 InvMaxSqrVal = ( silk_float )( pow( 2.0f, 0.33f * ( 21.0f - psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ) ) ) / psEnc->sCmn.subfr_length );
58 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
66 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
71 silk_memcpy( psEncCtrl->GainsUnq_Q16, pGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) );
75 silk_gains_quant( psEnc->sCmn.indices.GainsIndices, pGains_Q16
    [all...]
noise_shape_analysis_FLP.c 129 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
135 silk_shape_state_FLP *psShapeSt = &psEnc->sShape;
145 x_ptr = x - psEnc->sCmn.la_shape;
150 SNR_adj_dB = psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f );
153 psEncCtrl->input_quality = 0.5f * ( psEnc->sCmn.input_quality_bands_Q15[ 0 ] + psEnc->sCmn.input_quality_bands_Q15[ 1 ] ) * ( 1.0f / 32768.0f );
158 if( psEnc->sCmn.useCBR == 0 ) {
160 b = 1.0f - psEnc->sCmn.speech_activity_Q8 * ( 1.0f / 256.0f );
164 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
166 SNR_adj_dB += HARM_SNR_INCR_dB * psEnc->LTPCorr
    [all...]
  /external/libopus/silk/float/
find_pitch_lags_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
56 buf_len = psEnc->sCmn.la_pitch + psEnc->sCmn.frame_length + psEnc->sCmn.ltp_mem_length;
59 silk_assert( buf_len >= psEnc->sCmn.pitch_LPC_win_length );
61 x_buf = x - psEnc->sCmn.ltp_mem_length;
70 x_buf_ptr = x_buf + buf_len - psEnc->sCmn.pitch_LPC_win_length;
72 silk_apply_sine_window_FLP( Wsig_ptr, x_buf_ptr, 1, psEnc->sCmn.la_pitch );
75 Wsig_ptr += psEnc->sCmn.la_pitch;
76 x_buf_ptr += psEnc->sCmn.la_pitch
    [all...]
encode_frame_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
44 silk_encoder_state_FLP *psEnc /* I/O Encoder state FLP */
50 silk_VAD_GetSA_Q8( &psEnc->sCmn, psEnc->sCmn.inputBuf + 1 );
55 if( psEnc->sCmn.speech_activity_Q8 < SILK_FIX_CONST( SPEECH_ACTIVITY_DTX_THRES, 8 ) ) {
56 psEnc->sCmn.indices.signalType = TYPE_NO_VOICE_ACTIVITY;
57 psEnc->sCmn.noSpeechCounter++;
58 if( psEnc->sCmn.noSpeechCounter < NB_SPEECH_FRAMES_BEFORE_DTX ) {
59 psEnc->sCmn.inDTX = 0;
60 } else if( psEnc->sCmn.noSpeechCounter > MAX_CONSECUTIVE_DTX + NB_SPEECH_FRAMES_BEFORE_DTX )
    [all...]
find_pred_coefs_FLP.c 36 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
52 for( i = 0; i < psEnc->sCmn.nb_subfr; i++ ) {
58 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
62 silk_assert( psEnc->sCmn.ltp_mem_length - psEnc->sCmn.predictLPCOrder >= psEncCtrl->pitchL[ 0 ] + LTP_ORDER / 2 );
66 psEncCtrl->pitchL, Wght, psEnc->sCmn.subfr_length, psEnc->sCmn.nb_subfr, psEnc->sCmn.ltp_mem_length );
69 silk_quant_LTP_gains_FLP( psEncCtrl->LTPCoef, psEnc->sCmn.indices.LTPIndex, &psEnc->sCmn.indices.PERIndex
    [all...]
LTP_scale_ctrl_FLP.c 35 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
44 round_loss = psEnc->sCmn.PacketLoss_perc + psEnc->sCmn.nFramesPerPacket;
45 psEnc->sCmn.indices.LTP_scaleIndex = (opus_int8)silk_LIMIT( round_loss * psEncCtrl->LTPredCodGain * 0.1f, 0.0f, 2.0f );
48 psEnc->sCmn.indices.LTP_scaleIndex = 0;
51 psEncCtrl->LTP_scale = (silk_float)silk_LTPScales_table_Q14[ psEnc->sCmn.indices.LTP_scaleIndex ] / 16384.0f;
process_gains_FLP.c 37 silk_encoder_state_FLP *psEnc, /* I/O Encoder state FLP */
42 silk_shape_state_FLP *psShapeSt = &psEnc->sShape;
48 if( psEnc->sCmn.indices.signalType == TYPE_VOICED ) {
50 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
56 InvMaxSqrVal = ( silk_float )( pow( 2.0f, 0.33f * ( 21.0f - psEnc->sCmn.SNR_dB_Q7 * ( 1 / 128.0f ) ) ) / psEnc->sCmn.subfr_length );
58 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
66 for( k = 0; k < psEnc->sCmn.nb_subfr; k++ ) {
71 silk_memcpy( psEncCtrl->GainsUnq_Q16, pGains_Q16, psEnc->sCmn.nb_subfr * sizeof( opus_int32 ) );
75 silk_gains_quant( psEnc->sCmn.indices.GainsIndices, pGains_Q16
    [all...]

Completed in 2549 milliseconds

1 2