Package com.jme3.texture.image
Class ByteOffsetImageCodec
java.lang.Object
com.jme3.texture.image.ByteOffsetImageCodec
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
static final int
static final int
static final int
protected final boolean
protected final int
protected final int
protected final int
protected final int
protected final int
-
Constructor Summary
ConstructorDescriptionByteOffsetImageCodec
(int bpp, int flags, int alphaPos, int redPos, int greenPos, int bluePos) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.jme3.texture.image.ImageCodec
lookup
(Image.Format format) Looks up the format in the codec registry.void
readComponents
(ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp) void
writeComponents
(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.
-