Lines Matching defs:bap
76 const uint8_t *bap_tab, uint8_t *bap)
80 /* special case, if snr offset is -960, set all bap's to zero */
82 memset(bap, 0, AC3_MAX_COEFS);
95 bap[bin] = bap_tab[address];
100 static void ac3_update_bap_counts_c(uint16_t mant_cnt[16], uint8_t *bap,
104 mant_cnt[bap[len]]++;
113 int blk, bap;
117 // bap=1 : 3 mantissas in 5 bits
119 // bap=2 : 3 mantissas in 7 bits
120 // bap=4 : 2 mantissas in 7 bits
122 // bap=3 : 1 mantissa in 3 bits
124 // bap=5 to 15 : get bits per mantissa from table
125 for (bap = 5; bap < 16; bap++)
126 bits += mant_cnt[blk][bap] * ff_ac3_bap_bits[bap];