extern "C"
#if !defined HAVE_GIFLIB_QUANTIZE
int GifQuantizeBuffer(unsigned int Width, unsigned int Height,
- int *ColorMapSize, GifByteType * RedInput,
- GifByteType * GreenInput, GifByteType * BlueInput,
+ int *ColorMapSize, const GifByteType * RedInput,
+ const GifByteType * GreenInput, const GifByteType * BlueInput,
GifByteType * OutputBuffer,
GifColorType * OutputColorMap);
#endif
if (MaxRGBError[2] < ABS(OutputColorMap[Index].Blue - BlueInput[i]))
MaxRGBError[2] = ABS(OutputColorMap[Index].Blue - BlueInput[i]);
}
-#endif
+
#ifdef DEBUG
fprintf(stderr,
return GIF_OK;
}
+#endif // HAVE_GIFLIB_QUANTIZE
+
/******************************************************************************
Routine to subdivide the RGB space recursively using median cut in each
axes alternatingly until ColorMapSize different cubes exists.