Lines Matching refs:encoder

318     SBC_ENC_PARAMS encoder;  member
1828 btif_media_cb.encoder.s16ChannelMode = pInitAudio->ChannelMode; in btif_media_task_enc_init()
1829 btif_media_cb.encoder.s16NumOfSubBands = pInitAudio->NumOfSubBands; in btif_media_task_enc_init()
1830 btif_media_cb.encoder.s16NumOfBlocks = pInitAudio->NumOfBlocks; in btif_media_task_enc_init()
1831 btif_media_cb.encoder.s16AllocationMethod = pInitAudio->AllocationMethod; in btif_media_task_enc_init()
1832 btif_media_cb.encoder.s16SamplingFreq = pInitAudio->SamplingFreq; in btif_media_task_enc_init()
1834 btif_media_cb.encoder.u16BitRate = btif_media_task_get_sbc_rate(); in btif_media_task_enc_init()
1845 btif_media_cb.encoder.s16ChannelMode, btif_media_cb.encoder.s16NumOfSubBands, in btif_media_task_enc_init()
1846 btif_media_cb.encoder.s16NumOfBlocks, in btif_media_task_enc_init()
1847 btif_media_cb.encoder.s16AllocationMethod, btif_media_cb.encoder.u16BitRate, in btif_media_task_enc_init()
1848 btif_media_cb.encoder.s16SamplingFreq); in btif_media_task_enc_init()
1851 SBC_Encoder_Init(&(btif_media_cb.encoder)); in btif_media_task_enc_init()
1855 APPL_TRACE_DEBUG("%s bit pool %d", __func__, btif_media_cb.encoder.s16BitPool); in btif_media_task_enc_init()
1871 SBC_ENC_PARAMS *pstrEncParams = &btif_media_cb.encoder; in btif_media_task_enc_update()
1983 btif_media_cb.encoder.u16BitRate -= BTIF_MEDIA_BITRATE_STEP; in btif_media_task_enc_update()
1991 UINT16 previous_u16BitRate = btif_media_cb.encoder.u16BitRate; in btif_media_task_enc_update()
1992 btif_media_cb.encoder.u16BitRate += BTIF_MEDIA_BITRATE_STEP; in btif_media_task_enc_update()
1996 if (btif_media_cb.encoder.u16BitRate < previous_u16BitRate) in btif_media_task_enc_update()
2012 btif_media_cb.encoder.u16BitRate, in btif_media_task_enc_update()
2013 btif_media_cb.encoder.s16BitPool); in btif_media_task_enc_update()
2016 SBC_Encoder_Init(&(btif_media_cb.encoder)); in btif_media_task_enc_update()
2049 if (btif_media_cb.encoder.s16SamplingFreq != SBC_sf48000) in btif_media_task_pcm2sbc_init()
2053 btif_media_cb.encoder.s16SamplingFreq = SBC_sf48000; in btif_media_task_pcm2sbc_init()
2062 if (btif_media_cb.encoder.s16SamplingFreq != SBC_sf44100) in btif_media_task_pcm2sbc_init()
2066 btif_media_cb.encoder.s16SamplingFreq = SBC_sf44100; in btif_media_task_pcm2sbc_init()
2076 if (btif_media_cb.encoder.s16ChannelMode == SBC_MONO) in btif_media_task_pcm2sbc_init()
2079 btif_media_cb.encoder.s16ChannelMode = SBC_JOINT_STEREO; in btif_media_task_pcm2sbc_init()
2087 btif_media_cb.encoder.s16ChannelMode, in btif_media_task_pcm2sbc_init()
2088 btif_media_cb.encoder.s16NumOfSubBands, btif_media_cb.encoder.s16NumOfBlocks, in btif_media_task_pcm2sbc_init()
2089 btif_media_cb.encoder.s16AllocationMethod, btif_media_cb.encoder.u16BitRate, in btif_media_task_pcm2sbc_init()
2090 btif_media_cb.encoder.s16SamplingFreq); in btif_media_task_pcm2sbc_init()
2092 SBC_Encoder_Init(&(btif_media_cb.encoder)); in btif_media_task_pcm2sbc_init()
2497 btif_media_cb.encoder.s16ChannelMode, in get_frame_length()
2498 btif_media_cb.encoder.s16NumOfSubBands, in get_frame_length()
2499 btif_media_cb.encoder.s16NumOfBlocks, in get_frame_length()
2500 btif_media_cb.encoder.s16BitPool, in get_frame_length()
2501 btif_media_cb.encoder.s16SamplingFreq, in get_frame_length()
2502 btif_media_cb.encoder.s16NumOfChannels); in get_frame_length()
2504 switch (btif_media_cb.encoder.s16ChannelMode) { in get_frame_length()
2509 ((UINT32)(SBC_SCALE_FACTOR_BITS * btif_media_cb.encoder.s16NumOfSubBands * in get_frame_length()
2510 btif_media_cb.encoder.s16NumOfChannels) / CHAR_BIT) + in get_frame_length()
2511 ((UINT32)(btif_media_cb.encoder.s16NumOfBlocks * in get_frame_length()
2512 btif_media_cb.encoder.s16NumOfChannels * in get_frame_length()
2513 btif_media_cb.encoder.s16BitPool) / CHAR_BIT); in get_frame_length()
2517 ((UINT32)(SBC_SCALE_FACTOR_BITS * btif_media_cb.encoder.s16NumOfSubBands * in get_frame_length()
2518 btif_media_cb.encoder.s16NumOfChannels) / CHAR_BIT) + in get_frame_length()
2519 ((UINT32)(btif_media_cb.encoder.s16NumOfBlocks * in get_frame_length()
2520 btif_media_cb.encoder.s16BitPool) / CHAR_BIT); in get_frame_length()
2524 ((UINT32)(SBC_SCALE_FACTOR_BITS * btif_media_cb.encoder.s16NumOfSubBands * in get_frame_length()
2525 btif_media_cb.encoder.s16NumOfChannels) / CHAR_BIT) + in get_frame_length()
2526 ((UINT32)(btif_media_cb.encoder.s16NumOfSubBands + in get_frame_length()
2527 (btif_media_cb.encoder.s16NumOfBlocks * in get_frame_length()
2528 btif_media_cb.encoder.s16BitPool)) / CHAR_BIT); in get_frame_length()
2532 __func__, btif_media_cb.encoder.s16ChannelMode); in get_frame_length()
2560 if (!btif_media_cb.encoder.s16NumOfSubBands) { in calculate_max_frames_per_packet()
2563 btif_media_cb.encoder.s16NumOfSubBands = SBC_MAX_NUM_OF_SUBBANDS; in calculate_max_frames_per_packet()
2565 if (!btif_media_cb.encoder.s16NumOfBlocks) { in calculate_max_frames_per_packet()
2568 btif_media_cb.encoder.s16NumOfBlocks = SBC_MAX_NUM_OF_BLOCKS; in calculate_max_frames_per_packet()
2570 if (!btif_media_cb.encoder.s16NumOfChannels) { in calculate_max_frames_per_packet()
2573 btif_media_cb.encoder.s16NumOfChannels = SBC_MAX_NUM_OF_CHANNELS; in calculate_max_frames_per_packet()
2581 switch (btif_media_cb.encoder.s16SamplingFreq) { in calculate_max_frames_per_packet()
2631 UINT32 pcm_bytes_per_frame = btif_media_cb.encoder.s16NumOfSubBands * in btif_get_num_aa_frame_iteration()
2632 btif_media_cb.encoder.s16NumOfBlocks * in btif_get_num_aa_frame_iteration()
2809 UINT16 blocm_x_subband = btif_media_cb.encoder.s16NumOfSubBands * \ in btif_media_aa_read_feeding()
2810 btif_media_cb.encoder.s16NumOfBlocks; in btif_media_aa_read_feeding()
2814 UINT16 bytes_needed = blocm_x_subband * btif_media_cb.encoder.s16NumOfChannels * \ in btif_media_aa_read_feeding()
2828 switch (btif_media_cb.encoder.s16SamplingFreq) in btif_media_aa_read_feeding()
2847 ((UINT8 *)btif_media_cb.encoder.as16PcmBuffer) + in btif_media_aa_read_feeding()
2953 memcpy((UINT8 *)btif_media_cb.encoder.as16PcmBuffer, in btif_media_aa_read_feeding()
2984 UINT16 blocm_x_subband = btif_media_cb.encoder.s16NumOfSubBands * in btif_media_aa_prep_sbc_2_send()
2985 btif_media_cb.encoder.s16NumOfBlocks; in btif_media_aa_prep_sbc_2_send()
2998 btif_media_cb.encoder.pu8Packet = (UINT8 *) (p_buf + 1) + p_buf->offset + p_buf->len; in btif_media_aa_prep_sbc_2_send()
3000 memset(btif_media_cb.encoder.as16PcmBuffer, 0, blocm_x_subband in btif_media_aa_prep_sbc_2_send()
3001 * btif_media_cb.encoder.s16NumOfChannels); in btif_media_aa_prep_sbc_2_send()
3006 SBC_Encoder(&(btif_media_cb.encoder)); in btif_media_aa_prep_sbc_2_send()
3009 p_buf->len += btif_media_cb.encoder.u16PacketLength; in btif_media_aa_prep_sbc_2_send()
3018 btif_media_cb.encoder.s16NumOfSubBands * in btif_media_aa_prep_sbc_2_send()
3019 btif_media_cb.encoder.s16NumOfBlocks * in btif_media_aa_prep_sbc_2_send()
3033 } while (((p_buf->len + btif_media_cb.encoder.u16PacketLength) < btif_media_cb.TxAaMtuSize) in btif_media_aa_prep_sbc_2_send()