Package com.jme3.texture.image
Class ByteOffsetImageCodec
java.lang.Object
com.jme3.texture.image.ByteOffsetImageCodec
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final intstatic final intstatic final intstatic final intprotected final booleanprotected final intprotected final intprotected final intprotected final intprotected final int
- 
Constructor SummaryConstructorsConstructorDescriptionByteOffsetImageCodec(int bpp, int flags, int alphaPos, int redPos, int greenPos, int bluePos) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic com.jme3.texture.image.ImageCodeclookup(Image.Format format) Looks up the format in the codec registry.voidreadComponents(ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp) voidwriteComponents(ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp) 
- 
Field Details- 
FLAG_F16public static final int FLAG_F16- See Also:
 
- 
FLAG_F32public static final int FLAG_F32- See Also:
 
- 
FLAG_GRAYpublic static final int FLAG_GRAY- See Also:
 
- 
bppprotected final int bpp
- 
typeprotected final int type
- 
maxAlphaprotected final int maxAlpha
- 
maxRedprotected final int maxRed
- 
maxGreenprotected final int maxGreen
- 
maxBlueprotected final int maxBlue
- 
isGrayprotected final boolean isGray
 
- 
- 
Constructor Details- 
ByteOffsetImageCodecpublic ByteOffsetImageCodec(int bpp, int flags, int alphaPos, int redPos, int greenPos, int bluePos) 
 
- 
- 
Method Details- 
readComponentspublic void readComponents(ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp) 
- 
writeComponentspublic void writeComponents(ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp) 
- 
lookupLooks up the format in the codec registry. The codec will be able to decode the given format.- Parameters:
- format- The format to lookup.
- Returns:
- The codec capable of decoding it, or null if not found.
 
 
-