Package javax.media.jai

Examples of javax.media.jai.PackedImageData


                               Rectangle destRect) {

        Raster source = sources[0];

  PixelAccessor pa = new PixelAccessor(source.getSampleModel(), null);
  PackedImageData srcIm =
            pa.getPackedPixels(source, source.getBounds(), false, false);

  pa = new PixelAccessor(dest.getSampleModel(), null);
  PackedImageData dstIm =
            pa.getPackedPixels(dest, destRect, true, false);

        // src data under kernel, packed in int.
  int[] srcUK = new int [kwPack * kh];

 
View Full Code Here


/*     */   }
/*     */
/*     */   private void byteLoop(Raster source, WritableRaster dest, Rectangle destRect)
/*     */   {
/* 433 */     PixelAccessor pa = new PixelAccessor(source.getSampleModel(), null);
/* 434 */     PackedImageData pid = pa.getPackedPixels(source, source.getBounds(), false, false);
/*     */
/* 436 */     byte[] sourceData = pid.data;
/* 437 */     int sourceDBOffset = pid.offset;
/* 438 */     int dx = destRect.x; int dy = destRect.y;
/* 439 */     int dwi = destRect.width; int dhi = destRect.height;
View Full Code Here

/*     */   protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
/*     */   {
/* 256 */     Raster source = sources[0];
/*     */
/* 258 */     PixelAccessor pa = new PixelAccessor(source.getSampleModel(), null);
/* 259 */     PackedImageData srcIm = pa.getPackedPixels(source, source.getBounds(), false, false);
/*     */
/* 262 */     pa = new PixelAccessor(dest.getSampleModel(), null);
/* 263 */     PackedImageData dstIm = pa.getPackedPixels(dest, destRect, true, false);
/*     */
/* 267 */     int[] srcUK = new int[this.kwPack * this.kh];
/*     */
/* 271 */     int dheight = destRect.height;
/* 272 */     int dwidth = destRect.width;
View Full Code Here

/*     */   protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)
/*     */   {
/* 235 */     Raster source = sources[0];
/*     */
/* 237 */     PixelAccessor pa = new PixelAccessor(source.getSampleModel(), null);
/* 238 */     PackedImageData srcIm = pa.getPackedPixels(source, source.getBounds(), false, false);
/*     */
/* 241 */     pa = new PixelAccessor(dest.getSampleModel(), null);
/* 242 */     PackedImageData dstIm = pa.getPackedPixels(dest, destRect, true, false);
/*     */
/* 246 */     int[] srcUK = new int[this.kwPack * this.kh];
/*     */
/* 250 */     int dheight = destRect.height;
/* 251 */     int dwidth = destRect.width;
View Full Code Here

/* 175 */     short thresholdI = (short)(int)Math.ceil(this.threshold);
/*     */
/* 181 */     Rectangle srcRect = mapDestRect(destRect, 0);
/*     */
/* 183 */     PixelAccessor pa = new PixelAccessor(dest.getSampleModel(), null);
/* 184 */     PackedImageData pid = pa.getPackedPixels(dest, destRect, true, false);
/* 185 */     int offset = pid.offset;
/* 186 */     PixelAccessor srcPa = new PixelAccessor(source.getSampleModel(), null);
/*     */
/* 188 */     UnpackedImageData srcImD = srcPa.getPixels(source, srcRect, 0, false);
/* 189 */     int srcOffset = srcImD.bandOffsets[0];
View Full Code Here

/* 222 */     short thresholdS = (short)(int)Math.ceil(this.threshold);
/*     */
/* 228 */     Rectangle srcRect = mapDestRect(destRect, 0);
/*     */
/* 230 */     PixelAccessor pa = new PixelAccessor(dest.getSampleModel(), null);
/* 231 */     PackedImageData pid = pa.getPackedPixels(dest, destRect, true, false);
/* 232 */     int offset = pid.offset;
/* 233 */     PixelAccessor srcPa = new PixelAccessor(source.getSampleModel(), null);
/*     */
/* 235 */     UnpackedImageData srcImD = srcPa.getPixels(source, srcRect, 2, false);
/* 236 */     int srcOffset = srcImD.bandOffsets[0];
View Full Code Here

/* 269 */     int thresholdI = (int)Math.ceil(this.threshold);
/*     */
/* 275 */     Rectangle srcRect = mapDestRect(destRect, 0);
/*     */
/* 277 */     PixelAccessor pa = new PixelAccessor(dest.getSampleModel(), null);
/* 278 */     PackedImageData pid = pa.getPackedPixels(dest, destRect, true, false);
/* 279 */     int offset = pid.offset;
/* 280 */     PixelAccessor srcPa = new PixelAccessor(source.getSampleModel(), null);
/*     */
/* 282 */     UnpackedImageData srcImD = srcPa.getPixels(source, srcRect, 1, false);
/* 283 */     int srcOffset = srcImD.bandOffsets[0];
View Full Code Here

/* 318 */     int thresholdI = (int)Math.ceil(this.threshold);
/*     */
/* 324 */     Rectangle srcRect = mapDestRect(destRect, 0);
/*     */
/* 326 */     PixelAccessor pa = new PixelAccessor(dest.getSampleModel(), null);
/* 327 */     PackedImageData pid = pa.getPackedPixels(dest, destRect, true, false);
/* 328 */     int offset = pid.offset;
/* 329 */     PixelAccessor srcPa = new PixelAccessor(source.getSampleModel(), null);
/*     */
/* 331 */     UnpackedImageData srcImD = srcPa.getPixels(source, srcRect, 3, false);
/* 332 */     int srcOffset = srcImD.bandOffsets[0];
View Full Code Here

/*     */   private void floatLoop(Raster source, WritableRaster dest, Rectangle destRect)
/*     */   {
/* 356 */     Rectangle srcRect = mapDestRect(destRect, 0);
/*     */
/* 358 */     PixelAccessor pa = new PixelAccessor(dest.getSampleModel(), null);
/* 359 */     PackedImageData pid = pa.getPackedPixels(dest, destRect, true, false);
/* 360 */     int offset = pid.offset;
/* 361 */     PixelAccessor srcPa = new PixelAccessor(source.getSampleModel(), null);
/*     */
/* 363 */     UnpackedImageData srcImD = srcPa.getPixels(source, srcRect, 4, false);
/* 364 */     int srcOffset = srcImD.bandOffsets[0];
View Full Code Here

/*     */   private void doubleLoop(Raster source, WritableRaster dest, Rectangle destRect)
/*     */   {
/* 387 */     Rectangle srcRect = mapDestRect(destRect, 0);
/*     */
/* 389 */     PixelAccessor pa = new PixelAccessor(dest.getSampleModel(), null);
/* 390 */     PackedImageData pid = pa.getPackedPixels(dest, destRect, true, false);
/* 391 */     int offset = pid.offset;
/* 392 */     PixelAccessor srcPa = new PixelAccessor(source.getSampleModel(), null);
/*     */
/* 394 */     UnpackedImageData srcImD = srcPa.getPixels(source, srcRect, 5, false);
/* 395 */     int srcOffset = srcImD.bandOffsets[0];
View Full Code Here

TOP

Related Classes of javax.media.jai.PackedImageData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.