private static int[] reduceColorsDiffusionDither(int[] rgbTriplets, int width, int height, int colorDepth, byte[] newPixels, final int[] colorPalette)	{
		if(colorDepth > 8 || colorDepth < 1) 
			throw new IllegalArgumentException("Invalid color depth " + colorDepth);
		int[] colorInfo = new int[2];
		int colors = 0;
		colors = new WuQuant(rgbTriplets, 1<<colorDepth).quantize(colorPalette, colorInfo);
		// Call Floyd-Steinberg dither
		dither_FloydSteinberg(rgbTriplets, width, height, newPixels, colors, colorPalette, colorInfo[1]);
		// Return the actual bits per pixel and the transparent color index if any

		return colorInfo;
	}
Write out a zero length data sub-block
subs/gif-revert/src/main/java/com/engineer/gif/revert/lib/AnimatedGIFWriter.java