Lines Matching defs:avctx
82 static int build_vlc(AVCodecContext *avctx, VLC *vlc)
84 MVHAContext *s = avctx->priv_data;
133 av_log(avctx, AV_LOG_ERROR, "count overflow\n");
151 static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
154 MVHAContext *s = avctx->priv_data;
167 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
174 av_log(avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", ret);
182 for (int y = 0; y < avctx->height; y++) {
183 zstream->next_out = frame->data[p] + (avctx->height - y - 1) * frame->linesize[p];
184 zstream->avail_out = avctx->width >> (p > 0);
188 av_log(avctx, AV_LOG_ERROR, "Inflate error: %d\n", ret);
228 ret = build_vlc(avctx, &s->vlc);
233 int width = avctx->width >> (p > 0);
237 dst = frame->data[p] + (avctx->height - 1) * frame->linesize[p];
238 for (int y = 0; y < avctx->height; y++) {
258 int width = avctx->width >> (p > 0);
262 dst = frame->data[p] + (avctx->height - 1) * frame->linesize[p];
264 if (avctx->height > 1) {
267 for (int y = 1; y < avctx->height; y++) {
282 static av_cold int decode_init(AVCodecContext *avctx)
284 MVHAContext *s = avctx->priv_data;
286 avctx->pix_fmt = AV_PIX_FMT_YUV422P;
290 return ff_inflate_init(&s->zstream, avctx);
293 static av_cold int decode_close(AVCodecContext *avctx)
295 MVHAContext *s = avctx->priv_data;