Methods Summary |
---|
public static native void | decodeBlock(java.nio.Buffer in, java.nio.Buffer out)Decode a block of pixels.
|
public static native void | decodeImage(java.nio.Buffer in, java.nio.Buffer out, int width, int height, int pixelSize, int stride)Decode an entire image.
|
public static native void | encodeBlock(java.nio.Buffer in, int validPixelMask, java.nio.Buffer out)Encode a block of pixels.
|
public static native void | encodeImage(java.nio.Buffer in, int width, int height, int pixelSize, int stride, java.nio.Buffer out)Encode an entire image.
|
public static native void | formatHeader(java.nio.Buffer header, int width, int height)Format a PKM header
|
public static native int | getEncodedDataSize(int width, int height)Return the size of the encoded image data (does not include size of PKM header).
|
public static native int | getHeight(java.nio.Buffer header)Read the image height from a PKM header
|
public static native int | getWidth(java.nio.Buffer header)Read the image width from a PKM header
|
public static native boolean | isValid(java.nio.Buffer header)Check if a PKM header is correctly formatted.
|