<?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>Rackbits &#187; Graphics</title>
	<atom:link href="http://rackbits.com/tag/graphics/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackbits.com</link>
	<description>Blag of doom, assembly, and other things.</description>
	<lastBuildDate>Mon, 06 Sep 2010 07:01:23 +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>Programming without purpose, Image dithering and a CDP Transponder</title>
		<link>http://rackbits.com/2009/06/19/programming-without-purpose-image-dithering-and-a-cdp-transponder/</link>
		<comments>http://rackbits.com/2009/06/19/programming-without-purpose-image-dithering-and-a-cdp-transponder/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 12:52:24 +0000</pubDate>
		<dc:creator>Matthew Costa</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://rackbits.com/?p=44</guid>
		<description><![CDATA[
Inspired by a forum post on osdev.org about image colour downsampling I decided to have a crack at writing a program which could take a 24-bit image and convert it down to any lesser image format. The picture above shows an image split down the middle. On the right is the original 24-bit colour version [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-45" title="Dithered image comparison" src="http://rackbits.com/wp-content/uploads/2009/06/dithering.jpg" alt="Dithered image comparison" width="600" height="200" /></p>
<p>Inspired by a <a href="http://forum.osdev.org/viewtopic.php?f=11&amp;t=20338">forum post on osdev.org </a>about image colour downsampling I decided to have a crack at writing a program which could take a 24-bit image and convert it down to any lesser image format. The picture above shows an image split down the middle. On the right is the original 24-bit colour version and on the left is a 8-bit per pixel version with 2 bits for the red colour channel and 3 bits for the green and blue colour channels (rather than having a specific palette for the image I am downsampling to a 2:3:3 bpp image). As you can see the colour loss is acceptable and despit the limitations it still looks nice. Obviously the image could be improved further by choosing a colour palette suitable for the image but that is for another project.</p>
<p>I&#8217;ll post the code once I have cleaned it up a bit and smoothed it out so it doesn&#8217;t have so many hard coded values.</p>
<h3>CDP Transponder</h3>
<p>Another project I&#8217;ve been working on with my interest in Cisco hacking and reverse engineering is my Cisco Discovery Protocol transponder. It is a small program which sits on your computer and emits a configured CDP message every so often allowing your computer to show up on CDP neighbour lists. It doesn&#8217;t really have much purpose at the moment but I hope to play around with it and trying to bridge it with LLDP devices so I can get old Cisco gear to show up on my new Windows network topology maps.</p>
<p><img class="alignnone size-full wp-image-46" title="show cdp neighbors" src="http://rackbits.com/wp-content/uploads/2009/06/cdp-neighbors.png" alt="show cdp neighbors" width="600" height="120" /></p>
<p>This is the output of the <em>show cdp neighbors </em>command on my Cisco 2610XM router. It shows my computer as the device connected to the Fastethernet 0/0 port.</p>
]]></content:encoded>
			<wfw:commentRss>http://rackbits.com/2009/06/19/programming-without-purpose-image-dithering-and-a-cdp-transponder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
