Class DDSReader

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  DDSReader.Order  
    • Constructor Summary

      Constructors 
      Constructor Description
      DDSReader​(DDSHeader header)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static int[] decodeDXT1​(int width, int height, byte[] buffer)  
      private static int[] decodeDXT2​(int width, int height, byte[] buffer)  
      private static int[] decodeDXT3​(int width, int height, byte[] buffer)  
      private static int[] decodeDXT4​(int width, int height, byte[] buffer)  
      private static int[] decodeDXT5​(int width, int height, byte[] buffer)  
      private static int getDXT5Alpha​(int a0, int a1, int t)  
      private static int getDXTColor​(int c0, int c1, int a, int t)  
      private static int getDXTColor1​(int c, int a)  
      private static int getDXTColor1_1​(int c0, int c1, int a)  
      private static int getDXTColor2_1​(int c0, int c1, int a)  
      private int getLength​(DDSType type, int imageIndex)  
      private DDSType getType()  
      (package private) int[] read​(javax.imageio.stream.ImageInputStream imageInput, int imageIndex)  
      private static int[] readA1R5G5B5​(int width, int height, byte[] buffer)  
      private static int[] readA4R4G4B4​(int width, int height, byte[] buffer)  
      private static int[] readA8B8G8R8​(int width, int height, byte[] buffer)  
      private static int[] readA8R8G8B8​(int width, int height, byte[] buffer)  
      private static int[] readR5G6B5​(int width, int height, byte[] buffer)  
      private static int[] readR8G8B8​(int width, int height, byte[] buffer)  
      private static int[] readX1R5G5B5​(int width, int height, byte[] buffer)  
      private static int[] readX4R4G4B4​(int width, int height, byte[] buffer)  
      private static int[] readX8B8G8R8​(int width, int height, byte[] buffer)  
      private static int[] readX8R8G8B8​(int width, int height, byte[] buffer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • A1R5G5B5_MASKS

        private static final int[] A1R5G5B5_MASKS
      • X1R5G5B5_MASKS

        private static final int[] X1R5G5B5_MASKS
      • A4R4G4B4_MASKS

        private static final int[] A4R4G4B4_MASKS
      • X4R4G4B4_MASKS

        private static final int[] X4R4G4B4_MASKS
      • R5G6B5_MASKS

        private static final int[] R5G6B5_MASKS
      • R8G8B8_MASKS

        private static final int[] R8G8B8_MASKS
      • A8B8G8R8_MASKS

        private static final int[] A8B8G8R8_MASKS
      • X8B8G8R8_MASKS

        private static final int[] X8B8G8R8_MASKS
      • A8R8G8B8_MASKS

        private static final int[] A8R8G8B8_MASKS
      • X8R8G8B8_MASKS

        private static final int[] X8R8G8B8_MASKS
      • BIT5

        private static final int[] BIT5
      • BIT6

        private static final int[] BIT6
    • Constructor Detail

    • Method Detail

      • read

        int[] read​(javax.imageio.stream.ImageInputStream imageInput,
                   int imageIndex)
            throws java.io.IOException
        Throws:
        java.io.IOException
      • getType

        private DDSType getType()
                         throws javax.imageio.IIOException
        Throws:
        javax.imageio.IIOException
      • getLength

        private int getLength​(DDSType type,
                              int imageIndex)
                       throws javax.imageio.IIOException
        Throws:
        javax.imageio.IIOException
      • decodeDXT1

        private static int[] decodeDXT1​(int width,
                                        int height,
                                        byte[] buffer)
      • decodeDXT2

        private static int[] decodeDXT2​(int width,
                                        int height,
                                        byte[] buffer)
      • decodeDXT3

        private static int[] decodeDXT3​(int width,
                                        int height,
                                        byte[] buffer)
      • decodeDXT4

        private static int[] decodeDXT4​(int width,
                                        int height,
                                        byte[] buffer)
      • decodeDXT5

        private static int[] decodeDXT5​(int width,
                                        int height,
                                        byte[] buffer)
      • readA1R5G5B5

        private static int[] readA1R5G5B5​(int width,
                                          int height,
                                          byte[] buffer)
      • readX1R5G5B5

        private static int[] readX1R5G5B5​(int width,
                                          int height,
                                          byte[] buffer)
      • readA4R4G4B4

        private static int[] readA4R4G4B4​(int width,
                                          int height,
                                          byte[] buffer)
      • readX4R4G4B4

        private static int[] readX4R4G4B4​(int width,
                                          int height,
                                          byte[] buffer)
      • readR5G6B5

        private static int[] readR5G6B5​(int width,
                                        int height,
                                        byte[] buffer)
      • readR8G8B8

        private static int[] readR8G8B8​(int width,
                                        int height,
                                        byte[] buffer)
      • readA8B8G8R8

        private static int[] readA8B8G8R8​(int width,
                                          int height,
                                          byte[] buffer)
      • readX8B8G8R8

        private static int[] readX8B8G8R8​(int width,
                                          int height,
                                          byte[] buffer)
      • readA8R8G8B8

        private static int[] readA8R8G8B8​(int width,
                                          int height,
                                          byte[] buffer)
      • readX8R8G8B8

        private static int[] readX8R8G8B8​(int width,
                                          int height,
                                          byte[] buffer)
      • getDXTColor

        private static int getDXTColor​(int c0,
                                       int c1,
                                       int a,
                                       int t)
      • getDXTColor2_1

        private static int getDXTColor2_1​(int c0,
                                          int c1,
                                          int a)
      • getDXTColor1_1

        private static int getDXTColor1_1​(int c0,
                                          int c1,
                                          int a)
      • getDXTColor1

        private static int getDXTColor1​(int c,
                                        int a)
      • getDXT5Alpha

        private static int getDXT5Alpha​(int a0,
                                        int a1,
                                        int t)