Lines Matching defs:avctx
66 static av_cold int paf_video_close(AVCodecContext *avctx)
68 PAFVideoDecContext *c = avctx->priv_data;
79 static av_cold int paf_video_init(AVCodecContext *avctx)
81 PAFVideoDecContext *c = avctx->priv_data;
85 c->width = avctx->width;
86 c->height = avctx->height;
88 if (avctx->height & 3 || avctx->width & 3) {
89 av_log(avctx, AV_LOG_ERROR,
91 avctx->width, avctx->height);
95 avctx->pix_fmt = AV_PIX_FMT_PAL8;
96 ret = av_image_check_size2(avctx->width, FFALIGN(avctx->height, 256), avctx->max_pixels, avctx->pix_fmt, 0, avctx);
104 c->frame_size = avctx->width * FFALIGN(avctx->height, 256);
105 c->video_size = avctx->width * avctx->height;
271 static int paf_video_decode(AVCodecContext *avctx, AVFrame *rframe,
274 PAFVideoDecContext *c = avctx->priv_data;
285 avpriv_request_sample(avctx, "unknown/invalid code");
290 c->video_size / 32 - (int64_t)bytestream2_get_bytes_left(&c->gb) > c->video_size / 32 * (int64_t)avctx->discard_damaged_percentage / 100)
293 if ((ret = ff_reget_buffer(avctx, c->pic, 0)) < 0)