Lines Matching refs:p_ac
161 AC *p_ac, in pack_scale_factor_0_ldac() argument
167 int nqus = p_ac->p_ab->nqus; in pack_scale_factor_0_ldac()
171 pack_store_ldac(p_ac->sfc_bitlen-LDAC_MINSFCBLEN_0, LDAC_SFCBLENBITS, p_stream, p_loc); in pack_scale_factor_0_ldac()
173 pack_store_ldac(p_ac->sfc_offset, LDAC_IDSFBITS, p_stream, p_loc); in pack_scale_factor_0_ldac()
175 pack_store_ldac(p_ac->sfc_weight, LDAC_SFCWTBLBITS, p_stream, p_loc); in pack_scale_factor_0_ldac()
177 p_tbl = gaa_sfcwgt_ldac[p_ac->sfc_weight]; in pack_scale_factor_0_ldac()
178 val0 = p_ac->a_idsf[0] + p_tbl[0]; in pack_scale_factor_0_ldac()
180 pack_store_ldac(val0-p_ac->sfc_offset, p_ac->sfc_bitlen, p_stream, p_loc); in pack_scale_factor_0_ldac()
182 p_hcsf = ga_hcenc_sf0_ldac + (p_ac->sfc_bitlen-LDAC_MINSFCBLEN_0); in pack_scale_factor_0_ldac()
184 val1 = p_ac->a_idsf[iqu] + p_tbl[iqu]; in pack_scale_factor_0_ldac()
197 AC *p_ac, in pack_scale_factor_1_ldac() argument
202 int nqus = p_ac->p_ab->nqus; in pack_scale_factor_1_ldac()
205 pack_store_ldac(p_ac->sfc_bitlen-LDAC_MINSFCBLEN_1, LDAC_SFCBLENBITS, p_stream, p_loc); in pack_scale_factor_1_ldac()
207 if (p_ac->sfc_bitlen > 4) { in pack_scale_factor_1_ldac()
209 pack_store_ldac(p_ac->a_idsf[iqu], LDAC_IDSFBITS, p_stream, p_loc); in pack_scale_factor_1_ldac()
213 pack_store_ldac(p_ac->sfc_offset, LDAC_IDSFBITS, p_stream, p_loc); in pack_scale_factor_1_ldac()
215 pack_store_ldac(p_ac->sfc_weight, LDAC_SFCWTBLBITS, p_stream, p_loc); in pack_scale_factor_1_ldac()
217 p_tbl = gaa_sfcwgt_ldac[p_ac->sfc_weight]; in pack_scale_factor_1_ldac()
219 … pack_store_ldac(p_ac->a_idsf[iqu]+p_tbl[iqu]-p_ac->sfc_offset, p_ac->sfc_bitlen, p_stream, p_loc); in pack_scale_factor_1_ldac()
230 AC *p_ac, in pack_scale_factor_2_ldac() argument
236 int nqus = p_ac->p_ab->nqus; in pack_scale_factor_2_ldac()
239 pack_store_ldac(p_ac->sfc_bitlen-LDAC_MINSFCBLEN_2, LDAC_SFCBLENBITS, p_stream, p_loc); in pack_scale_factor_2_ldac()
241 p_hcsf = ga_hcenc_sf1_ldac + (p_ac->sfc_bitlen-LDAC_MINSFCBLEN_2); in pack_scale_factor_2_ldac()
243 dif = (p_ac->a_idsf[iqu] - p_ac->p_ab->ap_ac[0]->a_idsf[iqu]) & p_hcsf->mask; in pack_scale_factor_2_ldac()
254 AC *p_ac, in pack_scale_factor_ldac() argument
258 int sfc_mode = p_ac->sfc_mode; in pack_scale_factor_ldac()
262 if (p_ac->ich == 0) { in pack_scale_factor_ldac()
264 pack_scale_factor_0_ldac(p_ac, p_stream, p_loc); in pack_scale_factor_ldac()
267 pack_scale_factor_1_ldac(p_ac, p_stream, p_loc); in pack_scale_factor_ldac()
272 pack_scale_factor_0_ldac(p_ac, p_stream, p_loc); in pack_scale_factor_ldac()
275 pack_scale_factor_2_ldac(p_ac, p_stream, p_loc); in pack_scale_factor_ldac()
286 AC *p_ac, in pack_spectrum_ldac() argument
292 int nqus = p_ac->p_ab->nqus; in pack_spectrum_ldac()
299 idwl1 = p_ac->a_idwl1[iqu]; in pack_spectrum_ldac()
306 val = (p_ac->a_qspec[isp ]+1) << 2; in pack_spectrum_ldac()
307 val += (p_ac->a_qspec[isp+1]+1); in pack_spectrum_ldac()
312 val = (p_ac->a_qspec[isp ]+1) << 6; in pack_spectrum_ldac()
313 val += (p_ac->a_qspec[isp+1]+1) << 4; in pack_spectrum_ldac()
314 val += (p_ac->a_qspec[isp+2]+1) << 2; in pack_spectrum_ldac()
315 val += (p_ac->a_qspec[isp+3]+1); in pack_spectrum_ldac()
322 pack_store_ldac(p_ac->a_qspec[isp], wl, p_stream, p_loc); in pack_spectrum_ldac()
334 AC *p_ac, in pack_residual_ldac() argument
340 int nqus = p_ac->p_ab->nqus; in pack_residual_ldac()
344 idwl2 = p_ac->a_idwl2[iqu]; in pack_residual_ldac()
352 pack_store_ldac(p_ac->a_rspec[isp], wl, p_stream, p_loc); in pack_residual_ldac()
368 AC *p_ac; in pack_audio_block_ldac() local
390 p_ac = p_ab->ap_ac[ich]; in pack_audio_block_ldac()
393 pack_scale_factor_ldac(p_ac, p_stream, p_loc); in pack_audio_block_ldac()
397 pack_spectrum_ldac(p_ac, p_stream, p_loc); in pack_audio_block_ldac()
401 pack_residual_ldac(p_ac, p_stream, p_loc); in pack_audio_block_ldac()