public static int MaxNumberOfChannels(ImageEngineFormat format) { var estimate = GetBlockSize(format); // DXT and non-DDS if (estimate > 4 || estimate == 1) return 4; else return estimate; }