gif.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. * @file
  25. * GIF format definitions.
  26. */
  27. #ifndef AVCODEC_GIF_H
  28. #define AVCODEC_GIF_H
  29. #include <stdint.h>
  30. static const uint8_t gif87a_sig[6] = "GIF87a";
  31. static const uint8_t gif89a_sig[6] = "GIF89a";
  32. #define GCE_DISPOSAL_NONE 0
  33. #define GCE_DISPOSAL_INPLACE 1
  34. #define GCE_DISPOSAL_BACKGROUND 2
  35. #define GCE_DISPOSAL_RESTORE 3
  36. #define GIF_TRAILER 0x3b
  37. #define GIF_EXTENSION_INTRODUCER 0x21
  38. #define GIF_IMAGE_SEPARATOR 0x2c
  39. #define GIF_GCE_EXT_LABEL 0xf9
  40. #define GIF_COM_EXT_LABEL 0xfe
  41. #define GIF_APP_EXT_LABEL 0xff
  42. #define NETSCAPE_EXT_STR "NETSCAPE2.0"
  43. #endif /* AVCODEC_GIF_H */