Menu

#31 MIF and MIG file support

None
closed-fixed
5
2023-02-21
2018-04-08
SD Snatcher
No

MIF (MSX Interchange Format) is a compressed graphics file format designed for use on MSX computers. MIG is a newer version of the format, designed for quicker loading.

A package containing a converter, sources for both the MIF (z80 asm) and MIG (in C), and some samples files can be downloaded at this page.

Discussion

  • Piotr Fusik

    Piotr Fusik - 2018-04-16

    The MIG compression looks like a variant of bitbuster, but I have no sample files.
    The MIF compression is hard to figure out from the Z80 asm.

     
  • Piotr Fusik

    Piotr Fusik - 2018-04-16
    • status: open --> accepted
    • assigned_to: Piotr Fusik
    • Group: -->
     
  • SD Snatcher

    SD Snatcher - 2018-04-16

    I converted the MIF samples to MIG, so you can have some files to test.

     
  • Piotr Fusik

    Piotr Fusik - 2018-04-22

    Implemented MIG.

     
  • Piotr Fusik

    Piotr Fusik - 2020-08-12

    Can you get me MIF decompression in pseudocode? Understanding Z80 demif.as is not impossible, but it would take me considerable amount of time.

     
    • SD Snatcher

      SD Snatcher - 2020-08-19

      I'll reach Louthrax, the author of the MIF format, to see if he can provide it.

       
  • Piotr Fusik

    Piotr Fusik - 2021-01-08
    • status: accepted --> pending
     
  • Piotr Fusik

    Piotr Fusik - 2021-01-08

    Waiting for the MIF algorithm.

     
    • SD Snatcher

      SD Snatcher - 2023-02-09

      Louthrax, author of this format, described it as this "MIF is very close from the GIF format but specific to MSX".

      iow, MIF = "MSX GIF". It seems that the section headers are the biggest difference.

       
  • Piotr Fusik

    Piotr Fusik - 2023-02-20

    Thanks for the hint. The header is trivial, but the compression is not identical to GIF. I'd appreciate pseudocode - just for the decompression, because I think I understand everything else.

     

    Last edit: Piotr Fusik 2023-02-20
  • Piotr Fusik

    Piotr Fusik - 2023-02-21
    • status: pending --> closed-fixed
     
  • Piotr Fusik

    Piotr Fusik - 2023-02-21

    Implemented for the samples from mifpackage.zip. The hint about GIF was very helpful!

    If you have sample files for GFX9000 (64 colors and 32768 colors), please attach them.
    Also, are interlaced screen 2 and screen 3 possible?

     

Log in to post a comment.

Auth0 Logo