/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 6570475
* @summary Test verifies that palette comparison procedure of
* ImageRepresentation class does not produce extra transparent
* pixels.
*
* @run main LUTCompareTest
*/
while(!o.isImageReady()) {
synchronized(lock) {
try {
} catch (InterruptedException e) {
}
}
}
}
boolean isReady = false;
}
int x, int y, int w, int h) {
synchronized(this) {
if (isReady) {
synchronized(lock) {
}
}
}
return !isReady;
} else {
return true;
}
}
public synchronized boolean isImageReady() {
return isReady;
}
g.dispose();
/* Buffered image should be the same as the last frame
* of animated sequence (which is filled with blue).
* Any other color indicates the problem.
*/
if (rgb != 0xff0000ff) {
throw new RuntimeException("Test FAILED!");
}
}
private static int w = 100;
private static int h = 100;
/* Create test image with two frames:
* 1) with {red, red} palette
* 2) with {blue, red } palette
*/
}
int[] samples = new int[w * h];
return img;
}
if (size < 0) {
} else if (size < 3) {
return 1;
} else if (size < 5) {
return 2;
} else {
}
}
"WIDTH", "HEIGHT", "PROPERTIES", "SOMEBITS",
"FRAMEBITS", "ALLBITS", "ERROR", "ABORT"
};
int count = 0;
while (info != 0) {
//System.out.println("info = " + info);
res += " ";
}
}
count ++;
}
return res;
}
}