| java.lang.Object com.sun.mmedia.ImageEncoder
ImageEncoder | final public class ImageEncoder (Code) | | Utility class that provides I/F to native
image/audio/video format conversion code:
currently implemented image RGB -to-JPEG & -to-PNG conversion
|
Method Summary | |
native public static int | RGBByteCompress(byte[] xrgb, int w, int h, int qual, byte[] compressed, int encType) converts xrgb image to jpeg or png format. | native public static int | RGBIntCompress(int[] xrgb, int w, int h, int qual, byte[] compressed, int encType) |
CONVERT_RGB_TO_JPEG | final public static int CONVERT_RGB_TO_JPEG(Code) | | |
CONVERT_RGB_TO_PNG | final public static int CONVERT_RGB_TO_PNG(Code) | | |
RGBByteCompress | native public static int RGBByteCompress(byte[] xrgb, int w, int h, int qual, byte[] compressed, int encType)(Code) | | converts xrgb image to jpeg or png format.
this function is platform independent, since
byte ordder doesn't depend on big-/little-endian platform.
Parameters: xrgb - raw RGB data in form of byte array (4 bytes per pixel) Parameters: w - width of frame Parameters: h - height of frame Parameters: qual - quality - for JPEG Parameters: compressed - data to be output Parameters: encType - 1 for JPEG, 2 for PNG the size of the compressed data |
RGBIntCompress | native public static int RGBIntCompress(int[] xrgb, int w, int h, int qual, byte[] compressed, int encType)(Code) | | 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) !
Parameters: xrgb - raw RGB data in form of int array (32-bit per pixel) Parameters: w - width of frame Parameters: h - height of frame Parameters: qual - quality - for JPEG Parameters: compressed - data to be output Parameters: encType - 1 for JPEG, 2 for PNG the size of the compressed data |
|
|