Lines Matching defs:avctx

51     AVCodecContext *avctx;
125 av_log(c->avctx, AV_LOG_ERROR, "Invalid band type run\n");
178 av_log(c->avctx, AV_LOG_ERROR, "Invalid scale value %d\n",
695 for (ch = 0; ch < c->avctx->ch_layout.nb_channels; ch++) {
811 av_log(c->avctx, AV_LOG_ERROR, "enh bit set\n");
827 for (i = 0; i < c->avctx->ch_layout.nb_channels; i++)
830 if (c->avctx->ch_layout.nb_channels == 2 && c->ms_present)
833 for (i = 0; i < c->avctx->ch_layout.nb_channels; i++)
842 static int on2avc_decode_frame(AVCodecContext * avctx, AVFrame *frame,
847 On2AVCContext *c = avctx->priv_data;
855 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
865 av_log(avctx, AV_LOG_ERROR, "Invalid subframe size %d\n",
873 av_log(avctx, AV_LOG_ERROR, "No subframes present\n");
879 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
908 static av_cold int on2avc_decode_init(AVCodecContext *avctx)
910 On2AVCContext *c = avctx->priv_data;
913 int channels = avctx->ch_layout.nb_channels;
917 avpriv_request_sample(avctx, "Decoding more than 2 channels");
921 c->avctx = avctx;
922 avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
923 av_channel_layout_uninit(&avctx->ch_layout);
924 avctx->ch_layout = (channels == 2) ? (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO :
927 c->is_av500 = (avctx->codec_tag == 0x500);
930 av_log(avctx, AV_LOG_WARNING,
941 if (avctx->sample_rate < 32000 || channels == 1)
949 c->modes = (avctx->sample_rate <= 40000) ? ff_on2avc_modes_40
951 c->wtf = (avctx->sample_rate <= 40000) ? wtf_40
961 c->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT);
967 ff_on2avc_scale_diff_syms, 1, 1, -60, 0, avctx);
974 syms, 2, 2, 0, 0, avctx);
983 av_log(avctx, AV_LOG_ERROR, "Cannot init VLC\n");
987 static av_cold int on2avc_decode_close(AVCodecContext *avctx)
989 On2AVCContext *c = avctx->priv_data;