diff options
author | Christos Zoulas <christos@zoulas.com> | 2023-04-01 16:08:19 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2023-04-01 16:08:19 +0000 |
commit | 1feddc117975572a6279739324f101ea22b8ac4b (patch) | |
tree | 74692d14804c7de4b15e327f8b914134784d9a6d | |
parent | ee875b10b059f912874ac15bcc339e5e9b10cd91 (diff) | |
download | file-git-1feddc117975572a6279739324f101ea22b8ac4b.tar.gz |
RIX magic from Eddy Jansson
-rw-r--r-- | magic/Magdir/images | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/magic/Magdir/images b/magic/Magdir/images index 0506915b..8a742b5f 100644 --- a/magic/Magdir/images +++ b/magic/Magdir/images @@ -1,6 +1,6 @@ #------------------------------------------------------------------------------ -# $File: images,v 1.237 2023/02/03 20:23:15 christos Exp $ +# $File: images,v 1.238 2023/04/01 16:08:19 christos Exp $ # images: file(1) magic for image formats (see also "iff", and "c-lang" for # XPM bitmaps) # @@ -4159,3 +4159,40 @@ #!:mime application/octet-stream !:mime image/x-idf !:ext idf + +# Type: ColoRIX VGA Paint Image File (.rix/.sci/.scX) +# From: Eddy Jansson <github.com/eloj> +# Reference: https://www.fileformat.info/format/rix/spec/ +# +0 name rix-header +>0 uleshort x \b, %u x +>2 uleshort x %u +# palette type: +# .. if direct color, low bits encode bpp +>4 ubyte&128 0 +>>4 ubyte&127 x \b %u bpp (direct color) +# .. else palette +>4 ubyte&128 128 +>>4 ubyte&7 0 \b x 2 +>>4 ubyte&7 1 \b x 4 +>>4 ubyte&7 2 \b x 8 +>>4 ubyte&7 3 \b x 16 +>>4 ubyte&7 4 \b x 32 +>>4 ubyte&7 5 \b x 64 +>>4 ubyte&7 6 \b x 128 +>>4 ubyte&7 7 \b x 256 +# storage type +#>5 ubyte&15 0 \b, Linear +>5 ubyte&15 1 \b, Planar (0213) +>5 ubyte&15 2 \b, Planar +>5 ubyte&15 3 \b, Text +>5 ubyte&15 4 \b, Planar lines +>5 ubyte&128 128 \b (compressed) +>5 ubyte&64 64 \b (extension) +>5 ubyte&32 32 \b (encrypted) + +0 string RIX3 ColoRIX Image +>4 use rix-header + +0 string RIX7 ColoRIX Slideshow +>4 use rix-header |