|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
fr.esrf.tangoatk.widget.image.JpegDecoder
public class JpegDecoder
A class to decode jpeg image Author: JL Pons
| Field Summary | |
|---|---|
static int |
GRAY8
8 Bits Gray scale |
static int |
RGB24
32 Bits RGB |
| Constructor Summary | |
|---|---|
JpegDecoder(byte[] jpgBuffer)
Contructs a JPEG decoder |
|
| Method Summary | |
|---|---|
int |
available()
|
byte[][] |
decode()
Decode the image |
int |
GetType()
Returns type (0 is returned if no image has been decoded) |
int |
read()
|
| Methods inherited from class java.io.InputStream |
|---|
close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RGB24
public static final int GRAY8
| Constructor Detail |
|---|
public JpegDecoder(byte[] jpgBuffer)
jpgBuffer - buffer of encoded data| Method Detail |
|---|
public int GetType()
RGB24,
GRAY8
public byte[][] decode()
throws java.io.IOException
java.io.IOException - in case of failure
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||