Lines Matching refs:avctx
37 static av_cold int vp8_init(AVCodecContext *avctx)
39 VP8Context *ctx = avctx->priv_data;
43 .threads = FFMIN(avctx->thread_count, 16)
46 av_log(avctx, AV_LOG_INFO, "%s\n", vpx_codec_version_str());
47 av_log(avctx, AV_LOG_VERBOSE, "%s\n", vpx_codec_build_config());
51 av_log(avctx, AV_LOG_ERROR, "Failed to initialize decoder: %s\n",
56 avctx->pix_fmt = PIX_FMT_YUV420P;
60 static int vp8_decode(AVCodecContext *avctx,
63 VP8Context *ctx = avctx->priv_data;
73 av_log(avctx, AV_LOG_ERROR, "Failed to decode frame: %s\n", error);
75 av_log(avctx, AV_LOG_ERROR, " Additional information: %s\n",
82 av_log(avctx, AV_LOG_ERROR, "Unsupported output colorspace (%d)\n",
87 if ((int) img->d_w != avctx->width || (int) img->d_h != avctx->height) {
88 av_log(avctx, AV_LOG_INFO, "dimension change! %dx%d -> %dx%d\n",
89 avctx->width, avctx->height, img->d_w, img->d_h);
90 if (av_image_check_size(img->d_w, img->d_h, 0, avctx))
92 avcodec_set_dimensions(avctx, img->d_w, img->d_h);
107 static av_cold int vp8_free(AVCodecContext *avctx)
109 VP8Context *ctx = avctx->priv_data;