Adapted for use in WideImage. Code used with permission from the original author de77. http://de77.com/php/open-tga-with-php-imagecreatefromtga
static void bit5( $x)
static void dec_bits( $byte, &$type, &$value)
static void dwordize( $str)
static void imagecreatefromstring( $bin_data)
static void imagecreatefromtga( $filename)
static void rle_decode( $data, $datalen)