Lines Matching refs:avctx
40 static av_cold int vpx_init(AVCodecContext *avctx,
43 VP8Context *ctx = avctx->priv_data;
46 .threads = FFMIN(avctx->thread_count, 16)
49 av_log(avctx, AV_LOG_INFO, "%s\n", vpx_codec_version_str());
50 av_log(avctx, AV_LOG_VERBOSE, "%s\n", vpx_codec_build_config());
54 av_log(avctx, AV_LOG_ERROR, "Failed to initialize decoder: %s\n",
59 avctx->pix_fmt = AV_PIX_FMT_YUV420P;
63 static int vp8_decode(AVCodecContext *avctx,
66 VP8Context *ctx = avctx->priv_data;
77 av_log(avctx, AV_LOG_ERROR, "Failed to decode frame: %s\n", error);
79 av_log(avctx, AV_LOG_ERROR, " Additional information: %s\n",
86 av_log(avctx, AV_LOG_ERROR, "Unsupported output colorspace (%d)\n",
91 if ((int) img->d_w != avctx->width || (int) img->d_h != avctx->height) {
92 av_log(avctx, AV_LOG_INFO, "dimension change! %dx%d -> %dx%d\n",
93 avctx->width, avctx->height, img->d_w, img->d_h);
94 ret = ff_set_dimensions(avctx, img->d_w, img->d_h);
98 if ((ret = ff_get_buffer(avctx, picture, 0)) < 0)
101 img->stride, avctx->pix_fmt, img->d_w, img->d_h);
107 static av_cold int vp8_free(AVCodecContext *avctx)
109 VP8Context *ctx = avctx->priv_data;
115 static av_cold int vp8_init(AVCodecContext *avctx)
117 return vpx_init(avctx, &vpx_codec_vp8_dx_algo);
134 static av_cold int vp9_init(AVCodecContext *avctx)
136 return vpx_init(avctx, &vpx_codec_vp9_dx_algo);