• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:sconf

195     ALSSpecificConfig sconf;
255 ALSSpecificConfig *sconf = &ctx->sconf;
257 av_dlog(avctx, "resolution = %i\n", sconf->resolution);
258 av_dlog(avctx, "floating = %i\n", sconf->floating);
259 av_dlog(avctx, "frame_length = %i\n", sconf->frame_length);
260 av_dlog(avctx, "ra_distance = %i\n", sconf->ra_distance);
261 av_dlog(avctx, "ra_flag = %i\n", sconf->ra_flag);
262 av_dlog(avctx, "adapt_order = %i\n", sconf->adapt_order);
263 av_dlog(avctx, "coef_table = %i\n", sconf->coef_table);
264 av_dlog(avctx, "long_term_prediction = %i\n", sconf->long_term_prediction);
265 av_dlog(avctx, "max_order = %i\n", sconf->max_order);
266 av_dlog(avctx, "block_switching = %i\n", sconf->block_switching);
267 av_dlog(avctx, "bgmc = %i\n", sconf->bgmc);
268 av_dlog(avctx, "sb_part = %i\n", sconf->sb_part);
269 av_dlog(avctx, "joint_stereo = %i\n", sconf->joint_stereo);
270 av_dlog(avctx, "mc_coding = %i\n", sconf->mc_coding);
271 av_dlog(avctx, "chan_config = %i\n", sconf->chan_config);
272 av_dlog(avctx, "chan_sort = %i\n", sconf->chan_sort);
273 av_dlog(avctx, "RLSLMS = %i\n", sconf->rlslms);
274 av_dlog(avctx, "chan_config_info = %i\n", sconf->chan_config_info);
287 ALSSpecificConfig *sconf = &ctx->sconf;
308 sconf->samples = get_bits_long(&gb, 32);
312 sconf->resolution = get_bits(&gb, 3);
313 sconf->floating = get_bits1(&gb);
314 sconf->msb_first = get_bits1(&gb);
315 sconf->frame_length = get_bits(&gb, 16) + 1;
316 sconf->ra_distance = get_bits(&gb, 8);
317 sconf->ra_flag = get_bits(&gb, 2);
318 sconf->adapt_order = get_bits1(&gb);
319 sconf->coef_table = get_bits(&gb, 2);
320 sconf->long_term_prediction = get_bits1(&gb);
321 sconf->max_order = get_bits(&gb, 10);
322 sconf->block_switching = get_bits(&gb, 2);
323 sconf->bgmc = get_bits1(&gb);
324 sconf->sb_part = get_bits1(&gb);
325 sconf->joint_stereo = get_bits1(&gb);
326 sconf->mc_coding = get_bits1(&gb);
327 sconf->chan_config = get_bits1(&gb);
328 sconf->chan_sort = get_bits1(&gb);
329 sconf->crc_enabled = get_bits1(&gb);
330 sconf->rlslms = get_bits1(&gb);
339 ctx->cur_frame_length = sconf->frame_length;
342 if (sconf->chan_config)
343 sconf->chan_config_info = get_bits(&gb, 16);
348 if (sconf->chan_sort && avctx->channels > 1) {
354 if (!(sconf->chan_pos = av_malloc(avctx->channels * sizeof(*sconf->chan_pos))))
358 sconf->chan_pos[i] = get_bits(&gb, chan_pos_bits);
363 sconf->chan_sort = 0;
393 if (sconf->crc_enabled) {
418 ALSSpecificConfig *sconf = &ctx->sconf;
430 MISSING_ERR(sconf->floating, "Floating point decoding", -1);
431 MISSING_ERR(sconf->rlslms, "Adaptive RLS-LMS prediction", -1);
432 MISSING_ERR(sconf->chan_sort, "Channel sorting", 0);
505 ALSSpecificConfig *sconf = &ctx->sconf;
510 if (sconf->block_switching) {
511 unsigned int bs_info_len = 1 << (sconf->block_switching + 2);
535 div_blocks[b] = ctx->sconf.frame_length >> div_blocks[b];
537 if (ctx->cur_frame_length != ctx->sconf.frame_length) {
557 ALSSpecificConfig *sconf = &ctx->sconf;
569 unsigned int const_val_bits = sconf->floating ? 24 : avctx->bits_per_raw_sample;
596 ALSSpecificConfig *sconf = &ctx->sconf;
619 if (!sconf->bgmc && !sconf->sb_part) {
622 if (sconf->bgmc && sconf->sb_part)
640 if (sconf->bgmc) {
641 s[0] = get_bits(gb, 8 + (sconf->resolution > 1));
650 s[0] = get_bits(gb, 4 + (sconf->resolution > 1));
666 if (!sconf->rlslms) {
667 if (sconf->adapt_order) {
669 2, sconf->max_order + 1));
671 if (*bd->opt_order > sconf->max_order) {
672 *bd->opt_order = sconf->max_order;
677 *bd->opt_order = sconf->max_order;
685 if (sconf->coef_table == 3) {
705 int rice_param = parcor_rice_table[sconf->coef_table][k][1];
706 int offset = parcor_rice_table[sconf->coef_table][k][0];
735 if (sconf->long_term_prediction) {
769 if (sconf->bgmc) {
846 if (!sconf->mc_coding || ctx->js_switch)
857 ALSSpecificConfig *sconf = &ctx->sconf;
907 memcpy(bd->prev_raw_samples, raw_samples - sconf->max_order,
908 sizeof(*bd->prev_raw_samples) * sconf->max_order);
922 for (sb = -1; sb >= -sconf->max_order; sb--)
928 for (sb = -1; sb >= -sconf->max_order; sb--)
955 memcpy(raw_samples - sconf->max_order, bd->prev_raw_samples,
956 sizeof(*raw_samples) * sconf->max_order);
1083 ALSSpecificConfig *sconf = &ctx->sconf;
1155 memmove(ctx->raw_samples[c] - sconf->max_order,
1156 ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
1157 sizeof(*ctx->raw_samples[c]) * sconf->max_order);
1299 ALSSpecificConfig *sconf = &ctx->sconf;
1309 if (sconf->ra_flag == RA_FLAG_FRAMES && ra_frame)
1312 if (sconf->mc_coding && sconf->joint_stereo) {
1317 if (!sconf->mc_coding || ctx->js_switch) {
1318 int independent_bs = !sconf->joint_stereo;
1328 if (sconf->joint_stereo && sconf->block_switching)
1349 memmove(ctx->raw_samples[c] - sconf->max_order,
1350 ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
1351 sizeof(*ctx->raw_samples[c]) * sconf->max_order);
1420 memmove(ctx->raw_samples[c] - sconf->max_order,
1421 ctx->raw_samples[c] - sconf->max_order + sconf->frame_length,
1422 sizeof(*ctx->raw_samples[c]) * sconf->max_order);
1437 ALSSpecificConfig *sconf = &ctx->sconf;
1446 // (sconf->ra_distance == 0) no frame is treated as a random access frame.
1449 ra_frame = sconf->ra_distance && !(ctx->frame_id % sconf->ra_distance);
1452 if (sconf->samples != 0xFFFFFFFF)
1453 ctx->cur_frame_length = FFMIN(sconf->samples - ctx->frame_id * (uint64_t) sconf->frame_length,
1454 sconf->frame_length);
1456 ctx->cur_frame_length = sconf->frame_length;
1489 if (sconf->crc_enabled && (avctx->err_recognition & AV_EF_CRCCHECK)) {
1490 int swap = HAVE_BIGENDIAN != sconf->msb_first;
1537 if (ctx->cur_frame_length != sconf->frame_length &&
1560 av_freep(&ctx->sconf.chan_pos);
1597 ALSSpecificConfig *sconf = &ctx->sconf;
1616 if (sconf->bgmc)
1619 if (sconf->floating) {
1623 avctx->sample_fmt = sconf->resolution > 1
1625 avctx->bits_per_raw_sample = (sconf->resolution + 1) * 8;
1631 ctx->s_max = sconf->resolution > 1 ? 31 : 15;
1638 num_buffers = sconf->mc_coding ? avctx->channels : 1;
1643 num_buffers * sconf->max_order);
1645 num_buffers * sconf->max_order);
1647 sconf->max_order);
1658 ctx->quant_cof[c] = ctx->quant_cof_buffer + c * sconf->max_order;
1659 ctx->lpc_cof[c] = ctx->lpc_cof_buffer + c * sconf->max_order;
1686 if (sconf->mc_coding) {
1708 avctx->frame_size = sconf->frame_length;
1709 channel_size = sconf->frame_length + sconf->max_order;
1711 ctx->prev_raw_samples = av_malloc (sizeof(*ctx->prev_raw_samples) * sconf->max_order);
1723 ctx->raw_samples[0] = ctx->raw_buffer + sconf->max_order;
1728 if (HAVE_BIGENDIAN != sconf->msb_first && sconf->crc_enabled &&