Lines Matching refs:sconf
196 ALSSpecificConfig sconf; member
266 ALSSpecificConfig *sconf = &ctx->sconf; in dprint_specific_config() local
268 ff_dlog(avctx, "resolution = %i\n", sconf->resolution); in dprint_specific_config()
269 ff_dlog(avctx, "floating = %i\n", sconf->floating); in dprint_specific_config()
270 ff_dlog(avctx, "frame_length = %i\n", sconf->frame_length); in dprint_specific_config()
271 ff_dlog(avctx, "ra_distance = %i\n", sconf->ra_distance); in dprint_specific_config()
272 ff_dlog(avctx, "ra_flag = %i\n", sconf->ra_flag); in dprint_specific_config()
273 ff_dlog(avctx, "adapt_order = %i\n", sconf->adapt_order); in dprint_specific_config()
274 ff_dlog(avctx, "coef_table = %i\n", sconf->coef_table); in dprint_specific_config()
275 ff_dlog(avctx, "long_term_prediction = %i\n", sconf->long_term_prediction); in dprint_specific_config()
276 ff_dlog(avctx, "max_order = %i\n", sconf->max_order); in dprint_specific_config()
277 ff_dlog(avctx, "block_switching = %i\n", sconf->block_switching); in dprint_specific_config()
278 ff_dlog(avctx, "bgmc = %i\n", sconf->bgmc); in dprint_specific_config()
279 ff_dlog(avctx, "sb_part = %i\n", sconf->sb_part); in dprint_specific_config()
280 ff_dlog(avctx, "joint_stereo = %i\n", sconf->joint_stereo); in dprint_specific_config()
281 ff_dlog(avctx, "mc_coding = %i\n", sconf->mc_coding); in dprint_specific_config()
282 ff_dlog(avctx, "chan_config = %i\n", sconf->chan_config); in dprint_specific_config()
283 ff_dlog(avctx, "chan_sort = %i\n", sconf->chan_sort); in dprint_specific_config()
284 ff_dlog(avctx, "RLSLMS = %i\n", sconf->rlslms); in dprint_specific_config()
285 ff_dlog(avctx, "chan_config_info = %i\n", sconf->chan_config_info); in dprint_specific_config()
298 ALSSpecificConfig *sconf = &ctx->sconf; in read_specific_config() local
321 sconf->samples = get_bits_long(&gb, 32); in read_specific_config()
325 sconf->resolution = get_bits(&gb, 3); in read_specific_config()
326 sconf->floating = get_bits1(&gb); in read_specific_config()
327 sconf->msb_first = get_bits1(&gb); in read_specific_config()
328 sconf->frame_length = get_bits(&gb, 16) + 1; in read_specific_config()
329 sconf->ra_distance = get_bits(&gb, 8); in read_specific_config()
330 sconf->ra_flag = get_bits(&gb, 2); in read_specific_config()
331 sconf->adapt_order = get_bits1(&gb); in read_specific_config()
332 sconf->coef_table = get_bits(&gb, 2); in read_specific_config()
333 sconf->long_term_prediction = get_bits1(&gb); in read_specific_config()
334 sconf->max_order = get_bits(&gb, 10); in read_specific_config()
335 sconf->block_switching = get_bits(&gb, 2); in read_specific_config()
336 sconf->bgmc = get_bits1(&gb); in read_specific_config()
337 sconf->sb_part = get_bits1(&gb); in read_specific_config()
338 sconf->joint_stereo = get_bits1(&gb); in read_specific_config()
339 sconf->mc_coding = get_bits1(&gb); in read_specific_config()
340 sconf->chan_config = get_bits1(&gb); in read_specific_config()
341 sconf->chan_sort = get_bits1(&gb); in read_specific_config()
342 sconf->crc_enabled = get_bits1(&gb); in read_specific_config()
343 sconf->rlslms = get_bits1(&gb); in read_specific_config()
357 ctx->cur_frame_length = sconf->frame_length; in read_specific_config()
360 if (sconf->chan_config) in read_specific_config()
361 sconf->chan_config_info = get_bits(&gb, 16); in read_specific_config()
366 if (sconf->chan_sort && avctx->channels > 1) { in read_specific_config()
372 if (!(sconf->chan_pos = av_malloc_array(avctx->channels, sizeof(*sconf->chan_pos)))) in read_specific_config()
378 sconf->chan_pos[i] = -1; in read_specific_config()
385 if (idx >= avctx->channels || sconf->chan_pos[idx] != -1) { in read_specific_config()
390 sconf->chan_pos[idx] = i; in read_specific_config()
423 if (sconf->crc_enabled) { in read_specific_config()
448 ALSSpecificConfig *sconf = &ctx->sconf; in check_specific_config() local
461 MISSING_ERR(sconf->rlslms, "Adaptive RLS-LMS prediction", AVERROR_PATCHWELCOME); in check_specific_config()
534 ALSSpecificConfig *sconf = &ctx->sconf; in get_block_sizes() local
539 if (sconf->block_switching) { in get_block_sizes()
540 unsigned int bs_info_len = 1 << (sconf->block_switching + 2); in get_block_sizes()
564 div_blocks[b] = ctx->sconf.frame_length >> div_blocks[b]; in get_block_sizes()
566 if (ctx->cur_frame_length != ctx->sconf.frame_length) { in get_block_sizes()
586 ALSSpecificConfig *sconf = &ctx->sconf; in read_const_block_data() local
601 unsigned int const_val_bits = sconf->floating ? 24 : avctx->bits_per_raw_sample; in read_const_block_data()
630 ALSSpecificConfig *sconf = &ctx->sconf; in read_var_block_data() local
653 if (!sconf->bgmc && !sconf->sb_part) { in read_var_block_data()
656 if (sconf->bgmc && sconf->sb_part) in read_var_block_data()
674 if (sconf->bgmc) { in read_var_block_data()
675 s[0] = get_bits(gb, 8 + (sconf->resolution > 1)); in read_var_block_data()
684 s[0] = get_bits(gb, 4 + (sconf->resolution > 1)); in read_var_block_data()
700 if (!sconf->rlslms) { in read_var_block_data()
701 if (sconf->adapt_order && sconf->max_order) { in read_var_block_data()
703 2, sconf->max_order + 1)); in read_var_block_data()
705 if (*bd->opt_order > sconf->max_order) { in read_var_block_data()
706 *bd->opt_order = sconf->max_order; in read_var_block_data()
711 *bd->opt_order = sconf->max_order; in read_var_block_data()
718 if (sconf->coef_table == 3) { in read_var_block_data()
738 int rice_param = parcor_rice_table[sconf->coef_table][k][1]; in read_var_block_data()
739 int offset = parcor_rice_table[sconf->coef_table][k][0]; in read_var_block_data()
770 if (sconf->long_term_prediction) { in read_var_block_data()
799 av_assert0(sb_length <= sconf->frame_length); in read_var_block_data()
815 if (sconf->bgmc) { in read_var_block_data()
905 ALSSpecificConfig *sconf = &ctx->sconf; in decode_var_block_data() local
955 memcpy(bd->prev_raw_samples, raw_samples - sconf->max_order, in decode_var_block_data()
956 sizeof(*bd->prev_raw_samples) * sconf->max_order); in decode_var_block_data()
970 for (sb = -1; sb >= -sconf->max_order; sb--) in decode_var_block_data()
976 for (sb = -1; sb >= -sconf->max_order; sb--) in decode_var_block_data()
1003 memcpy(raw_samples - sconf->max_order, bd->prev_raw_samples, in decode_var_block_data()
1004 sizeof(*raw_samples) * sconf->max_order); in decode_var_block_data()
1016 ALSSpecificConfig *sconf = &ctx->sconf; in read_block() local
1030 if (!sconf->mc_coding || ctx->js_switch) in read_block()
1138 ALSSpecificConfig *sconf = &ctx->sconf; in decode_blocks() local
1206 memmove(ctx->raw_samples[c] - sconf->max_order, in decode_blocks()
1207 ctx->raw_samples[c] - sconf->max_order + sconf->frame_length, in decode_blocks()
1208 sizeof(*ctx->raw_samples[c]) * sconf->max_order); in decode_blocks()
1281 unsigned int channel_size = ctx->sconf.frame_length + ctx->sconf.max_order; in revert_channel_correlation()
1631 ALSSpecificConfig *sconf = &ctx->sconf; in read_frame_data() local
1641 if (sconf->ra_flag == RA_FLAG_FRAMES && ra_frame) in read_frame_data()
1644 if (sconf->mc_coding && sconf->joint_stereo) { in read_frame_data()
1649 if (!sconf->mc_coding || ctx->js_switch) { in read_frame_data()
1650 int independent_bs = !sconf->joint_stereo; in read_frame_data()
1660 if (sconf->joint_stereo && sconf->block_switching) in read_frame_data()
1683 memmove(ctx->raw_samples[c] - sconf->max_order, in read_frame_data()
1684 ctx->raw_samples[c] - sconf->max_order + sconf->frame_length, in read_frame_data()
1685 sizeof(*ctx->raw_samples[c]) * sconf->max_order); in read_frame_data()
1766 memmove(ctx->raw_samples[c] - sconf->max_order, in read_frame_data()
1767 ctx->raw_samples[c] - sconf->max_order + sconf->frame_length, in read_frame_data()
1768 sizeof(*ctx->raw_samples[c]) * sconf->max_order); in read_frame_data()
1771 if (sconf->floating) { in read_frame_data()
1791 ALSSpecificConfig *sconf = &ctx->sconf; in decode_frame() local
1804 ra_frame = sconf->ra_distance && !(ctx->frame_id % sconf->ra_distance); in decode_frame()
1807 if (sconf->samples != 0xFFFFFFFF) in decode_frame()
1808 … ctx->cur_frame_length = FFMIN(sconf->samples - ctx->frame_id * (uint64_t) sconf->frame_length, in decode_frame()
1809 sconf->frame_length); in decode_frame()
1811 ctx->cur_frame_length = sconf->frame_length; in decode_frame()
1847 *dest++ = raw_samples[sconf->chan_pos[c]*raw_step + sample] * (1U << shift);\ in decode_frame()
1858 if (sconf->crc_enabled && (avctx->err_recognition & (AV_EF_CRCCHECK|AV_EF_CAREFUL))) { in decode_frame()
1859 int swap = HAVE_BIGENDIAN != sconf->msb_first; in decode_frame()
1906 if (ctx->cur_frame_length != sconf->frame_length && in decode_frame()
1930 av_freep(&ctx->sconf.chan_pos); in decode_end()
1983 ALSSpecificConfig *sconf = &ctx->sconf; in decode_init() local
2000 if (sconf->bgmc) { in decode_init()
2005 if (sconf->floating) { in decode_init()
2009 avctx->sample_fmt = sconf->resolution > 1 in decode_init()
2011 avctx->bits_per_raw_sample = (sconf->resolution + 1) * 8; in decode_init()
2023 ctx->s_max = sconf->resolution > 1 ? 31 : 15; in decode_init()
2030 num_buffers = sconf->mc_coding ? avctx->channels : 1; in decode_init()
2036 ctx->quant_cof_buffer = av_malloc_array(num_buffers * sconf->max_order, in decode_init()
2038 ctx->lpc_cof_buffer = av_malloc_array(num_buffers * sconf->max_order, in decode_init()
2040 ctx->lpc_cof_reversed_buffer = av_malloc_array(sconf->max_order, in decode_init()
2053 ctx->quant_cof[c] = ctx->quant_cof_buffer + c * sconf->max_order; in decode_init()
2054 ctx->lpc_cof[c] = ctx->lpc_cof_buffer + c * sconf->max_order; in decode_init()
2080 if (sconf->mc_coding) { in decode_init()
2102 channel_size = sconf->frame_length + sconf->max_order; in decode_init()
2104 ctx->prev_raw_samples = av_malloc_array(sconf->max_order, sizeof(*ctx->prev_raw_samples)); in decode_init()
2108 if (sconf->floating) { in decode_init()
2142 ctx->raw_samples[0] = ctx->raw_buffer + sconf->max_order; in decode_init()
2147 if (HAVE_BIGENDIAN != sconf->msb_first && sconf->crc_enabled && in decode_init()