Class PNGDecoder
java.lang.Object
zombie.core.textures.PNGDecoder
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(ByteBuffer buffer, int stride, int inHeight, PNGDecoder.Format fmt, int inChunkType) voiddecodeFlipped(ByteBuffer buffer, int stride, int inHeight, PNGDecoder.Format fmt, int inChunkType) voiddecodeFrame(MipMapLevel compositeBuffer, ImageDataFrame frame, ByteBuffer buffer, int stride, PNGDecoder.Format fmt) voidintintintintgetWidth()booleanhasAlpha()booleanbooleanbooleanisRGB()voidoverwriteTRNS(byte r, byte g, byte b)
-
Field Details
-
IDAT
public static final int IDAT- See Also:
-
fdAT
public static final int fdAT- See Also:
-
maskId
public int maskId -
mask
-
doMask
public boolean doMask -
readTotal
public long readTotal
-
-
Constructor Details
-
PNGDecoder
- Throws:
IOException
-
-
Method Details
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
hasAlphaChannel
public boolean hasAlphaChannel() -
hasAlpha
public boolean hasAlpha() -
isRGB
public boolean isRGB() -
isAnimated
public boolean isAnimated() -
getNumFrames
public int getNumFrames() -
getNumPlays
public int getNumPlays() -
getCurrentFrame
-
overwriteTRNS
public void overwriteTRNS(byte r, byte g, byte b) -
decideTextureFormat
-
decode
public void decode(ByteBuffer buffer, int stride, int inHeight, PNGDecoder.Format fmt, int inChunkType) throws IOException - Throws:
IOException
-
decodeFlipped
public void decodeFlipped(ByteBuffer buffer, int stride, int inHeight, PNGDecoder.Format fmt, int inChunkType) throws IOException - Throws:
IOException
-
decodeStartOfNextFrame
- Throws:
IOException
-
decodeFrame
public void decodeFrame(MipMapLevel compositeBuffer, ImageDataFrame frame, ByteBuffer buffer, int stride, PNGDecoder.Format fmt) throws IOException - Throws:
IOException
-