Author: toad
Date: 2008-02-15 13:46:10 +0000 (Fri, 15 Feb 2008)
New Revision: 17934

Modified:
   trunk/freenet/src/freenet/clients/http/filter/JPEGFilter.java
Log:
Add a marker type

Modified: trunk/freenet/src/freenet/clients/http/filter/JPEGFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/JPEGFilter.java       
2008-02-15 09:37:25 UTC (rev 17933)
+++ trunk/freenet/src/freenet/clients/http/filter/JPEGFilter.java       
2008-02-15 13:46:10 UTC (rev 17934)
@@ -17,6 +17,7 @@

 import freenet.l10n.L10n;
 import freenet.support.HTMLNode;
+import freenet.support.HexUtil;
 import freenet.support.Logger;
 import freenet.support.api.Bucket;
 import freenet.support.api.BucketFactory;
@@ -31,6 +32,7 @@
  * Also the JFIF spec.
  * Also http://cs.haifa.ac.il/~nimrod/Compression/JPEG/J6sntx2005.pdf
  * http://svn.xiph.org/experimental/giles/jpegdump.c
+ * http://it.jeita.or.jp/document/publica/standard/exif/english/jeida49e.htm
  *
  * L10n: Only the overall explanation message and the "too short" messages are 
localised.
  * It's probably not worth doing the others, they're way too detailed.
@@ -143,6 +145,7 @@
                                        if(dos != null) 
dos.writeShort(blockLength);
                                }
                                if(markerType == 0xDB // quantisation table
+                                               || markerType == 0xDD // 
restart interoperability marker
                                                || markerType == 0xC4 // 
huffman table
                                                || markerType == 0xC0) { // 
start of frame
                                        // Essential, non-terminal frames.


Reply via email to