Avi2Flc by ssjx (http://ssjx.co.uk)
========================================

Avi2flc can convert AVI files into 256 colour FLC animations.

This was made using the Go Programming Language (https://golang.org/)

Usage
-----

avi2flc myfile.avi

This will result in a file called 'myfile.avi.flc'

By default, a fixed colour palette is used. To use an optimised palette per frame:

avi2flc -best myfile.avi

Note that -best mode is much slower!


Compatability
-------------

The files produced should work with anything that can play FLI/FLC files.

* VLC does not like palette per frame so -best mode FLC do not work with VLC at the time of writing this readme!

* Autodesk Animation Player (v1.00) happily plays any file created with this program.


Getting your AVI in the correct format
--------------------------------------

The AVI file needs to:

* Have a resolution with a width divisible by 4.
* Be 24/32bit uncompressed or compressed using the MSVC codec.
* Have no audio.

VirtualDub (http://virtualdub.org/) is great for creating compatible AVI files.

Changes
-------
v0.4 (June 2021)
+ First version made using Go. Based of the D version.
+ Much better AVI reader
 (from Java Cybiko Viewer)
+ More descriptive output filenames

+ Fixed Ring Frame bug if MSVC avi file used

+ Fixed Ring Frame bug if DIB avi file used and -best colour

+ Potential wasted bytes written in encode_rle() function if count was zero

+ Potential palette header issue if best used all 256 entries

-- D Version History --

v0.3 (Oct 2020)
+ Makes use of modules so easier to compile and better contained
+ MSVC decoder! (Best mode does not work with msvc avi files...)
+ Immutables
+ Some cast() removed due to more accurate shifts

v0.2
+ Name change as it creates FLC not FLI files...
+ Some loops changed to use foreach()
+ Can now handle 32bit AVI files 
+ Added switch '-best' for better colours, slow though...
+ RLE compression!

