|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.faidon.jis.ImageSaverInterface | +--fi.faidon.jis.JPEGImageSaver
Class for saving an image in the JPEG format.
Field Summary | |
protected int |
Ah
|
protected int |
Al
|
protected boolean |
arithCode
|
protected static int |
BITS_IN_JSAMPLE
|
protected int |
blocksInMCU
|
protected static int |
C_MAX_BLOCKS_IN_MCU
|
protected boolean |
CCIR601sampling
|
protected JPEGColor |
cconvert
|
protected java.util.Vector |
compInfoVector
|
protected int |
compsInScan
|
protected java.util.Vector |
curCompInfo
|
protected int |
dataPrecision
|
protected static int |
DCTSIZE
|
protected static int |
DCTSIZE2
|
protected JPEGSample |
downsample
|
static java.lang.String |
FORMAT_CODE
|
static java.lang.String |
FORMAT_COMPLETE_NAME
|
static java.lang.String |
FORMAT_EXTENSION
|
protected int |
height
|
protected int |
inColorSpace
|
protected int |
inputComponents
|
protected static int |
JBUF_CRANK_DEST
|
protected static int |
JBUF_PASS_THRU
Operating modes for buffer controllers |
protected static int |
JBUF_SAVE_AND_PASS
|
protected static int |
JBUF_SAVE_SOURCE
Remaining modes require a full-image buffer to have been created |
protected static int |
JPEG_MAX_DIMENSION
|
protected int |
jpegColorSpace
|
protected fi.faidon.jis.JPEGMainController |
main
|
protected fi.faidon.jis.JPEGMaster |
master
|
protected static int |
MAX_COMPONENTS
|
protected static int |
MAX_COMPS_IN_SCAN
|
protected static int |
MAX_SAMP_FACTOR
|
protected int |
maxHsampFactor
|
protected int |
maxVsampFactor
|
protected int[] |
MCUmembership
|
protected int |
MCURowsInScan
|
protected int |
MCUsPerRow
|
protected int |
numComponents
|
protected int |
numScans
|
protected boolean |
optimizeCoding
|
protected JPEGPrepController |
prep
|
protected boolean |
progressiveMode
|
protected boolean |
rawDataIn
|
protected int |
restartInRows
|
protected int |
restartInterval
|
protected java.lang.Object |
scanInfo
|
protected int |
Se
|
protected int |
Ss
|
protected int |
totaliMCURows
|
protected int |
width
|
Fields inherited from class fi.faidon.jis.ImageSaverInterface |
saveImage, savePath |
Fields inherited from interface java.awt.image.ImageConsumer |
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
Constructor Summary | |
JPEGImageSaver()
|
Method Summary | |
int |
checkSave()
Return ImageObserver constants for indicating the state of the image saving. |
void |
emit2Bytes(int value)
Emit a numeric value as two bytes. |
void |
emitByte(int value)
Emit a numeric value as a byte. |
java.lang.String |
getFormatCode()
ImageSaverInterface method implementations. |
java.lang.String |
getFormatExtension()
|
java.lang.String |
getFormatString()
|
void |
imageComplete(int status)
Get imageComplete message so that we can close the output file. |
static void |
jcopySampleRows(int[][] inputArray,
int sourceRow,
int[][] outputArray,
int destRow,
int numRows,
int numCols)
Copy some rows of samples from one place to another. |
boolean |
saveIt()
Save the image. |
void |
setColorModel(java.awt.image.ColorModel model)
If the default color model is an indexed color model and if it has a transparency pixel, then we put in an alpha channel. |
void |
setDimensions(int w,
int h)
|
void |
setHints(int hintflags)
|
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize)
Write the pixels into the file as RGB data. |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize)
|
void |
setProperties(java.util.Hashtable props)
ImageConsumer method implementations. |
void |
writeFrameHeader()
Write frame header. |
void |
writeScanHeader()
Write scan header. |
Methods inherited from class fi.faidon.jis.ImageSaverInterface |
getSaveImage, getSavePath, setSaveImage, setSavePath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String FORMAT_CODE
public static final java.lang.String FORMAT_COMPLETE_NAME
public static final java.lang.String FORMAT_EXTENSION
protected static final int DCTSIZE
protected static final int DCTSIZE2
protected static final int MAX_SAMP_FACTOR
protected static final int MAX_COMPONENTS
protected static final int BITS_IN_JSAMPLE
protected static final int JPEG_MAX_DIMENSION
protected static final int MAX_COMPS_IN_SCAN
protected static final int C_MAX_BLOCKS_IN_MCU
protected static final int JBUF_PASS_THRU
protected static final int JBUF_SAVE_SOURCE
protected static final int JBUF_CRANK_DEST
protected static final int JBUF_SAVE_AND_PASS
protected int width
protected int height
protected int inputComponents
protected int inColorSpace
protected int numComponents
protected int dataPrecision
protected java.util.Vector compInfoVector
protected java.util.Vector curCompInfo
protected int jpegColorSpace
protected boolean optimizeCoding
protected boolean rawDataIn
protected boolean arithCode
protected boolean CCIR601sampling
protected boolean progressiveMode
protected int numScans
protected java.lang.Object scanInfo
protected int compsInScan
protected int maxHsampFactor
protected int maxVsampFactor
protected int totaliMCURows
protected int MCUsPerRow
protected int MCURowsInScan
protected int blocksInMCU
protected int[] MCUmembership
protected int Ss
protected int Se
protected int Ah
protected int Al
protected int restartInterval
protected int restartInRows
protected JPEGColor cconvert
protected JPEGSample downsample
protected fi.faidon.jis.JPEGMaster master
protected JPEGPrepController prep
protected fi.faidon.jis.JPEGMainController main
Constructor Detail |
public JPEGImageSaver()
Method Detail |
public java.lang.String getFormatCode()
getFormatCode
in class ImageSaverInterface
public java.lang.String getFormatString()
getFormatString
in class ImageSaverInterface
public java.lang.String getFormatExtension()
getFormatExtension
in class ImageSaverInterface
public boolean saveIt()
saveIt
in class ImageSaverInterface
public int checkSave()
checkSave
in class ImageSaverInterface
public void setProperties(java.util.Hashtable props)
setProperties
in interface java.awt.image.ImageConsumer
public void setHints(int hintflags)
setHints
in interface java.awt.image.ImageConsumer
public void setColorModel(java.awt.image.ColorModel model)
setColorModel
in interface java.awt.image.ImageConsumer
public void setDimensions(int w, int h)
setDimensions
in interface java.awt.image.ImageConsumer
public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int off, int scansize)
setPixels
in interface java.awt.image.ImageConsumer
ImageConsumer.
public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int off, int scansize)
setPixels
in interface java.awt.image.ImageConsumer
ImageConsumer.
public void imageComplete(int status)
imageComplete
in interface java.awt.image.ImageConsumer
ImageConsumer.
public void writeFrameHeader()
public void writeScanHeader()
public void emit2Bytes(int value)
public void emitByte(int value)
public static void jcopySampleRows(int[][] inputArray, int sourceRow, int[][] outputArray, int destRow, int numRows, int numCols)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |