• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:avctx

192     AVCodecContext *avctx;
253 AVCodecContext *avctx = ctx->avctx;
256 av_dlog(avctx, "resolution = %i\n", sconf->resolution);
257 av_dlog(avctx, "floating = %i\n", sconf->floating);
258 av_dlog(avctx, "frame_length = %i\n", sconf->frame_length);
259 av_dlog(avctx, "ra_distance = %i\n", sconf->ra_distance);
260 av_dlog(avctx, "ra_flag = %i\n", sconf->ra_flag);
261 av_dlog(avctx, "adapt_order = %i\n", sconf->adapt_order);
262 av_dlog(avctx, "coef_table = %i\n", sconf->coef_table);
263 av_dlog(avctx, "long_term_prediction = %i\n", sconf->long_term_prediction);
264 av_dlog(avctx, "max_order = %i\n", sconf->max_order);
265 av_dlog(avctx, "block_switching = %i\n", sconf->block_switching);
266 av_dlog(avctx, "bgmc = %i\n", sconf->bgmc);
267 av_dlog(avctx, "sb_part = %i\n", sconf->sb_part);
268 av_dlog(avctx, "joint_stereo = %i\n", sconf->joint_stereo);
269 av_dlog(avctx, "mc_coding = %i\n", sconf->mc_coding);
270 av_dlog(avctx, "chan_config = %i\n", sconf->chan_config);
271 av_dlog(avctx, "chan_sort = %i\n", sconf->chan_sort);
272 av_dlog(avctx, "RLSLMS = %i\n", sconf->rlslms);
273 av_dlog(avctx, "chan_config_info = %i\n", sconf->chan_config_info);
287 AVCodecContext *avctx = ctx->avctx;
291 if ((ret = init_get_bits8(&gb, avctx->extradata, avctx->extradata_size)) < 0)
294 config_offset = avpriv_mpeg4audio_get_config(&m4ac, avctx->extradata,
295 avctx->extradata_size * 8, 1);
307 avctx->sample_rate = m4ac.sample_rate;
310 avctx->channels = m4ac.channels;
345 // TODO: use this to set avctx->channel_layout
349 if (sconf->chan_sort && avctx->channels > 1) {
350 int chan_pos_bits = av_ceil_log2(avctx->channels);
351 int bits_needed = avctx->channels * chan_pos_bits + 7;
355 if (!(sconf->chan_pos = av_malloc(avctx->channels * sizeof(*sconf->chan_pos))))
360 for (i = 0; i < avctx->channels; i++) {
364 if (idx >= avctx->channels) {
365 av_log(avctx, AV_LOG_WARNING, "Invalid channel reordering.\n");
406 if (avctx->err_recognition & (AV_EF_CRCCHECK|AV_EF_CAREFUL)) {
434 avpriv_report_missing_feature(ctx->avctx, \
567 AVCodecContext *avctx = ctx->avctx;
581 unsigned int const_val_bits = sconf->floating ? 24 : avctx->bits_per_raw_sample;
611 AVCodecContext *avctx = ctx->avctx;
647 av_log(avctx, AV_LOG_WARNING,
670 av_log(avctx, AV_LOG_ERROR, "k invalid for rice code.\n");
687 av_log(avctx, AV_LOG_ERROR, "Predictor order too large.\n");
695 av_log(avctx, AV_LOG_ERROR, "Predictor order too large.\n");
727 av_log(avctx, AV_LOG_ERROR,
779 bd->raw_samples[0] = decode_rice(gb, avctx->bits_per_raw_sample - 4);
1154 av_log(ctx->avctx, AV_LOG_WARNING, "Invalid channel pair.\n");
1195 unsigned int channels = ctx->avctx->channels;
1202 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid master channel.\n");
1227 av_log(ctx->avctx, AV_LOG_ERROR, "Damaged channel data.\n");
1244 unsigned int channels = ctx->avctx->channels;
1259 av_log(ctx->avctx, AV_LOG_WARNING, "Invalid channel correlation.\n");
1326 AVCodecContext *avctx = ctx->avctx;
1346 for (c = 0; c < avctx->channels; c++) {
1359 if (c == avctx->channels - 1)
1387 for (c = 0; c < avctx->channels; c++)
1389 av_log(ctx->avctx, AV_LOG_ERROR, "Invalid channel data.\n");
1393 memset(reverted_channels, 0, sizeof(*reverted_channels) * avctx->channels);
1403 av_log(ctx->avctx, AV_LOG_WARNING,
1409 for (c = 0; c < avctx->channels; c++) {
1428 for (c = 0; c < avctx->channels; c++) {
1434 for (c = 0; c < avctx->channels; c++) {
1450 memset(reverted_channels, 0, avctx->channels * sizeof(*reverted_channels));
1456 for (c = 0; c < avctx->channels; c++)
1470 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr,
1473 ALSDecContext *ctx = avctx->priv_data;
1498 av_log(ctx->avctx, AV_LOG_WARNING,
1505 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
1512 shift = bps - ctx->avctx->bits_per_raw_sample; \
1515 for (c = 0; c < avctx->channels; c++) \
1519 for (c = 0; c < avctx->channels; c++) \
1524 if (ctx->avctx->bits_per_raw_sample <= 16) {
1531 if (sconf->crc_enabled && (avctx->err_recognition & (AV_EF_CRCCHECK|AV_EF_CAREFUL))) {
1534 if (ctx->avctx->bits_per_raw_sample == 24) {
1538 sample < ctx->cur_frame_length * avctx->channels;
1555 if (ctx->avctx->bits_per_raw_sample <= 16) {
1559 sample < ctx->cur_frame_length * avctx->channels;
1565 ctx->cur_frame_length * avctx->channels);
1573 ctx->cur_frame_length * avctx->channels *
1574 av_get_bytes_per_sample(avctx->sample_fmt));
1581 av_log(avctx, AV_LOG_ERROR, "CRC error.\n");
1582 if (avctx->err_recognition & AV_EF_EXPLODE)
1598 static av_cold int decode_end(AVCodecContext *avctx)
1600 ALSDecContext *ctx = avctx->priv_data;
1633 static av_cold int decode_init(AVCodecContext *avctx)
1638 ALSDecContext *ctx = avctx->priv_data;
1640 ctx->avctx = avctx;
1642 if (!avctx->extradata) {
1643 av_log(avctx, AV_LOG_ERROR, "Missing required ALS extradata.\n");
1648 av_log(avctx, AV_LOG_ERROR, "Reading ALSSpecificConfig failed.\n");
1657 ret = ff_bgmc_init(avctx, &ctx->bgmc_lut, &ctx->bgmc_lut_status);
1662 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
1663 avctx->bits_per_raw_sample = 32;
1665 avctx->sample_fmt = sconf->resolution > 1
1667 avctx->bits_per_raw_sample = (sconf->resolution + 1) * 8;
1676 ctx->ltp_lag_length = 8 + (avctx->sample_rate >= 96000) +
1677 (avctx->sample_rate >= 192000);
1680 num_buffers = sconf->mc_coding ? avctx->channels : 1;
1694 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1720 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1738 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1754 ctx->raw_buffer = av_mallocz(sizeof(*ctx-> raw_buffer) * avctx->channels * channel_size);
1755 ctx->raw_samples = av_malloc (sizeof(*ctx-> raw_samples) * avctx->channels);
1759 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1766 for (c = 1; c < avctx->channels; c++)
1771 (avctx->err_recognition & (AV_EF_CRCCHECK|AV_EF_CAREFUL))) {
1774 avctx->channels *
1775 av_get_bytes_per_sample(avctx->sample_fmt));
1777 av_log(avctx, AV_LOG_ERROR, "Allocating buffer memory failed.\n");
1788 decode_end(avctx);
1795 static av_cold void flush(AVCodecContext *avctx)
1797 ALSDecContext *ctx = avctx->priv_data;