예제 #1
0
        // BC7
        internal static void DecompressBC7Block(byte[] source, int sourceStart, byte[] destination, int decompressedStart, int decompressedLineLength, bool unused)
        {
            var colours = BC7.DecompressBC7(source, sourceStart);

            SetColoursFromDX10(colours, destination, decompressedStart, decompressedLineLength);
        }
 internal static void CompressBC7Block(byte[] imgData, int sourcePosition, int sourceLineLength, byte[] destination, int destPosition, AlphaSettings alphaSetting, ImageFormats.ImageEngineFormatDetails formatDetails)
 {
     BC7.CompressBC7Block(imgData, sourcePosition, sourceLineLength, destination, destPosition);
 }
예제 #3
0
파일: Dxt.cs 프로젝트: week9/Switch-Toolbox
        internal static void DecompressBC6Block(byte[] Data, int Width, int Height, bool IsSigned, int pos, byte[] output, int xPos, int yPos)
        {
            var colours = BC6.DecompressBC6(Data, pos, IsSigned);

            BC7.SetColoursFromDX10(colours, output, xPos, yPos, Width);
        }