• 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:avctx

193     AVCodecContext *avctx;
254 AVCodecContext *avctx = ctx->avctx;
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);
288 AVCodecContext *avctx = ctx->avctx;
291 init_get_bits(&gb, avctx->extradata, avctx->extradata_size * 8);
293 config_offset = avpriv_mpeg4audio_get_config(&m4ac, avctx->extradata,
294 avctx->extradata_size * 8, 1);
306 avctx->sample_rate = m4ac.sample_rate;
309 avctx->channels = m4ac.channels;
344 // TODO: use this to set avctx->channel_layout
348 if (sconf->chan_sort && avctx->channels > 1) {
349 int chan_pos_bits = av_ceil_log2(avctx->channels);
350 int bits_needed = avctx->channels * chan_pos_bits + 7;
354 if (!(sconf->chan_pos = av_malloc(avctx->channels * sizeof(*sconf->chan_pos))))
357 for (i = 0; i < avctx->channels; i++)
397 if (avctx->err_recognition & AV_EF_CRCCHECK) {
425 av_log_missing_feature(ctx->avctx, str, 0); \
558 AVCodecContext *avctx = ctx->avctx;
569 unsigned int const_val_bits = sconf->floating ? 24 : avctx->bits_per_raw_sample;
597 AVCodecContext *avctx = ctx->avctx;
633 av_log(avctx, AV_LOG_WARNING,
656 av_log(avctx, AV_LOG_ERROR, "k invalid for rice code.\n");
673 av_log(avctx, AV_LOG_ERROR, "Predictor order too large!\n");
709 av_log(avctx, AV_LOG_ERROR, "quant_cof %d is out of range\n", quant_cof[k]);
759 bd->raw_samples[0] = decode_rice(gb, avctx->bits_per_raw_sample - 4);
1139 av_log(ctx->avctx, AV_LOG_WARNING, "Invalid channel pair!\n");
1169 unsigned int channels = ctx->avctx->channels;
1176 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid master channel!\n");
1201 av_log(ctx->avctx, AV_LOG_ERROR, "Damaged channel data!\n");
1218 unsigned int channels = ctx->avctx->channels;
1233 av_log(ctx->avctx, AV_LOG_WARNING, "Invalid channel correlation!\n");
1300 AVCodecContext *avctx = ctx->avctx;
1320 for (c = 0; c < avctx->channels; c++) {
1333 if (c == avctx->channels - 1)
1359 for (c = 0; c < avctx->channels; c++)
1361 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid channel data!\n");
1366 memset(reverted_channels, 0, sizeof(*reverted_channels) * avctx->channels);
1376 for (c = 0; c < avctx->channels; c++) {
1394 for (c = 0; c < avctx->channels; c++)
1399 for (c = 0; c < avctx->channels; c++) {
1413 memset(reverted_channels, 0, avctx->channels * sizeof(*reverted_channels));
1419 for (c = 0; c < avctx->channels; c++)
1433 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr,
1436 ALSDecContext *ctx = avctx->priv_data;
1460 av_log(ctx->avctx, AV_LOG_WARNING,
1467 if ((ret = avctx->get_buffer(avctx, &ctx->frame)) < 0) {
1468 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
1476 shift = bps - ctx->avctx->bits_per_raw_sample; \
1478 for (c = 0; c < avctx->channels; c++) \
1482 if (ctx->avctx->bits_per_raw_sample <= 16) {
1489 if (sconf->crc_enabled && (avctx->err_recognition & AV_EF_CRCCHECK)) {
1492 if (ctx->avctx->bits_per_raw_sample == 24) {
1496 sample < ctx->cur_frame_length * avctx->channels;
1513 if (ctx->avctx->bits_per_raw_sample <= 16) {
1517 sample < ctx->cur_frame_length * avctx->channels;
1523 ctx->cur_frame_length * avctx->channels);
1531 ctx->cur_frame_length * avctx->channels *
1532 av_get_bytes_per_sample(avctx->sample_fmt));
1539 av_log(avctx, AV_LOG_ERROR, "CRC error.\n");
1556 static av_cold int decode_end(AVCodecContext *avctx)
1558 ALSDecContext *ctx = avctx->priv_data;
1591 static av_cold int decode_init(AVCodecContext *avctx)
1596 ALSDecContext *ctx = avctx->priv_data;
1598 ctx->avctx = avctx;
1600 if (!avctx->extradata) {
1601 av_log(avctx, AV_LOG_ERROR, "Missing required ALS extradata.\n");
1606 av_log(avctx, AV_LOG_ERROR, "Reading ALSSpecificConfig failed.\n");
1607 decode_end(avctx);
1612 decode_end(avctx);
1617 ff_bgmc_init(avctx, &ctx->bgmc_lut, &ctx->bgmc_lut_status);
1620 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
1621 avctx->bits_per_raw_sample = 32;
1623 avctx->sample_fmt = sconf->resolution > 1
1625 avctx->bits_per_raw_sample = (sconf->resolution + 1) * 8;
1634 ctx->ltp_lag_length = 8 + (avctx->sample_rate >= 96000) +
1635 (avctx->sample_rate >= 192000);
1638 num_buffers = sconf->mc_coding ? avctx->channels : 1;
1652 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1677 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1678 decode_end(avctx);
1695 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1696 decode_end(avctx);
1708 avctx->frame_size = sconf->frame_length;
1712 ctx->raw_buffer = av_mallocz(sizeof(*ctx-> raw_buffer) * avctx->channels * channel_size);
1713 ctx->raw_samples = av_malloc (sizeof(*ctx-> raw_samples) * avctx->channels);
1717 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1718 decode_end(avctx);
1724 for (c = 1; c < avctx->channels; c++)
1729 (avctx->err_recognition & AV_EF_CRCCHECK)) {
1732 avctx->channels *
1733 av_get_bytes_per_sample(avctx->sample_fmt));
1735 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1736 decode_end(avctx);
1741 dsputil_init(&ctx->dsp, avctx);
1744 avctx->coded_frame = &ctx->frame;
1752 static av_cold void flush(AVCodecContext *avctx)
1754 ALSDecContext *ctx = avctx->priv_data;