Lines Matching defs:data

39  *  This class represents image data which is stored in a band interleaved
41 * which each sample of a pixel occupies one data element of the DataBuffer.
43 * implementation for accessing band interleaved image data than is provided
45 * with images which store sample data for each band in a different bank of the
46 * DataBuffer. Accessor methods are provided so that image data can be
48 * data array elements between two samples for the same band on the same
50 * Scanline stride is the number of data array elements between
53 * of data array elements from the first data array element of the bank
56 * Bank indices denote the correspondence between a bank of the data buffer
57 * and a band of image data. This class supports
72 * The pixel stride will be one data element. The scanline stride
75 * @param dataType The data type for storing samples.
77 * image data described.
79 * data described.
80 * @param numBands The number of bands for the image data.
82 * one of the supported data types
94 * stride will be one data element.
95 * @param dataType The data type for storing samples.
97 * image data described.
99 * image data described.
100 * @param scanlineStride The line stride of the of the image data.
104 * one of the supported data types
118 * number of bands, storage data type, and bank indices
131 * one of the supported data types
158 * one of the supported data types
180 * The DataBuffer's data type, number of banks, and size
218 * Returns data for a single pixel in a primitive array of type
220 * as the data type, and samples will be returned one per array
223 * automatically and will be of the right primitive data type.
225 * The following code illustrates transferring data for one pixel from
247 * the pixel data.
251 * the pixel data.
252 * @param data The DataBuffer containing the image data.
253 * @return the data for the specified pixel.
256 public Object getDataElements(int x, int y, Object obj, DataBuffer data) {
278 bdata[i] = (byte)data.getElem(bankIndices[i],
297 sdata[i] = (short)data.getElem(bankIndices[i],
315 idata[i] = data.getElem(bankIndices[i],
333 fdata[i] = data.getElemFloat(bankIndices[i],
351 ddata[i] = data.getElemDouble(bankIndices[i],
369 * @param data The DataBuffer containing the image data
373 public int[] getPixel(int x, int y, int iArray[], DataBuffer data) {
389 pixels[i] = data.getElem(bankIndices[i],
397 * an int array, one sample per data array element.
405 * @param data The DataBuffer containing the image data
410 int iArray[], DataBuffer data) {
436 pixels[srcOffset] = data.getElem(bank, pixelOffset++);
453 * @param data The DataBuffer containing the image data
457 public int getSample(int x, int y, int b, DataBuffer data) {
464 data.getElem(bankIndices[b],
477 * @param data The DataBuffer containing the image data
481 public float getSampleFloat(int x, int y, int b, DataBuffer data) {
488 float sample = data.getElemFloat(bankIndices[b],
501 * @param data The DataBuffer containing the image data
505 public double getSampleDouble(int x, int y, int b, DataBuffer data) {
512 double sample = data.getElemDouble(bankIndices[b],
519 * of pixels in an int array, one sample per data array element.
528 * @param data The DataBuffer containing the image data
534 int iArray[], DataBuffer data) {
554 samples[srcOffset++] = data.getElem(bank, sampleOffset++);
562 * Sets the data for a single pixel in the specified DataBuffer from a
564 * this will be the same as the data type, and samples are transferred
567 * The following code illustrates transferring data for one pixel from
588 * not in bounds, or if obj is not large enough to hold the pixel data.
593 * @param data The DataBuffer containing the image data
596 public void setDataElements(int x, int y, Object obj, DataBuffer data) {
612 data.setElem(bankIndices[i], pixelOffset + bandOffsets[i],
623 data.setElem(bankIndices[i], pixelOffset + bandOffsets[i],
633 data.setElem(bankIndices[i], pixelOffset + bandOffsets[i],
643 data.setElemFloat(bankIndices[i], pixelOffset + bandOffsets[i],
653 data.setElemDouble(bankIndices[i], pixelOffset + bandOffsets[i],
668 * @param data The DataBuffer containing the image data
671 public void setPixel(int x, int y, int iArray[], DataBuffer data) {
678 data.setElem(bankIndices[i], pixelOffset + bandOffsets[i],
693 * @param data The DataBuffer containing the image data
697 int iArray[], DataBuffer data) {
716 data.setElem(bank, pixelOffset++, iArray[srcOffset]);
733 * @param data The DataBuffer containing the image data
737 DataBuffer data) {
743 data.setElem(bankIndices[b],
756 * @param data The DataBuffer containing the image data
761 DataBuffer data) {
767 data.setElemFloat(bankIndices[b],
780 * @param data The DataBuffer containing the image data
785 DataBuffer data) {
791 data.setElemDouble(bankIndices[b],
797 * of pixels from an int array containing one sample per data array element.
806 * @param data The DataBuffer containing the image data
810 int iArray[], DataBuffer data) {
823 data.setElem(bank, sampleOffset++, iArray[srcOffset++]);