Lines Matching defs:sbc
33 #include <sbc/sbc.h>
43 sbc_t sbc; /* Codec data */
250 sbc_info->sbc.frequency = sbc_info->frequency;
251 sbc_info->sbc.blocks = sbc_info->blocks;
252 sbc_info->sbc.subbands = sbc_info->subbands;
253 sbc_info->sbc.mode = sbc_info->mode;
254 sbc_info->sbc.allocation = sbc_info->allocation;
255 sbc_info->sbc.bitpool = sbc_info->initial_bitpool;
256 sbc_info->sbc.endian = SBC_LE;
258 sbc_info->codesize = sbc_get_codesize(&sbc_info->sbc);
259 sbc_info->frame_length = sbc_get_frame_length(&sbc_info->sbc);
269 ret = sbc_init(&sbc_info.sbc, 0);
291 sbc_finish(&sbc_info.sbc);
302 * http://soundexpert.org/articles/-/blogs/audio-quality-of-sbc-xq-bluetooth-audio-codec
657 ret = sbc_init(&sbc_info->sbc, 0);
678 sbc_info->sbc.allocation ? "SNR" : "Loudness", sbc_info->sbc.subbands ? 8 : 4,
679 (sbc_info->sbc.blocks+1)*4, sbc_info->sbc.mode == SBC_MODE_MONO ? "Mono" :
680 sbc_info->sbc.mode == SBC_MODE_DUAL_CHANNEL ? "DualChannel" :
681 sbc_info->sbc.mode == SBC_MODE_STEREO ? "Stereo" : "JointStereo",
682 sbc_info->sbc.bitpool, (unsigned)sbc_info->codesize, (unsigned)sbc_info->frame_length);
690 sbc_finish(&sbc_info->sbc);
700 sbc_info->sbc.bitpool = bitpool;
702 sbc_info->codesize = sbc_get_codesize(&sbc_info->sbc);
703 sbc_info->frame_length = sbc_get_frame_length(&sbc_info->sbc);
705 pa_log_debug("Bitpool has changed to %u", sbc_info->sbc.bitpool);
712 ret = sbc_reinit(&sbc_info->sbc, 0);
759 bitpool = PA_MAX(sbc_info->sbc.bitpool - SBC_BITPOOL_DEC_STEP, sbc_info->min_bitpool);
761 if (sbc_info->sbc.bitpool == bitpool)
772 bitpool = PA_MIN(sbc_info->sbc.bitpool + SBC_BITPOOL_INC_STEP, sbc_info->max_bitpool);
774 if (sbc_info->sbc.bitpool == bitpool)
806 encoded = sbc_encode(&sbc_info->sbc,
837 pa_log_debug("Using SBC codec implementation: %s", pa_strnull(sbc_get_implementation_info(&sbc_info->sbc)));
895 decoded = sbc_decode(&sbc_info->sbc,
906 sbc_info->frame_length = sbc_get_frame_length(&sbc_info->sbc);
937 .name = "sbc",