commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1534735 - in /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg: Block.java decoder/Block.java
Date Tue, 22 Oct 2013 19:08:43 GMT
Author: damjan
Date: Tue Oct 22 19:08:43 2013
New Revision: 1534735

URL: http://svn.apache.org/r1534735
Log:
Move the Block class to the JPEG decoder package.

Jira issue key: IMAGING-117


Added:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Block.java
  (with props)
Removed:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/Block.java

Added: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Block.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Block.java?rev=1534735&view=auto
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Block.java
(added)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Block.java
Tue Oct 22 19:08:43 2013
@@ -0,0 +1,28 @@
+/*
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ * 
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ *  under the License.
+ */
+
+package org.apache.commons.imaging.formats.jpeg.decoder;
+
+final class Block {
+    final int[] samples;
+    final int width;
+    final int height;
+
+    Block(final int width, final int height) {
+        samples = new int[width * height];
+        this.width = width;
+        this.height = height;
+    }
+}

Propchange: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Block.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message