Lines Matching refs:avctx
36 AVCodecContext *avctx,
68 if(!avctx->width || !avctx->height || !avctx->coded_width || !avctx->coded_height){
69 ff_set_dimensions(avctx, pc->width, pc->height);
73 pc->frame_rate.den = avctx->time_base.den = ff_mpeg12_frame_rate_tab[frame_rate_index].num;
74 pc->frame_rate.num = avctx->time_base.num = ff_mpeg12_frame_rate_tab[frame_rate_index].den;
76 avctx->codec_id = AV_CODEC_ID_MPEG1VIDEO;
91 avctx->has_b_frames= !(buf[5] >> 7);
97 ff_set_dimensions(avctx, pc->width, pc->height);
98 avctx->time_base.den = pc->frame_rate.den * (frame_rate_ext_n + 1) * 2;
99 avctx->time_base.num = pc->frame_rate.num * (frame_rate_ext_d + 1);
100 avctx->codec_id = AV_CODEC_ID_MPEG2VIDEO;
146 if (avctx->codec_id == AV_CODEC_ID_MPEG2VIDEO && bit_rate) {
147 avctx->rc_max_rate = 400*bit_rate;
148 } else if (avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO && bit_rate &&
150 avctx->bit_rate = 400*bit_rate;
155 AVCodecContext *avctx,
178 mpegvideo_extract_headers(s, avctx, buf, buf_size);
180 s->pict_type, (double)avctx->time_base.den / avctx->time_base.num, s->repeat_pict);
187 static int mpegvideo_split(AVCodecContext *avctx,