Lines Matching refs:psEncC

37 …silk_encoder_state          *psEncC,                        /* I/O  Pointer to Silk encoder state …  in silk_control_audio_bandwidth()  argument
44 fs_kHz = psEncC->fs_kHz; in silk_control_audio_bandwidth()
48 fs_Hz = silk_min( psEncC->desiredInternal_fs_Hz, psEncC->API_fs_Hz ); in silk_control_audio_bandwidth()
50 …} else if( fs_Hz > psEncC->API_fs_Hz || fs_Hz > psEncC->maxInternal_fs_Hz || fs_Hz < psEncC->minIn… in silk_control_audio_bandwidth()
52 fs_Hz = psEncC->API_fs_Hz; in silk_control_audio_bandwidth()
53 fs_Hz = silk_min( fs_Hz, psEncC->maxInternal_fs_Hz ); in silk_control_audio_bandwidth()
54 fs_Hz = silk_max( fs_Hz, psEncC->minInternal_fs_Hz ); in silk_control_audio_bandwidth()
58 if( psEncC->sLP.transition_frame_no >= TRANSITION_FRAMES ) { in silk_control_audio_bandwidth()
60 psEncC->sLP.mode = 0; in silk_control_audio_bandwidth()
62 if( psEncC->allow_bandwidth_switch || encControl->opusCanSwitch ) { in silk_control_audio_bandwidth()
64 if( silk_SMULBB( psEncC->fs_kHz, 1000 ) > psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth()
67 if( psEncC->sLP.mode == 0 ) { in silk_control_audio_bandwidth()
69 psEncC->sLP.transition_frame_no = TRANSITION_FRAMES; in silk_control_audio_bandwidth()
72 silk_memset( psEncC->sLP.In_LP_State, 0, sizeof( psEncC->sLP.In_LP_State ) ); in silk_control_audio_bandwidth()
76 psEncC->sLP.mode = 0; in silk_control_audio_bandwidth()
79 fs_kHz = psEncC->fs_kHz == 16 ? 12 : 8; in silk_control_audio_bandwidth()
81 if( psEncC->sLP.transition_frame_no <= 0 ) { in silk_control_audio_bandwidth()
87 psEncC->sLP.mode = -2; in silk_control_audio_bandwidth()
93 if( silk_SMULBB( psEncC->fs_kHz, 1000 ) < psEncC->desiredInternal_fs_Hz ) in silk_control_audio_bandwidth()
98 fs_kHz = psEncC->fs_kHz == 8 ? 12 : 16; in silk_control_audio_bandwidth()
101 psEncC->sLP.transition_frame_no = 0; in silk_control_audio_bandwidth()
104 silk_memset( psEncC->sLP.In_LP_State, 0, sizeof( psEncC->sLP.In_LP_State ) ); in silk_control_audio_bandwidth()
107 psEncC->sLP.mode = 1; in silk_control_audio_bandwidth()
109 if( psEncC->sLP.mode == 0 ) { in silk_control_audio_bandwidth()
115 psEncC->sLP.mode = 1; in silk_control_audio_bandwidth()
119 if (psEncC->sLP.mode<0) in silk_control_audio_bandwidth()
120 psEncC->sLP.mode = 1; in silk_control_audio_bandwidth()