An: atari8-l@zwieracz.ideefixe.nom.pl Betreff: RIP format description Absendedatum: 15 Sep 2000 03:38:56 Von: "Lizard :: aIDs" Antwort an: atari8-l@zwieracz.ideefixe.nom.pl RIP picture format description ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Original text by Rocky of Madteam taken from Syzygy Magazine RIP picture was shown first time in Orneta of Poland in '97 in Igor demo by Madteam. There was copied several disks of RIP images. RIP is a graphics storage format of Atari 8-bit. This is based on already famous HIP picture format (Gr.9 + Gr.10). Theoritically it is possible to get 144 colors (there are about 40 in practice) with resolution of 160/238. RIP is more complicated than HIP, becouse of header which contains a lot of information about colors, resolution and note from the author of. RIP can have various vertical size (max. 238 lines) which couses less space on disk and faster reading. E.g. we have a logo with 50 lines. Our logo will be saved with 200 lines as HIP and takes about 16kB but RIP... only 4kB plus several bytes of header. That's a different, isn't it? In addition RIP can be colored and HIP only grey scaled. (HIP can be also colored but there is no room for color info.) The first one can be still packed (algorith in end fase) for RIP dedicated Visage viewer which is able to recognize its size, colors, compression method and display on screen. Saving HIP as RIP is no problem 'couse of similar data format. Adapting existing HIP viewers for RIP pictures couldn't be problematic too; Only what has to be done is format recognation, displaying of various image height and setting colors (for Gr.10) from the header (see below). How to make a RIP picture? ~~~~~~~~~~~~~~~~~~~~~~~~~~ It can be quite difficult. There is a converter for Amiga and PC. This is not real converter from any graphics format (GIF, IFF or Jpeg) to RIP. To make a RIP picture you will have to use programs not only dedicated to RIP. The best for Amiga is Personal Paint and for PC - Display. It's quite large job. One picture has to be divided into two others. Next: size modification, color palette reduction (one of these two pictures has to be 16 grey scaled what can do almost all programs and other 9 color what cannot do most of programs for Amiga and PC). Effect can be full satisfaction but can be completly bad what still happens (none is perfect). You can always make HIP which is better in this case (grey scale is easier to do) but you will be limited to 200 lines. Well, life is brutal... Header description: ~~~~~~~~~~~~~~~~~~~ In 'Description' filed text with quotes (") is pure ASCII string. Offset | Len | Description --------+-------------------------------------------------------- 0 | 3 | "RIP" - RIP image identyfier 3 | 4 | version: | | "1.x " - standard RIP | | "2.0 " - Multi RIP 7 | 1 | graphics mode: | | $20 - RIP or HIP | | $30 - Multi RIP, palette at the end of file | | $0f - Graphics 8 | | $4f - Graphics 9 | | $8f - Graphics 10 | | $cf - Graphics 11 | | $0e - Graphics 15 8 | 2 | comperssion method: | | 0, 0 - no compress | | 0, 1 - RIPPCK 10 | 2 | header length in bytes, MSB/LSB !!! 12 | 1 | not used 13 | 1 | image width in pixels (max. 80) *see below 14 | 1 | not used 15 | 1 | image height in lines (max. 238) 16 | 1 | display option (?), standard set to $20 17 | 1 | author note length in bytes (max. 256) 18 | 2 | "T:" - text identyfier 20 | n | author note 20+n | 1 | number of colors (fixed = 9 form Gr.10) 21+n | 3 | "CM:" - color map identfier 24+n | 9 | color values **see below 33+n | 3 | "PCK" - Multi RIP packed file only, means packed | | images data Directly after header images data are stored. First Gr.10, next Gr.9. * HIP and RIP are 80 pixels wide pictures with shifted 9-color plan (Gr.10) relativelly to 16-grey shaded plan (Gr.9) for half pixel right. ** Number of colors is fixed to 9 now but it may change. So, take number of colors from 20+n byte of header (n - length of author note) for safety. Displaying RIP "1.x" picture routine is similar to HIP routine. The only difference is set color registers with values put behind "CM:" while Gr.10 line. Information above is enought for writing own procedure showing RIP 1.x picture. For now I don't have any info about Multi RIP especially for compression algorithm and color palette. The only thing I know for sure is the palette should be changed every 2 scanlines. -- \^/==================\^/===================\^/==================\^/ /*\_____Atari ST_____/*\___Lizard # aIDs___/*\_____Atari XE_____/*\ \*/____lzd@nea.pl____\*/__lizard@viper.pl__\*/____lzd@go2.pl____\*/ /^\==================/^\===================/^\==================/^\