• 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

122     AVCodecContext *avctx;
232 static av_cold int mlp_decode_init(AVCodecContext *avctx)
234 MLPDecodeContext *m = avctx->priv_data;
238 m->avctx = avctx;
241 dsputil_init(&m->dsp, avctx);
244 avctx->coded_frame = &m->frame;
259 if ((ret = ff_mlp_read_major_sync(m->avctx, &mh, gb)) != 0)
263 av_log(m->avctx, AV_LOG_ERROR, "invalid/unknown bits per sample\n");
267 av_log(m->avctx, AV_LOG_ERROR,
273 av_log(m->avctx, AV_LOG_ERROR,
279 av_log(m->avctx, AV_LOG_ERROR, "invalid/unknown sampling rate\n");
283 av_log(m->avctx, AV_LOG_ERROR,
289 av_log(m->avctx, AV_LOG_ERROR,
295 av_log(m->avctx, AV_LOG_ERROR,
303 if (m->avctx->codec_id == CODEC_ID_MLP && mh.num_substreams > 2) {
304 av_log(m->avctx, AV_LOG_ERROR, "MLP only supports up to 2 substreams.\n");
308 av_log(m->avctx, AV_LOG_ERROR,
320 m->avctx->sample_rate = mh.group1_samplerate;
321 m->avctx->frame_size = mh.access_unit_size;
323 m->avctx->bits_per_raw_sample = mh.group1_bits;
325 m->avctx->sample_fmt = AV_SAMPLE_FMT_S32;
327 m->avctx->sample_fmt = AV_SAMPLE_FMT_S16;
349 const int max_matrix_channel = m->avctx->codec_id == CODEC_ID_MLP
356 av_log(m->avctx, AV_LOG_ERROR,
363 if (m->avctx->codec_id == CODEC_ID_MLP && s->noise_type) {
364 av_log(m->avctx, AV_LOG_ERROR, "MLP must have 0x31ea sync word.\n");
375 av_log(m->avctx, AV_LOG_ERROR,
382 av_log(m->avctx, AV_LOG_ERROR,
390 av_log(m->avctx, AV_LOG_ERROR,
397 av_log(m->avctx, AV_LOG_ERROR,
402 if (m->avctx->request_channels > 0
403 && s->max_channel + 1 >= m->avctx->request_channels
405 av_log(m->avctx, AV_LOG_DEBUG,
423 av_log(m->avctx, AV_LOG_WARNING,
435 av_log(m->avctx, AV_LOG_ERROR,
446 av_log(m->avctx, AV_LOG_ERROR, "restart header checksum error\n");
472 m->avctx->channels = s->max_matrix_channel + 1;
493 av_log(m->avctx, AV_LOG_ERROR, "Filters may change only once per access unit.\n");
499 av_log(m->avctx, AV_LOG_ERROR,
515 av_log(m->avctx, AV_LOG_ERROR,
521 av_log(m->avctx, AV_LOG_ERROR,
534 av_log(m->avctx, AV_LOG_ERROR,
558 const int max_primitive_matrices = m->avctx->codec_id == CODEC_ID_MLP
563 av_log(m->avctx, AV_LOG_ERROR, "Matrices may change only once per access unit.\n");
570 av_log(m->avctx, AV_LOG_ERROR,
583 av_log(m->avctx, AV_LOG_ERROR,
589 av_log(m->avctx, AV_LOG_ERROR,
637 av_log(m->avctx, AV_LOG_ERROR, "Total filter orders too high.\n");
643 av_log(m->avctx, AV_LOG_ERROR,
663 av_log(m->avctx, AV_LOG_ERROR, "Invalid huff_lsbs.\n");
690 av_log(m->avctx, AV_LOG_ERROR, "Invalid blocksize.");
766 av_log(m->avctx, AV_LOG_WARNING, "This file contains some features "
771 av_log(m->avctx, AV_LOG_ERROR, "too many audio samples in frame\n");
789 av_log(m->avctx, AV_LOG_ERROR, "block data length mismatch\n");
914 AVCodecContext *avctx = m->avctx;
920 int is32 = (m->avctx->sample_fmt == AV_SAMPLE_FMT_S32);
922 if (m->avctx->channels != s->max_matrix_channel + 1) {
923 av_log(m->avctx, AV_LOG_ERROR, "channel count mismatch\n");
929 if ((ret = avctx->get_buffer(avctx, &m->frame)) < 0) {
930 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
957 static int read_access_unit(AVCodecContext *avctx, void* data,
962 MLPDecodeContext *m = avctx->priv_data;
992 av_log(m->avctx, AV_LOG_WARNING,
1013 if (m->avctx->codec_id == CODEC_ID_MLP) {
1014 av_log(m->avctx, AV_LOG_ERROR, "There must be no extraword for MLP.\n");
1022 av_log(m->avctx, AV_LOG_ERROR, "Invalid nonrestart_substr.\n");
1027 av_log(m->avctx, AV_LOG_ERROR,
1034 av_log(avctx, AV_LOG_ERROR,
1053 av_log(avctx, AV_LOG_ERROR, "Parity check failed.\n");
1102 if (m->avctx->codec_id == CODEC_ID_TRUEHD && shorten_by & 0x2000)
1104 else if (m->avctx->codec_id == CODEC_ID_MLP && shorten_by != 0xD234)
1108 av_log(m->avctx, AV_LOG_INFO, "End of stream indicated.\n");
1121 av_log(m->avctx, AV_LOG_ERROR, "Substream %d parity check failed.\n", substr);
1123 av_log(m->avctx, AV_LOG_ERROR, "Substream %d checksum failed.\n" , substr);
1131 av_log(m->avctx, AV_LOG_ERROR,
1145 av_log(m->avctx, AV_LOG_ERROR, "substream %d length mismatch\n", substr);