Description: Move declaration of GifQuantizeBuffer() back to gif_lib.h
Bug-Debian: https://bugs.debian.org/1011705
Author: Graham Inggs <ginggs@debian.org>
Last-Update: 2022-06-12

--- a/gif_lib.h
+++ b/gif_lib.h
@@ -215,6 +215,14 @@
 int DGifGetLZCodes(GifFileType *GifFile, int *GifCode);
 const char *DGifGetGifVersion(GifFileType *GifFile);
 
+/******************************************************************************
+ Color table quantization (deprecated)
+******************************************************************************/
+int GifQuantizeBuffer(unsigned int Width, unsigned int Height,
+                   int *ColorMapSize, GifByteType * RedInput,
+                   GifByteType * GreenInput, GifByteType * BlueInput,
+                   GifByteType * OutputBuffer,
+                   GifColorType * OutputColorMap);
 
 /******************************************************************************
  Error handling and reporting.
--- a/getarg.h
+++ b/getarg.h
@@ -34,15 +34,6 @@
 extern void GifQprintf(char *Format, ...);
 extern void PrintGifError(int ErrorCode);
 
-/******************************************************************************
- Color table quantization
-******************************************************************************/
-int GifQuantizeBuffer(unsigned int Width, unsigned int Height,
-                   int *ColorMapSize, GifByteType * RedInput,
-                   GifByteType * GreenInput, GifByteType * BlueInput,
-                   GifByteType * OutputBuffer,
-                   GifColorType * OutputColorMap);
-
 /* These used to live in the library header */
 #define GIF_MESSAGE(Msg) fprintf(stderr, "\n%s: %s\n", PROGRAM_NAME, Msg)
 #define GIF_EXIT(Msg)    { GIF_MESSAGE(Msg); exit(-3); }
