public static void hqxInit() {
		/* Initalize RGB to YUV lookup table */
		int r, g, b, y, u, v;
		for (int c = 0x1000000 - 1; c >= 0; c--) {
			r = (c & 0xFF0000) >> 16;
			g = (c & 0x00FF00) >> 8;
			b = c & 0x0000FF;
			y = (int) (+0.299d * r + 0.587d * g + 0.114d * b);
			u = (int) (-0.169d * r - 0.331d * g + 0.500d * b) + 128;
			v = (int) (+0.500d * r - 0.419d * g - 0.081d * b) + 128;
			RGBtoYUV[c] = (y << 16) | (u << 8) | v;
		}
	}