Package com.jme3.texture.image
Class ByteOffsetImageCodec
java.lang.Object
com.jme3.texture.image.ByteOffsetImageCodec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intstatic final intstatic final intstatic final intprotected final booleanprotected final intprotected final intprotected final intprotected final intprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionByteOffsetImageCodec(int bpp, int flags, int alphaPos, int redPos, int greenPos, int bluePos) -
Method Summary
Modifier 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_F16
public static final int FLAG_F16- See Also:
-
FLAG_F32
public static final int FLAG_F32- See Also:
-
FLAG_GRAY
public static final int FLAG_GRAY- See Also:
-
bpp
protected final int bpp -
type
protected final int type -
maxAlpha
protected final int maxAlpha -
maxRed
protected final int maxRed -
maxGreen
protected final int maxGreen -
maxBlue
protected final int maxBlue -
isGray
protected final boolean isGray
-
-
Constructor Details
-
ByteOffsetImageCodec
public ByteOffsetImageCodec(int bpp, int flags, int alphaPos, int redPos, int greenPos, int bluePos)
-
-
Method Details
-
readComponents
public void readComponents(ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp) -
writeComponents
public void writeComponents(ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp) -
lookup
Looks 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.
-