Lines Matching refs:avctx
59 AVCodecContext* avctx;
80 av_dlog(s->avctx, "gif: image x=%d y=%d w=%d h=%d\n", left, top, width, height);
166 av_dlog(s->avctx, "gif: ext_code=0x%x len=%d\n", ext_code, ext_len);
182 av_dlog(s->avctx, "gif: gce_flags=%x delay=%d tcolor=%d disposal=%d\n",
197 av_dlog(s->avctx, "gif: ext_len1=%d\n", ext_len);
234 av_dlog(s->avctx, "gif: screen_w=%d screen_h=%d bpp=%d global_palette=%d\n",
252 av_dlog(s->avctx, "gif: code=%02x '%c'\n", code, code);
271 static av_cold int gif_decode_init(AVCodecContext *avctx)
273 GifState *s = avctx->priv_data;
275 s->avctx = avctx;
278 avctx->coded_frame= &s->picture;
284 static int gif_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
288 GifState *s = avctx->priv_data;
297 avctx->pix_fmt = PIX_FMT_PAL8;
298 if (av_image_check_size(s->screen_width, s->screen_height, 0, avctx))
300 avcodec_set_dimensions(avctx, s->screen_width, s->screen_height);
303 avctx->release_buffer(avctx, &s->picture);
304 if (avctx->get_buffer(avctx, &s->picture) < 0) {
305 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
318 static av_cold int gif_decode_close(AVCodecContext *avctx)
320 GifState *s = avctx->priv_data;
324 avctx->release_buffer(avctx, &s->picture);