<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://fileformats.archiveteam.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=Bit_order</id>
		<title>Bit order - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=Bit_order"/>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;action=history"/>
		<updated>2026-04-20T04:19:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=28798&amp;oldid=prev</id>
		<title>Jsummers: Removed from deprecated &quot;Binary Data&quot; category</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=28798&amp;oldid=prev"/>
				<updated>2017-08-23T19:30:28Z</updated>
		
		<summary type="html">&lt;p&gt;Removed from deprecated &amp;quot;Binary Data&amp;quot; category&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:30, 23 August 2017&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://www.fileformat.info/mirror/egff/ch06_04.htm Bit Order], from the [[Encyclopedia of Graphics File Formats]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://www.fileformat.info/mirror/egff/ch06_04.htm Bit Order], from the [[Encyclopedia of Graphics File Formats]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Wikipedia:Endianness|&lt;/del&gt;Wikipedia: Endianness]] - Has a section on bit endianness&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Wikipedia: Endianness]] - Has a section on bit endianness&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Wikipedia:Bit numbering|&lt;/del&gt;Wikipedia: Bit numbering]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Wikipedia: Bit numbering]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://eli.thegreenplace.net/2005/11/22/when-bit-endianness-matters/ When bit endianness matters]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://eli.thegreenplace.net/2005/11/22/when-bit-endianness-matters/ When bit endianness matters]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Binary Data]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jsummers</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=23935&amp;oldid=prev</id>
		<title>Jsummers at 20:02, 4 December 2015</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=23935&amp;oldid=prev"/>
				<updated>2015-12-04T20:02:40Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:02, 4 December 2015&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Image formats usually use MSB-first order. That usually means the most significant bit(s) of a byte correspond to the leftmost pixel of those encoded by that byte.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Image formats usually use MSB-first order. That usually means the most significant bit(s) of a byte correspond to the leftmost pixel of those encoded by that byte.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Serial communications devices usually use LSB-first order, and this may be reflected in formats related to them, such as fax formats.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Serial communications devices usually use LSB-first order, and this may be reflected in formats related to them, such as &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[&lt;/ins&gt;fax formats&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that if a format uses byte-oriented data compression, it is possible for there to be two distinct layers of bit ordering. For example, an image format could use one bit order for extracting compression codes from the compressed datastream, and another for extracting pixels from the resulting uncompressed datastream.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that if a format uses byte-oriented data compression, it is possible for there to be two distinct layers of bit ordering. For example, an image format could use one bit order for extracting compression codes from the compressed datastream, and another for extracting pixels from the resulting uncompressed datastream.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jsummers</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=23911&amp;oldid=prev</id>
		<title>Jsummers: Changed primary category</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=23911&amp;oldid=prev"/>
				<updated>2015-12-04T18:52:04Z</updated>
		
		<summary type="html">&lt;p&gt;Changed primary category&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:52, 4 December 2015&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{FormatInfo&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{FormatInfo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|formattype=electronic&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|formattype=electronic&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|subcat=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Binary Data&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|subcat=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Elements of File Formats&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Bit order''' is the question of whether the most significant bit, or the least significant bit, of a byte comes &amp;quot;first&amp;quot;. For many formats, this is not a meaningful question to ask, but for some it is very important.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Bit order''' is the question of whether the most significant bit, or the least significant bit, of a byte comes &amp;quot;first&amp;quot;. For many formats, this is not a meaningful question to ask, but for some it is very important.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Wikipedia:Bit numbering|Wikipedia: Bit numbering]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Wikipedia:Bit numbering|Wikipedia: Bit numbering]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://eli.thegreenplace.net/2005/11/22/when-bit-endianness-matters/ When bit endianness matters]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [http://eli.thegreenplace.net/2005/11/22/when-bit-endianness-matters/ When bit endianness matters]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Binary Data]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jsummers</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=18316&amp;oldid=prev</id>
		<title>Jsummers: Typo</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=18316&amp;oldid=prev"/>
				<updated>2014-07-20T15:46:06Z</updated>
		
		<summary type="html">&lt;p&gt;Typo&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:46, 20 July 2014&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;There are two sensible bit orders, which we can call '''MSB-first''' (most significant bit first), and '''LSB-first''' (least significant bit first).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;There are two sensible bit orders, which we can call '''MSB-first''' (most significant bit first), and '''LSB-first''' (least significant bit first).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Bit order issues are similar to those of (byte) [[endianness]], but with a conceptual difference. With endianness, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that &lt;/del&gt;storage device (or other data source) assigns a natural ''order'' to the bytes, and the format specification decides which bytes are more ''significant''. With bits, it's usually the other way round&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/del&gt;The storage device assigns a natural ''significance'' to the bits (by packing them into bytes), and the format specification decides their logical ''order''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Bit order issues are similar to those of (byte) [[endianness]], but with a conceptual difference. With endianness, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the &lt;/ins&gt;storage device (or other data source) assigns a natural ''order'' to the bytes, and the format specification decides which bytes are more ''significant''. With bits, it's usually the other way round&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;: &lt;/ins&gt;The storage device assigns a natural ''significance'' to the bits (by packing them into bytes), and the format specification decides their logical ''order''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Bit order is relevant when data is interpreted as a bitstream, and two or more entities (or portions of entities) are encoded by a single byte. For example, it is often relevant to:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Bit order is relevant when data is interpreted as a bitstream, and two or more entities (or portions of entities) are encoded by a single byte. For example, it is often relevant to:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Serial communications devices usually use LSB-first order, and this may be reflected in formats related to them, such as fax formats.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Serial communications devices usually use LSB-first order, and this may be reflected in formats related to them, such as fax formats.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that if a format uses byte-oriented data compression, it is possible for there to be two distinct layers of bit ordering. For example, an image format could use one bit order for extracting compression codes from the compressed datastream, and another for extracting pixels from the uncompressed datastream.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that if a format uses byte-oriented data compression, it is possible for there to be two distinct layers of bit ordering. For example, an image format could use one bit order for extracting compression codes from the compressed datastream, and another for extracting pixels from the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;resulting &lt;/ins&gt;uncompressed datastream.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Links ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jsummers</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=17623&amp;oldid=prev</id>
		<title>Jsummers: Created page with &quot;{{FormatInfo |formattype=electronic |subcat=Binary Data }} '''Bit order''' is the question of whether the most significant bit, or the least significant bit, of a byte comes &quot;...&quot;</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=Bit_order&amp;diff=17623&amp;oldid=prev"/>
				<updated>2014-05-30T23:24:03Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{FormatInfo |formattype=electronic |subcat=Binary Data }} &amp;#039;&amp;#039;&amp;#039;Bit order&amp;#039;&amp;#039;&amp;#039; is the question of whether the most significant bit, or the least significant bit, of a byte comes &amp;quot;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FormatInfo&lt;br /&gt;
|formattype=electronic&lt;br /&gt;
|subcat=Binary Data&lt;br /&gt;
}}&lt;br /&gt;
'''Bit order''' is the question of whether the most significant bit, or the least significant bit, of a byte comes &amp;quot;first&amp;quot;. For many formats, this is not a meaningful question to ask, but for some it is very important.&lt;br /&gt;
&lt;br /&gt;
== Disambiguation ==&lt;br /&gt;
There is an orthogonal concept called '''bit numbering''', which is the question of whether the most significant bit, or the least significant bit, is known as &amp;quot;bit 0&amp;quot;. This can confuse the issue, since you still have to decide whether &amp;quot;bit 0&amp;quot; or &amp;quot;bit 7&amp;quot; comes first.&lt;br /&gt;
&lt;br /&gt;
The term '''bit endianness''' (or '''bit-level endianness''') is sometimes seen, but it seems that not everyone agrees on its meaning, due to conflation of the ''bit ordering'' and ''bit numbering'' concepts.&lt;br /&gt;
&lt;br /&gt;
== Discussion ==&lt;br /&gt;
There are two sensible bit orders, which we can call '''MSB-first''' (most significant bit first), and '''LSB-first''' (least significant bit first).&lt;br /&gt;
&lt;br /&gt;
Bit order issues are similar to those of (byte) [[endianness]], but with a conceptual difference. With endianness, that storage device (or other data source) assigns a natural ''order'' to the bytes, and the format specification decides which bytes are more ''significant''. With bits, it's usually the other way round. The storage device assigns a natural ''significance'' to the bits (by packing them into bytes), and the format specification decides their logical ''order''.&lt;br /&gt;
&lt;br /&gt;
Bit order is relevant when data is interpreted as a bitstream, and two or more entities (or portions of entities) are encoded by a single byte. For example, it is often relevant to:&lt;br /&gt;
* Uncompressed bitmap image formats, if multiple pixel are packed into each byte.&lt;br /&gt;
* Some compressed data formats, such as [[Huffman coding]] and most forms of [[LZW]].&lt;br /&gt;
* Transfer encodings such as [[Base64]].&lt;br /&gt;
&lt;br /&gt;
Image formats usually use MSB-first order. That usually means the most significant bit(s) of a byte correspond to the leftmost pixel of those encoded by that byte.&lt;br /&gt;
&lt;br /&gt;
Serial communications devices usually use LSB-first order, and this may be reflected in formats related to them, such as fax formats.&lt;br /&gt;
&lt;br /&gt;
Note that if a format uses byte-oriented data compression, it is possible for there to be two distinct layers of bit ordering. For example, an image format could use one bit order for extracting compression codes from the compressed datastream, and another for extracting pixels from the uncompressed datastream.&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [http://www.fileformat.info/mirror/egff/ch06_04.htm Bit Order], from the [[Encyclopedia of Graphics File Formats]]&lt;br /&gt;
* [[Wikipedia:Endianness|Wikipedia: Endianness]] - Has a section on bit endianness&lt;br /&gt;
* [[Wikipedia:Bit numbering|Wikipedia: Bit numbering]]&lt;br /&gt;
* [http://eli.thegreenplace.net/2005/11/22/when-bit-endianness-matters/ When bit endianness matters]&lt;/div&gt;</summary>
		<author><name>Jsummers</name></author>	</entry>

	</feed>