ImageEncoderpublic final class ImageEncoder extends Object Utility class that provides I/F to native
image/audio/video format conversion code:
currently implemented image RGB -to-JPEG & -to-PNG conversion |
Fields Summary |
---|
public static final int | CONVERT_RGB_TO_JPEG | public static final int | CONVERT_RGB_TO_PNG |
Methods Summary |
---|
public static native int | RGBByteCompress(byte[] xrgb, int w, int h, int qual, byte[] compressed, int encType)converts xrgb image to jpeg or png format.
this function is platform independent, since
byte ordder doesn't depend on big-/little-endian platform.
| public static native int | RGBIntCompress(int[] xrgb, int w, int h, int qual, byte[] compressed, int encType)converts xrgb image to jpeg or png format
this function is platform DEPENDENT, since
byte order in int depends on big-/little-endian platform !
Current implementation works for little-endian only (x86) !
|
|