Lines Matching refs:idwl1

32     int idsp, idwl1, idwl2;  in encode_audio_block_a_ldac()  local
80 idwl1 = p_idsf[iqu] + p_grad[iqu]; in encode_audio_block_a_ldac()
81 if (idwl1 < LDAC_MINIDWL1) { in encode_audio_block_a_ldac()
82 idwl1 = LDAC_MINIDWL1; in encode_audio_block_a_ldac()
85 if (idwl1 > LDAC_MAXIDWL1) { in encode_audio_block_a_ldac()
86 idwl2 = idwl1 - LDAC_MAXIDWL1; in encode_audio_block_a_ldac()
90 idwl1 = LDAC_MAXIDWL1; in encode_audio_block_a_ldac()
92 p_idwl1[iqu] = idwl1; in encode_audio_block_a_ldac()
95 nbits += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in encode_audio_block_a_ldac()
100 idwl1 = p_idsf[iqu] + p_grad[iqu] + p_addwl[iqu]; in encode_audio_block_a_ldac()
101 if (idwl1 > 0) { in encode_audio_block_a_ldac()
102 idwl1 = idwl1 >> 1; in encode_audio_block_a_ldac()
104 if (idwl1 < LDAC_MINIDWL1) { in encode_audio_block_a_ldac()
105 idwl1 = LDAC_MINIDWL1; in encode_audio_block_a_ldac()
108 if (idwl1 > LDAC_MAXIDWL1) { in encode_audio_block_a_ldac()
109 idwl2 = idwl1 - LDAC_MAXIDWL1; in encode_audio_block_a_ldac()
113 idwl1 = LDAC_MAXIDWL1; in encode_audio_block_a_ldac()
115 p_idwl1[iqu] = idwl1; in encode_audio_block_a_ldac()
118 nbits += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in encode_audio_block_a_ldac()
123 idwl1 = p_idsf[iqu] + p_grad[iqu] + p_addwl[iqu]; in encode_audio_block_a_ldac()
124 if (idwl1 > 0) { in encode_audio_block_a_ldac()
125 idwl1 = (idwl1*3) >> 3; in encode_audio_block_a_ldac()
127 if (idwl1 < LDAC_MINIDWL1) { in encode_audio_block_a_ldac()
128 idwl1 = LDAC_MINIDWL1; in encode_audio_block_a_ldac()
131 if (idwl1 > LDAC_MAXIDWL1) { in encode_audio_block_a_ldac()
132 idwl2 = idwl1 - LDAC_MAXIDWL1; in encode_audio_block_a_ldac()
136 idwl1 = LDAC_MAXIDWL1; in encode_audio_block_a_ldac()
138 p_idwl1[iqu] = idwl1; in encode_audio_block_a_ldac()
141 nbits += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in encode_audio_block_a_ldac()
146 idwl1 = p_idsf[iqu] + p_grad[iqu] + p_addwl[iqu]; in encode_audio_block_a_ldac()
147 if (idwl1 > 0) { in encode_audio_block_a_ldac()
148 idwl1 = idwl1 >> 2; in encode_audio_block_a_ldac()
150 if (idwl1 < LDAC_MINIDWL1) { in encode_audio_block_a_ldac()
151 idwl1 = LDAC_MINIDWL1; in encode_audio_block_a_ldac()
154 if (idwl1 > LDAC_MAXIDWL1) { in encode_audio_block_a_ldac()
155 idwl2 = idwl1 - LDAC_MAXIDWL1; in encode_audio_block_a_ldac()
159 idwl1 = LDAC_MAXIDWL1; in encode_audio_block_a_ldac()
161 p_idwl1[iqu] = idwl1; in encode_audio_block_a_ldac()
164 nbits += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in encode_audio_block_a_ldac()
184 int idsp, idwl1, idwl2; in encode_audio_block_b_ldac() local
195 idwl1 = p_tmp[iqu]; in encode_audio_block_b_ldac()
197 idwl1++; in encode_audio_block_b_ldac()
200 if (idwl1 > LDAC_MAXIDWL1) { in encode_audio_block_b_ldac()
201 idwl2 = idwl1 - LDAC_MAXIDWL1; in encode_audio_block_b_ldac()
205 idwl1 = LDAC_MAXIDWL1; in encode_audio_block_b_ldac()
207 p_idwl1[iqu] = idwl1; in encode_audio_block_b_ldac()
210 nbits += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in encode_audio_block_b_ldac()
547 int idsp, idwl1, idwl2, tmp; in adjust_remain_bits_ldac() local
568 idwl1 = p_idwl1[iqu]; in adjust_remain_bits_ldac()
571 nbits_fix += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in adjust_remain_bits_ldac()
581 idwl1 = p_idwl1[iqu]; in adjust_remain_bits_ldac()
584 nbits_fix += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in adjust_remain_bits_ldac()
597 idwl1 = p_idwl1[iqu]; in adjust_remain_bits_ldac()
600 nbits_fix += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in adjust_remain_bits_ldac()
613 idwl1 = p_idwl1[iqu]; in adjust_remain_bits_ldac()
616 nbits_fix += gaa_ndim_wls_ldac[idsp][idwl1] + ga_wl_ldac[idwl2] * ga_nsps_ldac[iqu]; in adjust_remain_bits_ldac()