Lines Matching defs:avctx
45 AVCodecContext *avctx;
53 static av_cold int tgq_decode_init(AVCodecContext *avctx)
55 TgqContext *s = avctx->priv_data;
57 s->avctx = avctx;
60 avctx->framerate = (AVRational){ 15, 1 };
61 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
128 if (!(s->avctx->flags & AV_CODEC_FLAG_GRAY)) {
154 if (!(s->avctx->flags & AV_CODEC_FLAG_GRAY)) {
193 av_log(s->avctx, AV_LOG_ERROR, "unsupported mb mode %i\n", mode);
212 static int tgq_decode_frame(AVCodecContext *avctx, AVFrame *frame,
217 TgqContext *s = avctx->priv_data;
222 av_log(avctx, AV_LOG_WARNING, "truncated header\n");
235 ret = ff_set_dimensions(s->avctx, s->width, s->height);
242 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
247 for (y = 0; y < FFALIGN(avctx->height, 16) >> 4; y++)
248 for (x = 0; x < FFALIGN(avctx->width, 16) >> 4; x++)