Lines Matching defs:avctx

56     AVCodecContext *avctx;
108 static av_cold int flashsv_decode_end(AVCodecContext *avctx)
110 FlashSVContext *s = avctx->priv_data;
122 static av_cold int flashsv_decode_init(AVCodecContext *avctx)
124 FlashSVContext *s = avctx->priv_data;
126 s->avctx = avctx;
127 avctx->pix_fmt = AV_PIX_FMT_BGR24;
134 return ff_inflate_init(&s->zstream, avctx);
158 av_log(s->avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", zret);
201 static int flashsv_decode_block(AVCodecContext *avctx, const AVPacket *avpkt,
206 struct FlashSVContext *s = avctx->priv_data;
212 av_log(avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", ret);
228 av_log(avctx, AV_LOG_ERROR, "Zlib resync occurred\n");
262 av_log(avctx, AV_LOG_ERROR, "decode_hybrid failed\n");
270 static int flashsv_decode_frame(AVCodecContext *avctx, AVFrame *rframe,
274 FlashSVContext *s = avctx->priv_data;
302 avpriv_request_sample(avctx, "iframe");
306 avpriv_request_sample(avctx, "Custom palette");
324 av_log(avctx, AV_LOG_ERROR,
332 if (avctx->width == 0 && avctx->height == 0) {
333 if ((ret = ff_set_dimensions(avctx, s->image_width, s->image_height)) < 0)
338 if (avctx->width != s->image_width || avctx->height != s->image_height) {
339 av_log(avctx, AV_LOG_ERROR,
341 av_log(avctx, AV_LOG_ERROR, "fh = %d, fv %d vs ch = %d, cv = %d\n",
342 avctx->height, avctx->width, s->image_height, s->image_width);
361 ff_dlog(avctx, "image: %dx%d block: %dx%d num: %dx%d part: %dx%d\n",
365 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0)
402 av_log(avctx, AV_LOG_ERROR,
410 av_log(avctx, AV_LOG_ERROR, "size too small for diff\n");
414 av_log(avctx, AV_LOG_ERROR,
421 av_log(avctx, AV_LOG_ERROR,
426 av_log(avctx, AV_LOG_DEBUG,
433 av_log(avctx, AV_LOG_DEBUG, "%dx%d zlibprime_prev\n", i, j);
438 av_log(avctx, AV_LOG_DEBUG, "%dx%d zlibprime_curr %dx%d\n",
441 av_log(avctx, AV_LOG_ERROR, "size too small for zlibprime_curr\n");
445 avpriv_request_sample(avctx, "zlibprime_curr");
449 av_log(avctx, AV_LOG_ERROR,
469 if (flashsv_decode_block(avctx, avpkt, &gb, size,
473 av_log(avctx, AV_LOG_ERROR,
480 s->keyframe = av_malloc(s->frame->linesize[0] * avctx->height);
482 av_log(avctx, AV_LOG_ERROR, "Cannot allocate image data\n");
487 s->frame->linesize[0] * avctx->height);
496 av_log(avctx, AV_LOG_ERROR, "buffer not fully consumed (%d != %d)\n",
545 static av_cold int flashsv2_decode_init(AVCodecContext *avctx)
547 FlashSVContext *s = avctx->priv_data;
550 ret = flashsv_decode_init(avctx);
559 static av_cold int flashsv2_decode_end(AVCodecContext *avctx)
561 FlashSVContext *s = avctx->priv_data;
567 flashsv_decode_end(avctx);