<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using ImageMagick to convert a 4:2:2 YCrCb raw image to something viewable</title>
	<atom:link href="http://billauer.se/blog/2009/02/imagemagick-convert-ycbcr/feed/" rel="self" type="application/rss+xml" />
	<link>https://billauer.se/blog/2009/02/imagemagick-convert-ycbcr/</link>
	<description>Anything I found worthy to write down.</description>
	<lastBuildDate>Thu, 26 Mar 2026 13:15:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Freddy</title>
		<link>https://billauer.se/blog/2009/02/imagemagick-convert-ycbcr/comment-page-1/#comment-1164</link>
		<dc:creator>Freddy</dc:creator>
		<pubDate>Tue, 09 Feb 2016 14:47:47 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=9#comment-1164</guid>
		<description>You have slipped the &quot;sample&quot; and &quot;interlace&quot; fields in the middle of the &quot;-depth 8&quot; part, thereby separating the &quot;-depth&quot; from the &quot;8&quot;</description>
		<content:encoded><![CDATA[<p>You have slipped the &#8220;sample&#8221; and &#8220;interlace&#8221; fields in the middle of the &#8220;-depth 8&#8243; part, thereby separating the &#8220;-depth&#8221; from the &#8220;8&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin</title>
		<link>https://billauer.se/blog/2009/02/imagemagick-convert-ycbcr/comment-page-1/#comment-896</link>
		<dc:creator>Constantin</dc:creator>
		<pubDate>Mon, 23 Sep 2013 15:28:28 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=9#comment-896</guid>
		<description>One correction to the other comment: It&#039;s not &quot;-sample 4:2:0&quot;, but &quot;-sampling-factor 4:2:0&quot;.</description>
		<content:encoded><![CDATA[<p>One correction to the other comment: It&#8217;s not &#8220;-sample 4:2:0&#8243;, but &#8220;-sampling-factor 4:2:0&#8243;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shachar Shemesh</title>
		<link>https://billauer.se/blog/2009/02/imagemagick-convert-ycbcr/comment-page-1/#comment-622</link>
		<dc:creator>Shachar Shemesh</dc:creator>
		<pubDate>Mon, 31 Oct 2011 07:59:09 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=9#comment-622</guid>
		<description>Since this entry rates so high on Google, I thought I&#039;d put in a better answer.

The generic format is &quot;yuv&quot;. So:
convert -size 800x600 -depth 8 yuv:image.raw image.png

You will need to provide:
Bits per pixel (-depth 8)
The Y:U:V ratio (-sample 4:2:2)
The relative location of the various bits of information (read about the -interlace option).

So, if we have a 4:2:0 image with the Y plane followed by the Cb followed by the Cr planes:
convert -size 800x600 -depth -sample 4:2:0 -interlace plane 8 yuv:image.raw image.png

Shachar</description>
		<content:encoded><![CDATA[<p>Since this entry rates so high on Google, I thought I&#8217;d put in a better answer.</p>
<p>The generic format is &#8220;yuv&#8221;. So:<br />
convert -size 800x600 -depth 8 yuv:image.raw image.png</p>
<p>You will need to provide:<br />
Bits per pixel (-depth 8)<br />
The Y:U:V ratio (-sample 4:2:2)<br />
The relative location of the various bits of information (read about the -interlace option).</p>
<p>So, if we have a 4:2:0 image with the Y plane followed by the Cb followed by the Cr planes:<br />
convert -size 800x600 -depth -sample 4:2:0 -interlace plane 8 yuv:image.raw image.png</p>
<p>Shachar</p>
]]></content:encoded>
	</item>
</channel>
</rss>
