|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.faidon.jis.JPEGPrepController
This file contains the compression preprocessing controller. This controller manages the color conversion, downsampling, and edge expansion steps. Most of the complexity here is associated with buffering input rows as required by the downsampler. See the comments at the head of jcsample.c for the downsampler's needs.
of the IJG JPEG library Jpeg-6a.
Constructor Summary | |
JPEGPrepController(JPEGImageSaver cinfo,
boolean needFullBuffer)
Initialize preprocessing controller. |
Method Summary | |
void |
expandBottomEdge(int[][] imageData,
int numCols,
int inputRows,
int outputRows)
Expand an image vertically from height input_rows to height output_rows, by duplicating the bottom row. |
void |
preProcessData(JPEGImageSaver cinfo,
int[] inputBuf,
int[] rowCtrs,
int inRowsAvail,
java.util.Vector outputBuf,
int outRowGroupsAvail,
int off,
int scansize)
Process some data in the simple no-context case. |
void |
startPass(JPEGImageSaver cinfo,
int passMode)
Replaces start_pass function pointer in C implementation. |
void |
startPassPrep(JPEGImageSaver cinfo,
int passMode)
Initialize for a processing pass. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JPEGPrepController(JPEGImageSaver cinfo, boolean needFullBuffer) throws java.io.IOException
Method Detail |
public void startPass(JPEGImageSaver cinfo, int passMode) throws java.io.IOException
java.io.IOException
public void startPassPrep(JPEGImageSaver cinfo, int passMode) throws java.io.IOException
java.io.IOException
public void expandBottomEdge(int[][] imageData, int numCols, int inputRows, int outputRows) throws java.io.IOException
java.io.IOException
public void preProcessData(JPEGImageSaver cinfo, int[] inputBuf, int[] rowCtrs, int inRowsAvail, java.util.Vector outputBuf, int outRowGroupsAvail, int off, int scansize) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |