public class ByteOffsetImageCodec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
bpp |
static int |
FLAG_F16 |
static int |
FLAG_F32 |
static int |
FLAG_GRAY |
protected boolean |
isGray |
protected int |
maxAlpha |
protected int |
maxBlue |
protected int |
maxGreen |
protected int |
maxRed |
protected int |
type |
Constructor and Description |
---|
ByteOffsetImageCodec(int bpp,
int flags,
int alphaPos,
int redPos,
int greenPos,
int bluePos) |
Modifier and Type | Method and Description |
---|---|
static com.jme3.texture.image.ImageCodec |
lookup(Image.Format format)
Looks up the format in the codec registry.
|
void |
readComponents(java.nio.ByteBuffer buf,
int x,
int y,
int width,
int offset,
int[] components,
byte[] tmp) |
void |
writeComponents(java.nio.ByteBuffer buf,
int x,
int y,
int width,
int offset,
int[] components,
byte[] tmp) |
public static final int FLAG_F16
public static final int FLAG_F32
public static final int FLAG_GRAY
protected final int bpp
protected final int type
protected final int maxAlpha
protected final int maxRed
protected final int maxGreen
protected final int maxBlue
protected final boolean isGray
public ByteOffsetImageCodec(int bpp, int flags, int alphaPos, int redPos, int greenPos, int bluePos)
public void readComponents(java.nio.ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp)
public void writeComponents(java.nio.ByteBuffer buf, int x, int y, int width, int offset, int[] components, byte[] tmp)
public static com.jme3.texture.image.ImageCodec lookup(Image.Format format)
format
- The format to lookup.