Rainbow Technology F16
- Company: Rainbow Technology Group of America
- Extension: .f16
This was a 16-bit (15-bit really) competitor to Flic Video as the 16-bit extensions to Flic format were not (widely) known at that time.
The format can be described as simplified FLI with just two frame types (raw and RLE-compressed) adapted for 16-bit video.
Header format:
- 6 bytes -- unknown
- 2 bytes -- number of frames?
- 2 bytes -- video width
- 2 bytes -- video height
- 2 bytes -- bits per pixel (15)
- 20 bytes -- unknown
The rest of the data is chunks with the following header:
- 2 bytes -- chunk tag (0xFF16)
- 2 bytes -- compression type (0x7B - uncompressed, 0x7C - RLE)
- 4 bytes -- total chunk size (including this header)
RLE compression is a lot like DELTA_FLI: it starts with two 16-bit numbers for the height of coded block and its first start line followed by line data. Line data starts with 16-bit number of lines to skip before starting decoding (except for the very first line), followed by the 16-bit number of operations on the line. Each operation consists of 16-bit skip count and 15-bit run/copy count (top bit being used to tell whether it's copy or run). Both values code data sizes in bytes.