<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.temlib.org/AtariForumWiki/index.php?action=history&amp;feed=atom&amp;title=Imagic_Film%2FPicture_file_format</id>
	<title>Imagic Film/Picture file format - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.temlib.org/AtariForumWiki/index.php?action=history&amp;feed=atom&amp;title=Imagic_Film%2FPicture_file_format"/>
	<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Imagic_Film/Picture_file_format&amp;action=history"/>
	<updated>2026-07-26T19:03:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=Imagic_Film/Picture_file_format&amp;diff=14317&amp;oldid=prev</id>
		<title>&gt;Lp: add link to asm code</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Imagic_Film/Picture_file_format&amp;diff=14317&amp;oldid=prev"/>
		<updated>2017-01-14T22:31:13Z</updated>

		<summary type="html">&lt;p&gt;add link to asm code&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:31, 14 January 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l82&quot;&gt;Line 82:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 82:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         x != escape byte        Use x literally.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         x != escape byte        Use x literally.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Note: 68K decompression code can be found here:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;      http://gfa.atari-users.net/gfx/&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Back to [[ST Picture Formats]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Back to [[ST Picture Formats]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Lp</name></author>
	</entry>
	<entry>
		<id>https://www.temlib.org/AtariForumWiki/index.php?title=Imagic_Film/Picture_file_format&amp;diff=14316&amp;oldid=prev</id>
		<title>&gt;Lp: New page</title>
		<link rel="alternate" type="text/html" href="https://www.temlib.org/AtariForumWiki/index.php?title=Imagic_Film/Picture_file_format&amp;diff=14316&amp;oldid=prev"/>
		<updated>2017-01-03T00:18:04Z</updated>

		<summary type="html">&lt;p&gt;New page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Imagic Film/Picture    *.IC1 (low resolution)&lt;br /&gt;
                       *.IC2 (medium resolution)&lt;br /&gt;
                       *.IC3 (high resolution)&lt;br /&gt;
&lt;br /&gt;
4 bytes         &amp;quot;IMDC&amp;quot;&lt;br /&gt;
1 word          resolution (0 = low res, 1 = medium res, 2 = high res)&lt;br /&gt;
16 words        palette&lt;br /&gt;
1 word          date (GEMDOS format)&lt;br /&gt;
1 word          time (GEMDOS format)&lt;br /&gt;
8 bytes         name of base picture file (for delta compression), or zeroes&lt;br /&gt;
1 word          length of data (?)&lt;br /&gt;
1 long          registration number&lt;br /&gt;
8 bytes         reserved&lt;br /&gt;
1 byte          compressed? (0 = no, 1 = yes)&lt;br /&gt;
&lt;br /&gt;
If compressed {&lt;br /&gt;
1 byte          delta-compressed? (-1 = no, &amp;gt; -1 = yes)&lt;br /&gt;
1 byte          ?&lt;br /&gt;
1 byte          escape byte&lt;br /&gt;
}&lt;br /&gt;
--------&lt;br /&gt;
65 bytes        total for header (68 bytes if compressed)&lt;br /&gt;
&lt;br /&gt;
? bytes         data&lt;br /&gt;
&lt;br /&gt;
   Compressed data may be either stand-alone or delta-compressed (relative&lt;br /&gt;
to the base picture named in the header).  Delta compression involves&lt;br /&gt;
storing only how the picture differs from the base picture (i.e., only&lt;br /&gt;
portions of the screen that have changed are stored).  This is used to&lt;br /&gt;
to encode animated sequences efficiently.&lt;br /&gt;
&lt;br /&gt;
Compressed data, stand-alone:&lt;br /&gt;
&lt;br /&gt;
For each byte x in the data section:&lt;br /&gt;
&lt;br /&gt;
        x = escape byte         Read one more byte, n.  (n is unsigned).&lt;br /&gt;
&lt;br /&gt;
                                If n &amp;gt;= 2, use the next byte n times.&lt;br /&gt;
                                If n = 1, keep reading bytes until a&lt;br /&gt;
                                byte k not equal to 1 is encountered.&lt;br /&gt;
                                Then read the next byte d.&lt;br /&gt;
                                If the number of 1 bytes encountered is o,&lt;br /&gt;
                                use d (256 * o + k) times.  I.e.,&lt;br /&gt;
&lt;br /&gt;
                                if (n == 1) {&lt;br /&gt;
                                        o = 0;&lt;br /&gt;
                                        while (n == 1) {&lt;br /&gt;
                                                o++;&lt;br /&gt;
                                                n = next byte;&lt;br /&gt;
                                        }&lt;br /&gt;
&lt;br /&gt;
                                        k = n;&lt;br /&gt;
                                        d = next byte;&lt;br /&gt;
&lt;br /&gt;
                                        Use d (256 * o + k) times.&lt;br /&gt;
                                }&lt;br /&gt;
                                else {&lt;br /&gt;
                                        d = next byte;&lt;br /&gt;
                                        Use d (n) times.&lt;br /&gt;
                                }&lt;br /&gt;
&lt;br /&gt;
        x != escape byte        Use x literally.&lt;br /&gt;
&lt;br /&gt;
Compressed data, delta compressed:&lt;br /&gt;
&lt;br /&gt;
For each byte x in the data section:&lt;br /&gt;
&lt;br /&gt;
        x = escape byte         Read one more byte, n.  (n is unsigned).&lt;br /&gt;
&lt;br /&gt;
                                If n &amp;gt;= 3, use the next byte n times.&lt;br /&gt;
                                If n = 1, do the same as for n = 1 in&lt;br /&gt;
                                stand-alone compression (above).&lt;br /&gt;
                                If n = 2, then set n = next byte.&lt;br /&gt;
                                        If n = 0, end of picture.&lt;br /&gt;
                                        If n &amp;gt;= 2, take n bytes from base&lt;br /&gt;
                                        picture.&lt;br /&gt;
                                        If n = 1, do the same as for n = 1&lt;br /&gt;
                                        in stand-alone compression (above),&lt;br /&gt;
                                        but take (256 * o + k) bytes from &lt;br /&gt;
                                        base picture.&lt;br /&gt;
&lt;br /&gt;
        x != escape byte        Use x literally.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Back to [[ST Picture Formats]]&lt;/div&gt;</summary>
		<author><name>&gt;Lp</name></author>
	</entry>
</feed>