|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.codecs.jpeg.JPEGMarkerReader
public class JPEGMarkerReader
Static helper methods to read various JPEG bitstream headers from a
DataInput
source into objects of the appropriate
data classes.
Objects are then added to a JPEGData
object.
Method Summary | |
---|---|
static void |
readHuffmanTables(DataInput in,
JPEGData jpegData,
int length)
|
static void |
readQuantizationTables(DataInput in,
JPEGData jpegData,
int length)
Read quantization tables from a DQT marker. |
static void |
readStartOfFrame(DataInput in,
JPEGData jpegData,
int marker,
int length)
|
static void |
readStartOfScan(DataInput in,
JPEGData jpegData,
int length)
Read an SOS (start of scan) marker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void readHuffmanTables(DataInput in, JPEGData jpegData, int length) throws InvalidFileStructureException, IOException
InvalidFileStructureException
IOException
public static void readQuantizationTables(DataInput in, JPEGData jpegData, int length) throws InvalidFileStructureException, IOException
jpegData
- data object which will store the table(s)length
- length of marker
InvalidFileStructureException
- if the DQT contains invalid data
IOException
- on reading errorspublic static void readStartOfFrame(DataInput in, JPEGData jpegData, int marker, int length) throws InvalidFileStructureException, IOException, UnsupportedTypeException
InvalidFileStructureException
IOException
UnsupportedTypeException
public static void readStartOfScan(DataInput in, JPEGData jpegData, int length) throws InvalidFileStructureException, IOException, UnsupportedTypeException
in
- source to read marker information fromjpegData
- JPEGData
object to update with information from the markerlength
- size of marker in bytes
InvalidFileStructureException
- if encountered data does not follow the JPEG standard
IOException
- on I/O errors
UnsupportedTypeException
- if encountered data is valid but unsupported by this package
|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |