• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * GIF format definitions
3  * Copyright (c) 2003 Fabrice Bellard
4  * Copyright (c) 2006 Baptiste Coudurier
5  * Copyright (c) 2012 Vitaliy E Sugrobov
6  *
7  * This file is part of FFmpeg.
8  *
9  * FFmpeg is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * FFmpeg is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with FFmpeg; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  */
23 
24 /**
25  * @file
26  * GIF format definitions.
27  */
28 
29 #ifndef AVCODEC_GIF_H
30 #define AVCODEC_GIF_H
31 
32 #include <stdint.h>
33 
34 static const uint8_t gif87a_sig[6] = "GIF87a";
35 static const uint8_t gif89a_sig[6] = "GIF89a";
36 
37 #define GCE_DISPOSAL_NONE       0
38 #define GCE_DISPOSAL_INPLACE    1
39 #define GCE_DISPOSAL_BACKGROUND 2
40 #define GCE_DISPOSAL_RESTORE    3
41 
42 #define GIF_TRAILER                 0x3b
43 #define GIF_EXTENSION_INTRODUCER    0x21
44 #define GIF_IMAGE_SEPARATOR         0x2c
45 #define GIF_GCE_EXT_LABEL           0xf9
46 #define GIF_COM_EXT_LABEL           0xfe
47 #define GIF_APP_EXT_LABEL           0xff
48 #define NETSCAPE_EXT_STR            "NETSCAPE2.0"
49 
50 #endif /* AVCODEC_GIF_H */
51