Implementation of a TIM2 coder (#1571)
* Added ScaleColor4to8 and converse functions
* Implementation mostly done
* Build setup
* reordered processing of clut and pixels
* Added support for Shuffled CLUTs
* Revert "Added ScaleColor4to8 and converse functions"
This reverts commit
b0bd8a59ccd775fb17fc3d1db312806bf6146d93.
* Added more exceptions thrown when header is incorrect
* created enums and compacted rgb read functions
* Added alpha channel and changed alpha scaling
* Added support for format_type==1
* New define for assigning clut colors
* Changed names to avoid namespace conflicts
* Fixed alpha channel of RGB24 encoding
* Incorporated sanity check into the switch