Lines Matching refs:feeding_state
104 tA2DP_SBC_FEEDING_STATE feeding_state; member
376 memset(&a2dp_sbc_encoder_cb.feeding_state, 0, in a2dp_sbc_feeding_reset()
377 sizeof(a2dp_sbc_encoder_cb.feeding_state)); in a2dp_sbc_feeding_reset()
379 a2dp_sbc_encoder_cb.feeding_state.bytes_per_tick = in a2dp_sbc_feeding_reset()
387 a2dp_sbc_encoder_cb.feeding_state.bytes_per_tick); in a2dp_sbc_feeding_reset()
391 a2dp_sbc_encoder_cb.feeding_state.counter = 0.0f; in a2dp_sbc_feeding_flush()
392 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue = 0; in a2dp_sbc_feeding_flush()
433 if (a2dp_sbc_encoder_cb.feeding_state.last_frame_us != 0) in a2dp_sbc_get_num_frame_iteration()
434 us_this_tick = (now_us - a2dp_sbc_encoder_cb.feeding_state.last_frame_us); in a2dp_sbc_get_num_frame_iteration()
435 a2dp_sbc_encoder_cb.feeding_state.last_frame_us = now_us; in a2dp_sbc_get_num_frame_iteration()
437 a2dp_sbc_encoder_cb.feeding_state.counter += in a2dp_sbc_get_num_frame_iteration()
438 (float)a2dp_sbc_encoder_cb.feeding_state.bytes_per_tick * us_this_tick / in a2dp_sbc_get_num_frame_iteration()
443 a2dp_sbc_encoder_cb.feeding_state.counter / pcm_bytes_per_frame; in a2dp_sbc_get_num_frame_iteration()
479 a2dp_sbc_encoder_cb.feeding_state.counter = in a2dp_sbc_get_num_frame_iteration()
501 a2dp_sbc_encoder_cb.feeding_state.counter = in a2dp_sbc_get_num_frame_iteration()
506 a2dp_sbc_encoder_cb.feeding_state.counter -= noi * nof * pcm_bytes_per_frame; in a2dp_sbc_get_num_frame_iteration()
553 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue); in a2dp_sbc_encode_frames()
554 a2dp_sbc_encoder_cb.feeding_state.counter += in a2dp_sbc_encode_frames()
629 bytes_needed - a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue; in a2dp_sbc_read_feeding()
633 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue, in a2dp_sbc_read_feeding()
640 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue += nb_byte_read; in a2dp_sbc_read_feeding()
644 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue = 0; in a2dp_sbc_read_feeding()
675 if (a2dp_sbc_encoder_cb.feeding_state.aa_feed_counter <= fract_threshold) { in a2dp_sbc_read_feeding()
680 a2dp_sbc_encoder_cb.feeding_state.aa_feed_counter++; /* one more read */ in a2dp_sbc_read_feeding()
681 if (a2dp_sbc_encoder_cb.feeding_state.aa_feed_counter > fract_max) { in a2dp_sbc_read_feeding()
682 a2dp_sbc_encoder_cb.feeding_state.aa_feed_counter = 0; in a2dp_sbc_read_feeding()
719 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue, in a2dp_sbc_read_feeding()
721 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue, in a2dp_sbc_read_feeding()
725 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue += dst_size_used; in a2dp_sbc_read_feeding()
728 if (a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue < bytes_needed) in a2dp_sbc_read_feeding()
735 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue -= bytes_needed; in a2dp_sbc_read_feeding()
737 if (a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue != 0) { in a2dp_sbc_read_feeding()
740 a2dp_sbc_encoder_cb.feeding_state.aa_feed_residue); in a2dp_sbc_read_feeding()