Lines Matching defs:avctx
31 AVCodecContext *avctx;
55 static av_cold int gdv_decode_init(AVCodecContext *avctx)
57 GDVContext *gdv = avctx->priv_data;
60 avctx->pix_fmt = AV_PIX_FMT_PAL8;
61 gdv->frame_size = avctx->width * avctx->height + PREAMBLE_SIZE;
244 static int decompress_2(AVCodecContext *avctx)
246 GDVContext *gdv = avctx->priv_data;
286 static int decompress_5(AVCodecContext *avctx, unsigned skip)
288 GDVContext *gdv = avctx->priv_data;
333 static int decompress_68(AVCodecContext *avctx, unsigned skip, unsigned use8)
335 GDVContext *gdv = avctx->priv_data;
459 static int gdv_decode_frame(AVCodecContext *avctx, AVFrame *frame,
462 GDVContext *gdv = avctx->priv_data;
479 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
481 ff_copy_palette(gdv->pal, avpkt, avctx);
485 rescale(gdv, gdv->frame, avctx->width, avctx->height,
500 ret = decompress_2(avctx);
505 ret = decompress_5(avctx, flags >> 8);
508 ret = decompress_68(avctx, flags >> 8, 0);
511 ret = decompress_68(avctx, flags >> 8, 1);
526 for (y = 0; y < avctx->height; y++) {
527 memcpy(dst + didx, gdv->frame + sidx, avctx->width);
528 sidx += avctx->width;
535 for (y = 0; y < avctx->height; y++) {
537 memcpy(dst + didx, gdv->frame + sidx, avctx->width);
542 scaleup(dst2, src2, avctx->width);
545 sidx += !gdv->scale_v ? avctx->width : avctx->width/2;
556 static av_cold int gdv_decode_close(AVCodecContext *avctx)
558 GDVContext *gdv = avctx->priv_data;