Java Code Examples for com.sun.imageio.plugins.common.ReaderUtil#computeUpdatedPixels()
The following examples show how to use
com.sun.imageio.plugins.common.ReaderUtil#computeUpdatedPixels() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GIFImageReader.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 2
Source File: GIFImageReader.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 3
Source File: GIFImageReader.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 4
Source File: GIFImageReader.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 5
Source File: GIFImageReader.java From JDKSourceCode1.8 with MIT License | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 6
Source File: GIFImageReader.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 7
Source File: GIFImageReader.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 8
Source File: GIFImageReader.java From Bytecoder with Apache License 2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 9
Source File: GIFImageReader.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 10
Source File: GIFImageReader.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 11
Source File: GIFImageReader.java From hottub with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 12
Source File: GIFImageReader.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 13
Source File: GIFImageReader.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 14
Source File: GIFImageReader.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 15
Source File: GIFImageReader.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }
Example 16
Source File: GIFImageReader.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
private void startPass(int pass) { if (updateListeners == null || !imageMetadata.interlaceFlag) { return; } int y = interlaceOffset[interlacePass]; int yStep = interlaceIncrement[interlacePass]; int[] vals = ReaderUtil. computeUpdatedPixels(sourceRegion, destinationOffset, destinationRegion.x, destinationRegion.y, destinationRegion.x + destinationRegion.width - 1, destinationRegion.y + destinationRegion.height - 1, sourceXSubsampling, sourceYSubsampling, 0, y, destinationRegion.width, (destinationRegion.height + yStep - 1)/yStep, 1, yStep); // Initialized updateMinY and updateYStep this.updateMinY = vals[1]; this.updateYStep = vals[5]; // Inform IIOReadUpdateListeners of new pass int[] bands = { 0 }; processPassStarted(theImage, interlacePass, sourceMinProgressivePass, sourceMaxProgressivePass, 0, updateMinY, 1, updateYStep, bands); }