Lines Matching refs:sbc
196 SBCEncContext *sbc = avctx->priv_data; in sbc_encode_init() local
197 struct sbc_frame *frame = &sbc->frame; in sbc_encode_init()
200 sbc->msbc = 1; in sbc_encode_init()
202 if (sbc->msbc) { in sbc_encode_init()
230 if (sbc->max_delay <= 3000 || avctx->bit_rate > 270000) in sbc_encode_init()
239 if (sbc->max_delay <= 4000 || avctx->bit_rate > 420000) in sbc_encode_init()
245 frame->blocks = av_clip(((sbc->max_delay * avctx->sample_rate + 2) in sbc_encode_init()
268 memset(&sbc->dsp.X, 0, sizeof(sbc->dsp.X)); in sbc_encode_init()
269 sbc->dsp.position = (SBC_X_BUFFER_SIZE - frame->subbands * 9) & ~7; in sbc_encode_init()
270 sbc->dsp.increment = sbc->msbc ? 1 : 4; in sbc_encode_init()
271 ff_sbcdsp_init(&sbc->dsp); in sbc_encode_init()
279 SBCEncContext *sbc = avctx->priv_data; in sbc_encode_frame() local
280 struct sbc_frame *frame = &sbc->frame; in sbc_encode_frame()
298 sbc->dsp.position = sbc->dsp.sbc_enc_process_input_8s( in sbc_encode_frame()
299 sbc->dsp.position, av_frame->data[0], sbc->dsp.X, in sbc_encode_frame()
302 sbc->dsp.position = sbc->dsp.sbc_enc_process_input_4s( in sbc_encode_frame()
303 sbc->dsp.position, av_frame->data[0], sbc->dsp.X, in sbc_encode_frame()
306 sbc_analyze_audio(&sbc->dsp, &sbc->frame); in sbc_encode_frame()
309 j = sbc->dsp.sbc_calc_scalefactors_j(frame->sb_sample_f, in sbc_encode_frame()
314 sbc->dsp.sbc_calc_scalefactors(frame->sb_sample_f, in sbc_encode_frame()
320 sbc_pack_frame(avpkt, frame, j, sbc->msbc); in sbc_encode_frame()