Crossfire JXClient, Trunk
|
Public Member Functions | |
int[] | getScaledData () |
RawScale8d (final int @NotNull[] imageData, final int dataWidth, final int dataHeight) | |
Private Member Functions | |
int | getSourcePixel (final int x, final int y) |
void | process (final int x, final int y) |
void | setDestPixel (final int x, final int y, final int p) |
Private Attributes | |
final int[] | dstImage |
final int | height |
final Map< Integer, Integer > | pixels = new HashMap<>() |
final int[] | srcImage |
final int | width |
Scales down a raw image to an eighth in both dimensions.
Definition at line 34 of file RawScale8d.java.
com.realtime.crossfire.jxclient.faces.RawScale8d.RawScale8d | ( | final int @NotNull[] | imageData, |
final int | dataWidth, | ||
final int | dataHeight | ||
) |
Creates a new instance.
imageData | the source image data to process |
dataWidth | the width of the source image |
dataHeight | the height of the source image |
Definition at line 68 of file RawScale8d.java.
References com.realtime.crossfire.jxclient.faces.RawScale8d.dstImage, com.realtime.crossfire.jxclient.faces.RawScale8d.height, com.realtime.crossfire.jxclient.faces.RawScale8d.srcImage, and com.realtime.crossfire.jxclient.faces.RawScale8d.width.
int [] com.realtime.crossfire.jxclient.faces.RawScale8d.getScaledData | ( | ) |
Returns the scale image data. Note this is the method that does the work, so it might take some time to process.
Definition at line 132 of file RawScale8d.java.
References com.realtime.crossfire.jxclient.faces.RawScale8d.dstImage, com.realtime.crossfire.jxclient.faces.RawScale8d.height, com.realtime.crossfire.jxclient.faces.RawScale8d.process(), and com.realtime.crossfire.jxclient.faces.RawScale8d.width.
Referenced by com.realtime.crossfire.jxclient.faces.ImageScale8d.getScaledImage().
|
private |
Gets a pixel from the source image.
x | the x location of the pixel to retrieve |
y | the y location of the pixel to retrieve |
Definition at line 92 of file RawScale8d.java.
References com.realtime.crossfire.jxclient.faces.RawScale8d.srcImage, and com.realtime.crossfire.jxclient.faces.RawScale8d.width.
Referenced by com.realtime.crossfire.jxclient.faces.RawScale8d.process().
|
private |
Processes a specific destination pixel.
x | the x location in the source image of the pixel to process |
y | the y location in the source image of the pixel to process |
Definition at line 101 of file RawScale8d.java.
References com.realtime.crossfire.jxclient.faces.RawScale8d.getSourcePixel(), com.realtime.crossfire.jxclient.faces.RawScale8d.pixels, and com.realtime.crossfire.jxclient.faces.RawScale8d.setDestPixel().
Referenced by com.realtime.crossfire.jxclient.faces.RawScale8d.getScaledData().
|
private |
Sets a pixel in the destination image data.
x | the x location of the pixel to set |
y | the y location of the pixel to set |
p | the value of the pixel to set |
Definition at line 82 of file RawScale8d.java.
References com.realtime.crossfire.jxclient.faces.RawScale8d.dstImage, and com.realtime.crossfire.jxclient.faces.RawScale8d.width.
Referenced by com.realtime.crossfire.jxclient.faces.RawScale8d.process().
|
private |
The destination image data.
Definition at line 44 of file RawScale8d.java.
Referenced by com.realtime.crossfire.jxclient.faces.RawScale8d.getScaledData(), com.realtime.crossfire.jxclient.faces.RawScale8d.RawScale8d(), and com.realtime.crossfire.jxclient.faces.RawScale8d.setDestPixel().
|
private |
The height of the source image.
Definition at line 54 of file RawScale8d.java.
Referenced by com.realtime.crossfire.jxclient.faces.RawScale8d.getScaledData(), and com.realtime.crossfire.jxclient.faces.RawScale8d.RawScale8d().
|
private |
Maps pixel value to number of pixels.
Definition at line 60 of file RawScale8d.java.
Referenced by com.realtime.crossfire.jxclient.faces.RawScale8d.process().
|
private |
The source image data.
Definition at line 39 of file RawScale8d.java.
Referenced by com.realtime.crossfire.jxclient.faces.RawScale8d.getSourcePixel(), and com.realtime.crossfire.jxclient.faces.RawScale8d.RawScale8d().
|
private |
The width of the source image.
Definition at line 49 of file RawScale8d.java.
Referenced by com.realtime.crossfire.jxclient.faces.RawScale8d.getScaledData(), com.realtime.crossfire.jxclient.faces.RawScale8d.getSourcePixel(), com.realtime.crossfire.jxclient.faces.RawScale8d.RawScale8d(), and com.realtime.crossfire.jxclient.faces.RawScale8d.setDestPixel().