/hg/gfx-test: Three new affine identity transformations added, a...
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Tue Jul 23 02:17:26 PDT 2013
changeset 90586e9152a1 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=90586e9152a1
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Tue Jul 23 11:21:04 2013 +0200
Three new affine identity transformations added, also three new tests
addded into BitBltAffineIdentityTransformOp test suite.
diffstat:
ChangeLog | 6 +
src/org/gfxtest/testsuites/BitBltAffineIdentityTransformOp.java | 59 ++++++++++
2 files changed, 65 insertions(+), 0 deletions(-)
diffs (100 lines):
diff -r 865e71729bdf -r 90586e9152a1 ChangeLog
--- a/ChangeLog Mon Jul 22 10:04:10 2013 +0200
+++ b/ChangeLog Tue Jul 23 11:21:04 2013 +0200
@@ -1,3 +1,9 @@
+2013-07-23 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/testsuites/BitBltAffineIdentityTransformOp.java:
+ Three new affine identity transformations added, also three new tests
+ addded into BitBltAffineIdentityTransformOp test suite.
+
2013-07-22 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/BitBltAffineQuadrantRotateTransformOp.java:
diff -r 865e71729bdf -r 90586e9152a1 src/org/gfxtest/testsuites/BitBltAffineIdentityTransformOp.java
--- a/src/org/gfxtest/testsuites/BitBltAffineIdentityTransformOp.java Mon Jul 22 10:04:10 2013 +0200
+++ b/src/org/gfxtest/testsuites/BitBltAffineIdentityTransformOp.java Tue Jul 23 11:21:04 2013 +0200
@@ -41,6 +41,7 @@
package org.gfxtest.testsuites;
import java.awt.Graphics2D;
+import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
@@ -76,10 +77,26 @@
private static final AffineTransformOp IdentifyTranspormationOp2;
private static final AffineTransformOp IdentifyTranspormationOp3;
+ private static final AffineTransformOp IdentifyTranspormationOp4;
+ private static final AffineTransformOp IdentifyTranspormationOp5;
+ private static final AffineTransformOp IdentifyTranspormationOp6;
+
+ private static final RenderingHints RenderingHintsNearestNeighbor;
+ private static final RenderingHints RenderingHintsBilinear;
+ private static final RenderingHints RenderingHintsBicubic;
+
static {
+ RenderingHintsNearestNeighbor = new RenderingHints(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
+ RenderingHintsBilinear = new RenderingHints(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
+ RenderingHintsBicubic = new RenderingHints(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
+
IdentifyTranspormationOp1 = new AffineTransformOp(IdentifyTransformation, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
IdentifyTranspormationOp2 = new AffineTransformOp(IdentifyTransformation, AffineTransformOp.TYPE_BILINEAR);
IdentifyTranspormationOp3 = new AffineTransformOp(IdentifyTransformation, AffineTransformOp.TYPE_BICUBIC);
+
+ IdentifyTranspormationOp4 = new AffineTransformOp(IdentifyTransformation, RenderingHintsNearestNeighbor);
+ IdentifyTranspormationOp5 = new AffineTransformOp(IdentifyTransformation, RenderingHintsBilinear);
+ IdentifyTranspormationOp6 = new AffineTransformOp(IdentifyTransformation, RenderingHintsBicubic);
}
/**
@@ -125,6 +142,48 @@
}
/**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltEmptyBufferedImageType3ByteBGRIdentifyTranspormationOp4(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, IdentifyTranspormationOp4);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltEmptyBufferedImageType3ByteBGRIdentifyTranspormationOp5(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, IdentifyTranspormationOp5);
+ }
+
+ /**
+ * Test basic BitBlt operation for empty buffered image with type TYPE_3BYTE_BGR.
+ *
+ * @param image
+ * image used as a destination for BitBlt-type operations
+ * @param graphics2d
+ * graphics canvas
+ * @return test result status - PASSED, FAILED or ERROR
+ */
+ public TestResult testBitBltEmptyBufferedImageType3ByteBGRIdentifyTranspormationOp6(TestImage image, Graphics2D graphics2d)
+ {
+ return doBitBltEmptyBufferedImageType3ByteRGB(image, graphics2d, IdentifyTranspormationOp6);
+ }
+
+ /**
* Test basic BitBlt operation for checker buffered image with type TYPE_3BYTE_BGR.
*
* @param image
More information about the distro-pkg-dev
mailing list