/* */ }
/* */ else
/* */ {
/* 1146 */ int srcSampleType = accessor.sampleType == -1 ? 0 : accessor.sampleType;
/* */
/* 1148 */ UnpackedImageData uid = accessor.getPixels(raster, rect, srcSampleType, false);
/* */
/* 1150 */ rect = uid.rect;
/* 1151 */ int lineStride = uid.lineStride;
/* 1152 */ int pixelStride = uid.pixelStride;
/* */
/* 1154 */ switch (uid.type) {
/* */ case 0:
/* 1156 */ byte[][] bdata = uid.getByteData();
/* 1157 */ for (int b = 0; b < accessor.numBands; b++) {
/* 1158 */ byte value = (byte)(int)backgroundValues[b];
/* 1159 */ byte[] bd = bdata[b];
/* 1160 */ int lastLine = uid.bandOffsets[b] + rect.height * lineStride;
/* */
/* 1162 */ for (int lo = uid.bandOffsets[b]; lo < lastLine; lo += lineStride) {
/* 1163 */ int lastPixel = lo + rect.width * pixelStride;
/* 1164 */ for (int po = lo; po < lastPixel; po += pixelStride) {
/* 1165 */ bd[po] = value;
/* */ }
/* */ }
/* */ }
/* 1169 */ break;
/* */ case 1:
/* */ case 2:
/* 1172 */ short[][] sdata = uid.getShortData();
/* 1173 */ for (int b = 0; b < accessor.numBands; b++) {
/* 1174 */ short value = (short)(int)backgroundValues[b];
/* 1175 */ short[] sd = sdata[b];
/* 1176 */ int lastLine = uid.bandOffsets[b] + rect.height * lineStride;
/* */
/* 1178 */ for (int lo = uid.bandOffsets[b]; lo < lastLine; lo += lineStride) {
/* 1179 */ int lastPixel = lo + rect.width * pixelStride;
/* 1180 */ for (int po = lo; po < lastPixel; po += pixelStride) {
/* 1181 */ sd[po] = value;
/* */ }
/* */ }
/* */ }
/* 1185 */ break;
/* */ case 3:
/* 1187 */ int[][] idata = uid.getIntData();
/* 1188 */ for (int b = 0; b < accessor.numBands; b++) {
/* 1189 */ int value = (int)backgroundValues[b];
/* 1190 */ int[] id = idata[b];
/* 1191 */ int lastLine = uid.bandOffsets[b] + rect.height * lineStride;
/* */
/* 1193 */ for (int lo = uid.bandOffsets[b]; lo < lastLine; lo += lineStride) {
/* 1194 */ int lastPixel = lo + rect.width * pixelStride;
/* 1195 */ for (int po = lo; po < lastPixel; po += pixelStride) {
/* 1196 */ id[po] = value;
/* */ }
/* */ }
/* */ }
/* 1200 */ break;
/* */ case 4:
/* 1202 */ float[][] fdata = uid.getFloatData();
/* 1203 */ for (int b = 0; b < accessor.numBands; b++) {
/* 1204 */ float value = (float)backgroundValues[b];
/* 1205 */ float[] fd = fdata[b];
/* 1206 */ int lastLine = uid.bandOffsets[b] + rect.height * lineStride;
/* */
/* 1208 */ for (int lo = uid.bandOffsets[b]; lo < lastLine; lo += lineStride) {
/* 1209 */ int lastPixel = lo + rect.width * pixelStride;
/* 1210 */ for (int po = lo; po < lastPixel; po += pixelStride) {
/* 1211 */ fd[po] = value;
/* */ }
/* */ }
/* */ }
/* 1215 */ break;
/* */ case 5:
/* 1217 */ double[][] ddata = uid.getDoubleData();
/* 1218 */ for (int b = 0; b < accessor.numBands; b++) {
/* 1219 */ double value = backgroundValues[b];
/* 1220 */ double[] dd = ddata[b];
/* 1221 */ int lastLine = uid.bandOffsets[b] + rect.height * lineStride;
/* */