• 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

130     AVCodecContext *avctx;
272 static av_cold int mlp_decode_init(AVCodecContext *avctx)
274 MLPDecodeContext *m = avctx->priv_data;
278 m->avctx = avctx;
296 if ((ret = ff_mlp_read_major_sync(m->avctx, &mh, gb)) != 0)
300 av_log(m->avctx, AV_LOG_ERROR, "invalid/unknown bits per sample\n");
304 av_log(m->avctx, AV_LOG_ERROR,
310 av_log(m->avctx, AV_LOG_ERROR,
316 av_log(m->avctx, AV_LOG_ERROR, "invalid/unknown sampling rate\n");
320 av_log(m->avctx, AV_LOG_ERROR,
326 av_log(m->avctx, AV_LOG_ERROR,
332 av_log(m->avctx, AV_LOG_ERROR,
340 if (m->avctx->codec_id == AV_CODEC_ID_MLP && mh.num_substreams > 2) {
341 av_log(m->avctx, AV_LOG_ERROR, "MLP only supports up to 2 substreams.\n");
345 avpriv_request_sample(m->avctx,
358 m->avctx->sample_rate = mh.group1_samplerate;
359 m->avctx->frame_size = mh.access_unit_size;
361 m->avctx->bits_per_raw_sample = mh.group1_bits;
363 m->avctx->sample_fmt = AV_SAMPLE_FMT_S32;
365 m->avctx->sample_fmt = AV_SAMPLE_FMT_S16;
369 m->avctx->sample_fmt == AV_SAMPLE_FMT_S32);
378 if (m->avctx->codec_id == AV_CODEC_ID_MLP) {
380 avpriv_request_sample(m->avctx,
390 avpriv_request_sample(m->avctx,
404 if (m->avctx->channels<=2 && m->substream[substr].ch_layout == AV_CH_LAYOUT_MONO && m->max_decoded_substream == 1) {
405 av_log(m->avctx, AV_LOG_DEBUG, "Mono stream with 2 substreams, ignoring 2nd\n");
407 if (m->avctx->channels==2)
408 m->avctx->channel_layout = AV_CH_LAYOUT_STEREO;
428 if (m->avctx->codec_id == AV_CODEC_ID_TRUEHD) {
471 const int std_max_matrix_channel = m->avctx->codec_id == AV_CODEC_ID_MLP
478 av_log(m->avctx, AV_LOG_ERROR,
485 if (m->avctx->codec_id == AV_CODEC_ID_MLP && s->noise_type) {
486 av_log(m->avctx, AV_LOG_ERROR, "MLP must have 0x31ea sync word.\n");
497 av_log(m->avctx, AV_LOG_ERROR,
504 av_log(m->avctx, AV_LOG_ERROR,
512 avpriv_request_sample(m->avctx,
520 av_log(m->avctx, AV_LOG_ERROR,
531 if (m->avctx->request_channels > 0 &&
532 m->avctx->request_channels <= s->max_channel + 1 &&
534 av_log(m->avctx, AV_LOG_DEBUG,
542 if (m->avctx->request_channel_layout && (s->ch_layout & m->avctx->request_channel_layout) ==
543 m->avctx->request_channel_layout && m->max_decoded_substream > substr) {
544 av_log(m->avctx, AV_LOG_DEBUG,
562 av_log(m->avctx, AV_LOG_WARNING,
573 if (m->avctx->codec_id == AV_CODEC_ID_TRUEHD) {
580 avpriv_request_sample(m->avctx,
591 av_log(m->avctx, AV_LOG_ERROR, "restart header checksum error\n");
617 m->avctx->channels = s->max_matrix_channel + 1;
618 m->avctx->channel_layout = s->ch_layout;
622 m->avctx->sample_fmt == AV_SAMPLE_FMT_S32);
624 if (m->avctx->codec_id == AV_CODEC_ID_MLP && m->needs_reordering) {
625 if (m->avctx->channel_layout == (AV_CH_LAYOUT_QUAD|AV_CH_LOW_FREQUENCY) ||
626 m->avctx->channel_layout == AV_CH_LAYOUT_5POINT0_BACK) {
631 } else if (m->avctx->channel_layout == AV_CH_LAYOUT_5POINT1_BACK) {
658 av_log(m->avctx, AV_LOG_ERROR, "Filters may change only once per access unit.\n");
664 av_log(m->avctx, AV_LOG_ERROR,
680 av_log(m->avctx, AV_LOG_ERROR,
686 av_log(m->avctx, AV_LOG_ERROR,
699 av_log(m->avctx, AV_LOG_ERROR,
723 const int max_primitive_matrices = m->avctx->codec_id == AV_CODEC_ID_MLP
728 av_log(m->avctx, AV_LOG_ERROR, "Matrices may change only once per access unit.\n");
735 av_log(m->avctx, AV_LOG_ERROR,
748 av_log(m->avctx, AV_LOG_ERROR,
754 av_log(m->avctx, AV_LOG_ERROR,
802 av_log(m->avctx, AV_LOG_ERROR, "Total filter orders too high.\n");
808 av_log(m->avctx, AV_LOG_ERROR,
828 av_log(m->avctx, AV_LOG_ERROR, "Invalid huff_lsbs.\n");
856 av_log(m->avctx, AV_LOG_ERROR, "Invalid blocksize.\n");
875 m->avctx->sample_fmt == AV_SAMPLE_FMT_S32);
938 avpriv_request_sample(m->avctx,
943 av_log(m->avctx, AV_LOG_ERROR, "too many audio samples in frame\n");
961 av_log(m->avctx, AV_LOG_ERROR, "block data length mismatch\n");
1073 AVCodecContext *avctx = m->avctx;
1076 int is32 = (m->avctx->sample_fmt == AV_SAMPLE_FMT_S32);
1078 if (m->avctx->channels != s->max_matrix_channel + 1) {
1079 av_log(m->avctx, AV_LOG_ERROR, "channel count mismatch\n");
1084 av_log(avctx, AV_LOG_ERROR, "No samples to output.\n");
1090 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
1114 static int read_access_unit(AVCodecContext *avctx, void* data,
1119 MLPDecodeContext *m = avctx->priv_data;
1149 av_log(m->avctx, AV_LOG_WARNING,
1170 if (m->avctx->codec_id == AV_CODEC_ID_MLP) {
1171 av_log(m->avctx, AV_LOG_ERROR, "There must be no extraword for MLP.\n");
1179 av_log(m->avctx, AV_LOG_ERROR, "Invalid nonrestart_substr.\n");
1184 av_log(m->avctx, AV_LOG_ERROR,
1191 av_log(avctx, AV_LOG_ERROR,
1210 av_log(avctx, AV_LOG_ERROR, "Parity check failed.\n");
1259 if (m->avctx->codec_id == AV_CODEC_ID_TRUEHD && shorten_by & 0x2000)
1261 else if (m->avctx->codec_id == AV_CODEC_ID_MLP && shorten_by != 0xD234)
1265 av_log(m->avctx, AV_LOG_INFO, "End of stream indicated.\n");
1278 av_log(m->avctx, AV_LOG_ERROR, "Substream %d parity check failed.\n", substr);
1280 av_log(m->avctx, AV_LOG_ERROR, "Substream %d checksum failed.\n" , substr);
1288 av_log(m->avctx, AV_LOG_ERROR,
1302 av_log(m->avctx, AV_LOG_ERROR, "substream %d length mismatch\n", substr);