commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r1546223 - in /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png: PngConstants.java PngWriter.java
Date Wed, 27 Nov 2013 23:01:16 GMT
Author: ebourg
Date: Wed Nov 27 23:01:16 2013
New Revision: 1546223

URL: http://svn.apache.org/r1546223
Log:
Renamed the PNG constants for consistency

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngConstants.java
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngConstants.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngConstants.java?rev=1546223&r1=1546222&r2=1546223&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngConstants.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngConstants.java
Wed Nov 27 23:01:16 2013
@@ -25,13 +25,13 @@ public interface PngConstants {
 
     public static final BinaryConstant IHDR_CHUNK_TYPE = new BinaryConstant(new byte[] {
'I', 'H', 'D', 'R' });
     public static final BinaryConstant PLTE_CHUNK_TYPE = new BinaryConstant(new byte[] {
'P', 'L', 'T', 'E' });
-    public static final BinaryConstant TRNS_CHUNK_TYPE = new BinaryConstant(new byte[] {
't', 'R', 'N', 'S' });
+    public static final BinaryConstant tRNS_CHUNK_TYPE = new BinaryConstant(new byte[] {
't', 'R', 'N', 'S' });
     public static final BinaryConstant IEND_CHUNK_TYPE = new BinaryConstant(new byte[] {
'I', 'E', 'N', 'D' });
     public static final BinaryConstant IDAT_CHUNK_TYPE = new BinaryConstant(new byte[] {
'I', 'D', 'A', 'T' });
     public static final BinaryConstant iTXt_CHUNK_TYPE = new BinaryConstant(new byte[] {
'i', 'T', 'X', 't' });
     public static final BinaryConstant tEXt_CHUNK_TYPE = new BinaryConstant(new byte[] {
't', 'E', 'X', 't' });
     public static final BinaryConstant zTXt_CHUNK_TYPE = new BinaryConstant(new byte[] {
'z', 'T', 'X', 't' });
-    public static final BinaryConstant IPHYS_CHUNK_TYPE = new BinaryConstant(new byte[] {
'p', 'H', 'Y', 's' });
+    public static final BinaryConstant pHYs_CHUNK_TYPE = new BinaryConstant(new byte[] {
'p', 'H', 'Y', 's' });
 
     public static final int IEND = BinaryFunctions.charsToQuad('I', 'E', 'N', 'D');
     public static final int IHDR = BinaryFunctions.charsToQuad('I', 'H', 'D', 'R');

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java?rev=1546223&r1=1546222&r2=1546223&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java
Wed Nov 27 23:01:16 2013
@@ -273,7 +273,7 @@ public class PngWriter {
             bytes[i] = (byte) (0xff & (palette.getEntry(i) >> 24));
         }
         
-        writeChunk(os, PngConstants.TRNS_CHUNK_TYPE.toByteArray(), bytes);
+        writeChunk(os, PngConstants.tRNS_CHUNK_TYPE.toByteArray(), bytes);
     }
 
     private void writeChunkIEND(final OutputStream os) throws IOException {
@@ -297,7 +297,7 @@ public class PngWriter {
         bytes[6] = (byte) (0xff & (yPPU >> 8));
         bytes[7] = (byte) (0xff & (yPPU >> 0));
         bytes[8] = units;
-        writeChunk(os, PngConstants.IPHYS_CHUNK_TYPE.toByteArray(), bytes);
+        writeChunk(os, PngConstants.pHYs_CHUNK_TYPE.toByteArray(), bytes);
     }
 
     private byte getColourType(final boolean hasAlpha, final boolean isGrayscale) {



Mime
View raw message