Enum DDSType
- java.lang.Object
-
- java.lang.Enum<DDSType>
-
- com.twelvemonkeys.imageio.plugins.dds.DDSType
-
-
Field Summary
Fields Modifier and Type Field Description private intblockSize(package private) BlockCompressioncompressionprivate intdxgiFormatprivate intfourCC(package private) int[]rgbaMasks
-
Constructor Summary
Constructors Modifier Constructor Description privateDDSType(int blockSize, int dxgiFormat, int[] rgbaMasks)privateDDSType(int fourCC, int blockSize, int dxgiFormat, BlockCompression compression)privateDDSType(int fourCC, int blockSize, int dxgiFormat, BlockCompression compression, int[] rgbaMasks)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intblockSize()intdxgiFormat()intfourCC()static DDSTypefromDXGIFormat(int dxgiFormat)static DDSTypefromFourCC(int fourCC)booleanisBlockCompression()booleanisFourCC()static DDSTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DDSType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DXT1
public static final DDSType DXT1
-
DXT2
public static final DDSType DXT2
-
DXT3
public static final DDSType DXT3
-
DXT4
public static final DDSType DXT4
-
DXT5
public static final DDSType DXT5
-
ATI1
public static final DDSType ATI1
-
BC4U
public static final DDSType BC4U
-
BC4S
public static final DDSType BC4S
-
ATI2
public static final DDSType ATI2
-
BC5U
public static final DDSType BC5U
-
BC5S
public static final DDSType BC5S
-
DXT10
public static final DDSType DXT10
-
A1R5G5B5
public static final DDSType A1R5G5B5
-
X1R5G5B5
public static final DDSType X1R5G5B5
-
A4R4G4B4
public static final DDSType A4R4G4B4
-
X4R4G4B4
public static final DDSType X4R4G4B4
-
R5G6B5
public static final DDSType R5G6B5
-
R8G8B8
public static final DDSType R8G8B8
-
A8B8G8R8
public static final DDSType A8B8G8R8
-
X8B8G8R8
public static final DDSType X8B8G8R8
-
A8R8G8B8
public static final DDSType A8R8G8B8
-
X8R8G8B8
public static final DDSType X8R8G8B8
-
-
Field Detail
-
fourCC
private final int fourCC
-
blockSize
private final int blockSize
-
dxgiFormat
private final int dxgiFormat
-
compression
final BlockCompression compression
-
rgbaMasks
final int[] rgbaMasks
-
-
Constructor Detail
-
DDSType
private DDSType(int fourCC, int blockSize, int dxgiFormat, BlockCompression compression)
-
DDSType
private DDSType(int blockSize, int dxgiFormat, int[] rgbaMasks)
-
DDSType
private DDSType(int fourCC, int blockSize, int dxgiFormat, BlockCompression compression, int[] rgbaMasks)
-
-
Method Detail
-
values
public static DDSType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DDSType c : DDSType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DDSType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fourCC
public int fourCC()
-
blockSize
public int blockSize()
-
isFourCC
public boolean isFourCC()
-
isBlockCompression
public boolean isBlockCompression()
-
dxgiFormat
public int dxgiFormat()
-
fromFourCC
public static DDSType fromFourCC(int fourCC)
-
fromDXGIFormat
public static DDSType fromDXGIFormat(int dxgiFormat)
-
-