diff options
author | Vitaliy E Sugrobov <vsugrob@hotmail.com> | 2012-11-30 12:58:55 +0400 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-30 14:33:58 +0000 |
commit | 005cb97e3e710a5266cbcad47b1c5060933646bd (patch) | |
tree | df63a17b7befdd0513c3f8486034899355e4f54d /libavcodec/gifdec.c | |
parent | de0cb7f070dc941ea2d3f8a99dad497c852b4e35 (diff) | |
download | ffmpeg-005cb97e3e710a5266cbcad47b1c5060933646bd.tar.gz |
Move some definitions to header file.
Share them with upcoming demuxer module.
Signed-off-by: Vitaliy E Sugrobov <vsugrob@hotmail.com>
Diffstat (limited to 'libavcodec/gifdec.c')
-rwxr-xr-x | libavcodec/gifdec.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 2213733e25..63a8788a0c 100755 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -28,15 +28,8 @@ #include "avcodec.h" #include "bytestream.h" #include "lzw.h" +#include "gif.h" -#define GCE_DISPOSAL_NONE 0 -#define GCE_DISPOSAL_INPLACE 1 -#define GCE_DISPOSAL_BACKGROUND 2 -#define GCE_DISPOSAL_RESTORE 3 -#define GIF_TRAILER 0x3b -#define GIF_EXTENSION_INTRODUCER 0x21 -#define GIF_IMAGE_SEPARATOR 0x2c -#define GIF_GCE_EXT_LABEL 0xf9 /* This value is intentionally set to "transparent white" color. * It is much better to have white background instead of black * when gif image converted to format which not support transparency. @@ -83,8 +76,6 @@ typedef struct GifState { int trans_color; /**< color value that is used instead of transparent color */ } GifState; -static const uint8_t gif87a_sig[6] = "GIF87a"; -static const uint8_t gif89a_sig[6] = "GIF89a"; static void gif_read_palette(const uint8_t **buf, uint32_t *pal, int nb) { const uint8_t *pal_end = *buf + nb * 3; |