Class DDSReader
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.dds.DDSReader
-
final class DDSReader extends java.lang.ObjectDDSReader.javaCopyright (c) 2015 Kenji Sasaki Released under the MIT license. MIT License
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classDDSReader.Order
-
Field Summary
Fields Modifier and Type Field Description private static int[]A1R5G5B5_MASKSprivate static int[]A4R4G4B4_MASKSprivate static int[]A8B8G8R8_MASKSprivate static int[]A8R8G8B8_MASKS(package private) static DDSReader.OrderARGB_ORDERprivate static int[]BIT5private static int[]BIT6private DDSHeaderheaderprivate static int[]R5G6B5_MASKSprivate static int[]R8G8B8_MASKSprivate static int[]X1R5G5B5_MASKSprivate static int[]X4R4G4B4_MASKSprivate static int[]X8B8G8R8_MASKSprivate static int[]X8R8G8B8_MASKS
-
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 intgetDXT5Alpha(int a0, int a1, int t)private static intgetDXTColor(int c0, int c1, int a, int t)private static intgetDXTColor1(int c, int a)private static intgetDXTColor1_1(int c0, int c1, int a)private static intgetDXTColor2_1(int c0, int c1, int a)private intgetLength(DDSType type, int imageIndex)private DDSTypegetType()(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)
-
-
-
Field Detail
-
ARGB_ORDER
static final DDSReader.Order ARGB_ORDER
-
header
private final DDSHeader header
-
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
-
DDSReader
DDSReader(DDSHeader header)
-
-
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)
-
-