Lines Matching defs:data

41  *  This class represents image data which is stored such that each sample
42 * of a pixel occupies one data element of the DataBuffer. It stores the
43 * N samples which make up a pixel in N separate data array elements.
45 * Accessor methods are provided so that image data can be manipulated
48 * Pixel stride is the number of data array elements between two samples
50 * of data array elements between a given sample and the corresponding sample
52 * of data array elements from the first data array element of the bank
55 * data for which each sample is an unsigned integral number which can be
58 * respectively), data for which each sample is a signed integral number
60 * or data for which each sample is a signed float or double quantity
78 /** Offsets for all bands in data array elements. */
81 /** Index for each bank storing a band of image data. */
97 * Line stride (in data array elements) of the region of image
98 * data described by this ComponentSampleModel.
102 /** Pixel stride (in data array elements) of the region of image
103 * data described by this ComponentSampleModel.
117 * @param dataType the data type for storing samples
119 * image data described
121 * image data described
123 * data described
125 * data described
139 * one of the supported data types
178 * @param dataType the data type for storing samples
180 * image data described
182 * image data described
184 * data described
186 * data described
201 * one of the supported data types
250 * Returns the size of the data buffer (in data elements) needed
251 * for a data buffer that matches this ComponentSampleModel.
293 * number of bands, storage data type, interleaving scheme, and
403 * The <code>DataBuffer</code> object's data type, number of banks,
405 * @return a <code>DataBuffer</code> whose data type, number of banks
441 * <code>data</code> with a <code>ComponentSampleModel</code>
444 * data.getElem(csm.getOffset(x, y));
457 * <code>DataBuffer</code> <code>data</code>
460 * data.getElem(csm.getOffset(x, y, b));
524 * Returns the number of data elements needed to transfer a pixel
531 * @return the number of data elements needed to transfer a pixel with
542 * Returns data for a single pixel in a primitive array of type
544 * this is the same as the data type, and samples are returned
547 * is created automatically and is the right primitive data type.
549 * The following code illustrates transferring data for one pixel from
575 * the pixel data.
580 * in which to return the pixel data
581 * @param data the <code>DataBuffer</code> containing the image data
582 * @return the data of the specified pixel
585 * @throws NullPointerException if data is null.
589 public Object getDataElements(int x, int y, Object obj, DataBuffer data) {
611 bdata[i] = (byte)data.getElem(bankIndices[i],
629 sdata[i] = (short)data.getElem(bankIndices[i],
646 idata[i] = data.getElem(bankIndices[i],
663 fdata[i] = data.getElemFloat(bankIndices[i],
680 ddata[i] = data.getElemDouble(bankIndices[i],
699 * @param data The DataBuffer containing the image data
703 * @throws NullPointerException if data is null.
707 public int[] getPixel(int x, int y, int iArray[], DataBuffer data) {
720 pixels[i] = data.getElem(bankIndices[i],
736 * @param data The DataBuffer containing the image data
741 int iArray[], DataBuffer data) {
765 data.getElem(bankIndices[k], pixelOffset + bandOffsets[k]);
782 * @param data the <code>DataBuffer</code> containing the image data
786 public int getSample(int x, int y, int b, DataBuffer data) {
792 int sample = data.getElem(bankIndices[b],
806 * @param data The DataBuffer containing the image data
810 public float getSampleFloat(int x, int y, int b, DataBuffer data) {
817 float sample = data.getElemFloat(bankIndices[b],
831 * @param data The DataBuffer containing the image data
835 public double getSampleDouble(int x, int y, int b, DataBuffer data) {
842 double sample = data.getElemDouble(bankIndices[b],
850 * of pixels in an int array, one sample per data array element.
860 * @param data the <code>DataBuffer</code> containing the image data
865 int iArray[], DataBuffer data) {
883 samples[srcOffset++] = data.getElem(bankIndices[b],
893 * Sets the data for a single pixel in the specified
896 * this is the same as the data type, and samples are transferred
899 * The following code illustrates transferring data for one pixel from
922 * enough to hold the pixel data.
925 * @param obj a primitive array containing pixel data
926 * @param data the DataBuffer containing the image data
929 public void setDataElements(int x, int y, Object obj, DataBuffer data) {
946 data.setElem(bankIndices[i], pixelOffset + bandOffsets[i],
957 data.setElem(bankIndices[i], pixelOffset + bandOffsets[i],
967 data.setElem(bankIndices[i],
977 data.setElemFloat(bankIndices[i],
987 data.setElemDouble(bankIndices[i],
1003 * @param data The DataBuffer containing the image data
1006 public void setPixel(int x, int y, int iArray[], DataBuffer data) {
1013 data.setElem(bankIndices[i],
1028 * @param data The DataBuffer containing the image data
1032 int iArray[], DataBuffer data) {
1050 data.setElem(bankIndices[k], pixelOffset + bandOffsets[k],
1068 * @param data the DataBuffer containing the image data
1072 DataBuffer data) {
1078 data.setElem(bankIndices[b],
1091 * @param data The DataBuffer containing the image data
1096 DataBuffer data) {
1102 data.setElemFloat(bankIndices[b],
1116 * @param data The DataBuffer containing the image data
1121 DataBuffer data) {
1127 data.setElemDouble(bankIndices[b],
1134 * of pixels from an int array containing one sample per data array element.
1143 * @param data The DataBuffer containing the image data
1147 int iArray[], DataBuffer data) {
1159 data.setElem(bankIndices[b], sampleOffset, iArray[srcOffset++]);