Mercurial > libavcodec.hg
comparison gifdec.c @ 6218:dfdff1ca78a7 libavcodec
consts
I have underestimated this a little, and these are just some ...
author | michael |
---|---|
date | Fri, 01 Feb 2008 03:26:31 +0000 |
parents | bff60ecc02f9 |
children | 745a4216b352 |
comparison
equal
deleted
inserted
replaced
6217:f838213ca91b | 6218:dfdff1ca78a7 |
---|---|
45 int gce_disposal; | 45 int gce_disposal; |
46 /* delay during which the frame is shown */ | 46 /* delay during which the frame is shown */ |
47 int gce_delay; | 47 int gce_delay; |
48 | 48 |
49 /* LZW compatible decoder */ | 49 /* LZW compatible decoder */ |
50 uint8_t *bytestream; | 50 const uint8_t *bytestream; |
51 uint8_t *bytestream_end; | 51 const uint8_t *bytestream_end; |
52 LZWState *lzw; | 52 LZWState *lzw; |
53 | 53 |
54 /* aux buffers */ | 54 /* aux buffers */ |
55 uint8_t global_palette[256 * 3]; | 55 uint8_t global_palette[256 * 3]; |
56 uint8_t local_palette[256 * 3]; | 56 uint8_t local_palette[256 * 3]; |
283 s->picture.data[0] = NULL; | 283 s->picture.data[0] = NULL; |
284 ff_lzw_decode_open(&s->lzw); | 284 ff_lzw_decode_open(&s->lzw); |
285 return 0; | 285 return 0; |
286 } | 286 } |
287 | 287 |
288 static int gif_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) | 288 static int gif_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) |
289 { | 289 { |
290 GifState *s = avctx->priv_data; | 290 GifState *s = avctx->priv_data; |
291 AVFrame *picture = data; | 291 AVFrame *picture = data; |
292 int ret; | 292 int ret; |
293 | 293 |