| Modifier and Type | Method and Description |
|---|---|
| public void | convert(T
the nio buffer containing the source data srcbuf, int the absolute location in the buffer of the first source pixel data srcoff, int number of buffer elements between rows of data in the source srcscanelems, U the nio buffer containing the destination data dstbuf, int the absolute location in the buffer of the first destination pixel data dstoff, int number of buffer elements between rows of data in the destination dstscanelems, int the number of pixels to process across before moving to the next row w, int the number of rows of pixels to process h)Copies a rectangular region of data from the source buffer to the destination buffer using the following relationship:
for each xy : 0 <= x,y < w,h {
int srcpos = y * srcscanelems + x * srcelemsperpixel + srcoff;
int dstpos = y * dstscanelems + x * dstelemsperpixel + dstoff;
for each j : 0 <= j < srcelemsperpixel {
load data from srcbuf.get(srcpos + j);
}
convert data to destination pixel format
for each k : 0 <= k < dstelemsperpixel {
store data into dstbuf.put(dstpos + k, pixel data);
}
}
|
| public PixelGetter | |
| public PixelSetter |
| convert | back to summary |
|---|---|
| public void convert(T srcbuf, int srcoff, int srcscanelems, U dstbuf, int dstoff, int dstscanelems, int w, int h) Copies a rectangular region of data from the source buffer to the destination buffer using the following relationship:
for each xy : 0 <= x,y < w,h {
int srcpos = y * srcscanelems + x * srcelemsperpixel + srcoff;
int dstpos = y * dstscanelems + x * dstelemsperpixel + dstoff;
for each j : 0 <= j < srcelemsperpixel {
load data from srcbuf.get(srcpos + j);
}
convert data to destination pixel format
for each k : 0 <= k < dstelemsperpixel {
store data into dstbuf.put(dstpos + k, pixel data);
}
}
| |
| getGetter | back to summary |
|---|---|
| public PixelGetter | |
| getSetter | back to summary |
|---|---|
| public PixelSetter | |