<?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; JPEG 2000 for Pascal</title>
	<atom:link href="http://galfar.vevb.net/wp/tag/pasjpeg2000/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>PasJpeg2000 News</title>
		<link>http://galfar.vevb.net/wp/2009/12/pasjpeg2000-news/</link>
		<comments>http://galfar.vevb.net/wp/2009/12/pasjpeg2000-news/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 19:37:55 +0000</pubDate>
		<dc:creator>Marek Mauder</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[JPEG 2000 for Pascal]]></category>
		<category><![CDATA[Vampyre Imaging Library]]></category>

		<guid isPermaLink="false">http://galfar.vevb.net/wp/?p=657</guid>
		<description><![CDATA[JPEG 2000 for Pascal project is based on OpenJpeg library. For a very long time there was a bug that caused alpha (fourth and subsequent image channels) channel to be saved with all the samples having the value of 0.5 (128 for 8bit channels). This buggy behavior also depended on compiler settings &#8211; optimization level [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://galfar.vevb.net/wp/projects/jpeg2000-for-pascal/" title="JPEG 2000 for Pascal">JPEG 2000 for Pascal</a> project is based on <a href="http://www.openjpeg.org" target="_blank">OpenJpeg</a> library. For a very long time there was a bug that caused alpha (fourth and subsequent image channels) channel to be saved with all the samples having the value of 0.5 (128 for 8bit channels). This buggy behavior also depended on compiler settings &#8211; optimization level in case of GCC. You could use at most O1 in Windows and Linux, and only O0 in Mac OS X. Bug was also present when compiling with C++ Builder (to get object files usable in Delphi) but only when irreversible DWT transformation was enabled in OpenJpeg during encoding (it wasn&#8217;t before, but working versions of both PasJpeg2000 and Imaging use it now when lossy compression is selected by user to get smaller files).<br />
You can read more about it in <a href="http://groups.google.com/group/openjpeg/browse_thread/thread/d9d96dd4ec3e7443" target="_blank">this news group post</a>. Basically it was all fixed by changing a condition in one <strong>if</strong> statement to prevent accessing the fourth element of a three element array.</p>
<p>So what can you expect in the next version of PasJpeg2000 library?<br />
Higher GCC optimization levels should make it a lot faster when using Free Pascal (particularly in Mac OS X where O0 was used). Irreversible DWT transformation produces smaller lossy files than current PasJpeg2000 version and with optional MCT (multicomponent transform &#8211; basically RGB&gt;YCbCr) you get even smaller ones. There&#8217;s now also a patch that enables OpenJpeg to get palettes from JP2 files so indexed JPEG 2000 images could be supported too. And finally, there are some bug fixes (wrong reconstruction of subsampled files, &#8230;).</p>
]]></content:encoded>
			<wfw:commentRss>http://galfar.vevb.net/wp/2009/12/pasjpeg2000-news/feed/</wfw:commentRss>
		<slash:comments>0</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>
	</channel>
</rss>
