Lines Matching refs:s16BitPool

193   int16_t s16BitPool = 0;  in a2dp_sbc_encoder_update()  local
282 s16SamplingFreq, p_encoder_params->s16BitPool); in a2dp_sbc_encoder_update()
287 s16BitPool = (int16_t)((p_encoder_params->u16BitRate * in a2dp_sbc_encoder_update()
302 (p_encoder_params->s16NumOfBlocks * s16BitPool)) / in a2dp_sbc_encoder_update()
309 if (s16BitRate > p_encoder_params->u16BitRate) s16BitPool--; in a2dp_sbc_encoder_update()
312 s16BitPool = (s16BitPool > 255) ? 255 : s16BitPool; in a2dp_sbc_encoder_update()
314 s16BitPool = (s16BitPool > 128) ? 128 : s16BitPool; in a2dp_sbc_encoder_update()
316 s16BitPool = in a2dp_sbc_encoder_update()
324 p_encoder_params->s16BitPool = in a2dp_sbc_encoder_update()
325 (s16BitPool > (16 * p_encoder_params->s16NumOfSubBands)) in a2dp_sbc_encoder_update()
327 : s16BitPool; in a2dp_sbc_encoder_update()
330 if (s16BitPool < 0) s16BitPool = 0; in a2dp_sbc_encoder_update()
332 LOG_DEBUG("%s: bitpool candidate: %d (%d kbps)", __func__, s16BitPool, in a2dp_sbc_encoder_update()
335 if (s16BitPool > max_bitpool) { in a2dp_sbc_encoder_update()
336 LOG_DEBUG("%s: computed bitpool too large (%d)", __func__, s16BitPool); in a2dp_sbc_encoder_update()
341 } else if (s16BitPool < min_bitpool) { in a2dp_sbc_encoder_update()
342 LOG_WARN("%s: computed bitpool too small (%d)", __func__, s16BitPool); in a2dp_sbc_encoder_update()
362 p_encoder_params->s16BitPool = s16BitPool; in a2dp_sbc_encoder_update()
365 p_encoder_params->u16BitRate, p_encoder_params->s16BitPool); in a2dp_sbc_encoder_update()
856 p_encoder_params->s16BitPool, p_encoder_params->s16SamplingFreq, in a2dp_sbc_frame_length()
870 p_encoder_params->s16BitPool) / in a2dp_sbc_frame_length()
880 p_encoder_params->s16BitPool) / in a2dp_sbc_frame_length()
891 p_encoder_params->s16BitPool)) / in a2dp_sbc_frame_length()