<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Galfar's Lair &#187; Image Formats</title>
	<atom:link href="http://galfar.vevb.net/wp/tag/imageformats/feed/" rel="self" type="application/rss+xml" />
	<link>http://galfar.vevb.net/wp</link>
	<description>Oh hai!</description>
	<lastBuildDate>Fri, 23 Apr 2010 15:52:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Block Compression, DXTC, And Imaging</title>
		<link>http://galfar.vevb.net/wp/2009/08/block-compression-dxtc-and-imaging/</link>
		<comments>http://galfar.vevb.net/wp/2009/08/block-compression-dxtc-and-imaging/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 01:12:55 +0000</pubDate>
		<dc:creator>Marek Mauder</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Image Formats]]></category>
		<category><![CDATA[Vampyre Imaging Library]]></category>

		<guid isPermaLink="false">http://galfar.vevb.net/wp/?p=564</guid>
		<description><![CDATA[Imaging supported DXT image/texture compression since one of the earliest releases. Quality of compressed images isn&#8217;t very high though (at least the compression isn&#8217;t too slow). For future Imaging versions I plan to ditch the current compression code and add a new one. To be precise, two new ones &#8211; fast and lower quality (still [...]]]></description>
			<content:encoded><![CDATA[<p>Imaging supported DXT image/texture compression since one of the earliest releases. Quality of compressed images isn&#8217;t very high though (at least the compression isn&#8217;t too slow). For future Imaging versions I plan to ditch the current compression code and add a new one. To be precise, two new ones &#8211; fast and lower quality (still probably better than current Imaging&#8217;s compression), and slow and higher quality mode. Fast one will be based on <a href="http://cache-www.intel.com/cd/00/00/32/43/324337_324337.pdf" target="_blank">Real-Time DXT Compression</a> by Id Soft. I&#8217;m not decided on high quality one yet, but probably something like cluster fit algorithm from <a href="http://code.google.com/p/libsquish/" target="_blank">Squish library</a>.</p>
<p>Mainly for testing purposes during implementation of these new methods, I want to create extension for Imaging that compares two images (original and one reconstructed from compressed original) and measures PSNR and some other quality metrics.</p>
<p>I&#8217;m also thinking of implementing DXT5 based format using YCoCg colorspace and PVRTC (texture compression currently used in iPhone).</p>
<p>Few links if you&#8217;re interested:</p>
<ul>
<li>Brief DXTC overview: <a href="http://en.wikipedia.org/wiki/S3_Texture_Compression" target="_blank">http://en.wikipedia.org/wiki/S3_Texture_Compression</a></li>
<li>More technical details: <a href="http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt" target="_blank">http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt</a></li>
<li>YCoCg-DXT related: <a href="http://developer.nvidia.com/object/real-time-ycocg-dxt-compression.html" target="_blank">http://developer.nvidia.com/object/real-time-ycocg-dxt-compression.html</a></li>
</ul>
<p>Here&#8217;s some quick comparison of DXT compressors (click the image to see full size). Value in brackets is MSE (mean square error) &#8211; lesser number means compressed image is more similar to original.</p>
<p style="text-align: center;"><a href="http://galfar.vevb.net/wp/wp-content/uploads/2009/08/dxtcompare.png" rel="lightbox[564]"><img class="size-medium wp-image-567 aligncenter" title="DXT compressors comparison" src="http://galfar.vevb.net/wp/wp-content/uploads/2009/08/dxtcompare-266x400.png" alt="DXT compressors comparison" width="266" height="400" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://galfar.vevb.net/wp/2009/08/block-compression-dxtc-and-imaging/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>First JPEG 2000 for Pascal Release</title>
		<link>http://galfar.vevb.net/wp/2009/07/first-jpeg-2000-for-pascal-release/</link>
		<comments>http://galfar.vevb.net/wp/2009/07/first-jpeg-2000-for-pascal-release/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 13:18:39 +0000</pubDate>
		<dc:creator>Marek Mauder</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Image Formats]]></category>
		<category><![CDATA[JPEG 2000 for Pascal]]></category>

		<guid isPermaLink="false">http://galfar.vevb.net/wp/2009/07/first-jpeg-2000-for-pascal-release/</guid>
		<description><![CDATA[I finally released first version of JPEG 2000 for Pascal library. It’s based on translated header and precompiled OpenJpeg library that was part of Imaging for a long time – now released separately.
There’s header translation working with both Delphi and FPC and original C library precompiled to object files (Delphi) and static libraries (FPC for [...]]]></description>
			<content:encoded><![CDATA[<p>I finally released first version of JPEG 2000 for Pascal library. It’s based on translated header and precompiled <a href="http://www.openjpeg.org" target="_blank">OpenJpeg</a> library that was part of Imaging for a long time – now released separately.</p>
<p>There’s header translation working with both Delphi and FPC and original C library precompiled to object files (Delphi) and static libraries (FPC for Win32, Linux x86/x64, and Mac OS X).</p>
<p>I’ve written simple TBitmap descendant that loads and saves JPEG 2000 images. It’s only for Delphi now – can’t do LCL version with just few IFDEFS, there are lot more changes between VCL and LCL TBitmaps. I plan to write separate LCL version for one of upcoming releases (using TFPCustomImageWriter and TFPCustomImageReader classes).</p>
<p>You can get JPEG 2000 for Pascal library at it’s <a href="http://galfar.vevb.net/pasjpeg2000">project page</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://galfar.vevb.net/wp/2009/07/first-jpeg-2000-for-pascal-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APNG Update</title>
		<link>http://galfar.vevb.net/wp/2009/06/apng-update/</link>
		<comments>http://galfar.vevb.net/wp/2009/06/apng-update/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 02:45:17 +0000</pubDate>
		<dc:creator>Marek Mauder</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Image Formats]]></category>
		<category><![CDATA[Vampyre Imaging Library]]></category>

		<guid isPermaLink="false">http://galfar.vevb.net/wp/2009/06/apng-update/</guid>
		<description><![CDATA[APNG loading and animating implementation for Imaging wasn&#8217;t very hard work. However, there are not that many test images to be found on the Internet and most of the available ones are very simple. They&#8217;re usually not using disposal methods and are basically just collection of independent images. Big difference compared to GIF files &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>APNG loading and animating implementation for Imaging wasn&#8217;t very hard work. However, there are not that many test images to be found on the Internet and most of the available ones are very simple. They&#8217;re usually not using disposal methods and are basically just collection of independent images. Big difference compared to GIF files &#8211; some of them were quite difficult to animate right. I even got most of nontrivial APNG test files by converting some more complex animated GIF files. Tools for creating APNG images are not yet as sophisticated as some GIF animation tools &#8211; there&#8217;s <a href="http://sourceforge.net/projects/giftoapngconver" target="_blank">GIF to APNG converter</a>, <a href="http://sites.google.com/site/cphktool/apng-anime-maker" target="_blank">APNG Anime Maker</a>, and some web based tools that assemble simple APNG file from bunch of uploaded single PNG frames.</p>
<p>Now I&#8217;m gonna extend PNG saver to allow saving multi images to simple APNG files, much like MNG saving works now. There&#8217;s really not a good unified way how to pass some more information to image file savers in current library design &#8211; that&#8217;s one of TODOs for new Imaging architecture.</p>
]]></content:encoded>
			<wfw:commentRss>http://galfar.vevb.net/wp/2009/06/apng-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APNG Support for Imaging</title>
		<link>http://galfar.vevb.net/wp/2009/05/apng-support-for-imaging/</link>
		<comments>http://galfar.vevb.net/wp/2009/05/apng-support-for-imaging/#comments</comments>
		<pubDate>Tue, 19 May 2009 20:32:30 +0000</pubDate>
		<dc:creator>Marek Mauder</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Image Formats]]></category>
		<category><![CDATA[Vampyre Imaging Library]]></category>

		<guid isPermaLink="false">http://galfar.vevb.net/wp/2009/05/apng-support-for-imaging/</guid>
		<description><![CDATA[I started working on support for APNG format for Imaging library. APNG is unofficial extension of PNG image file format created by two guys from Mozilla Corporation. The point of APNG is to allow storing simple animations in PNG files (hence the &#8220;A&#8221; for &#8220;Animated&#8221;).
There is already PNG-like chunk based format for animations called MNG [...]]]></description>
			<content:encoded><![CDATA[<p>I started working on support for <strong>APNG</strong> format for Imaging library. APNG is unofficial extension of PNG image file format created by two guys from Mozilla Corporation. The point of APNG is to allow storing simple animations in PNG files (hence the &#8220;A&#8221; for &#8220;Animated&#8221;).</p>
<p>There is already PNG-like chunk based format for animations called <strong>MNG </strong>(already supported by Imaging &#8211; at least the basic features). However, MNG is quite complex format and its support among browsers and image viewers/editors is lacking. Code library supporting all MNG features is huge.</p>
<p>APNG on the other hand is just an extension of PNG and its implementation is not so complex. I&#8217;m going to load only the raw frames from files at first and see what will have to be done to support animating the frames next. Canvas class will have to be used here for alpha blending subsequent frames to previous ones. I&#8217;ll add option to turn the animating on/off just like it is available for animated GIF files.</p>
<p>More info about APNG: <a title="http://www.animatedpng.com" href="http://www.animatedpng.com">http://www.animatedpng.com</a> and <a title="https://wiki.mozilla.org/APNG_Specification" href="https://wiki.mozilla.org/APNG_Specification">https://wiki.mozilla.org/APNG_Specification</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://galfar.vevb.net/wp/2009/05/apng-support-for-imaging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
