RLE variations

Recommend this page to a friend!

      PHP RLE Compression Algorithm  >  All threads  >  RLE variations  >  (Un) Subscribe thread alerts  
Subject:RLE variations
Summary:What it this algorithm compatible with?
Messages:2
Author:Zylla
Date:2015-01-02 11:38:00
 

  1. RLE variations   Reply   Report abuse  
Picture of Zylla Zylla - 2015-01-02 11:38:00
Hi,

there are several file formats for compresion under common name of RLE compression.

One is used in Windows for bitmaps compression. It is defined for 2, 16 and 256 color palettes bitmap images.

Is your package suitable for bitmap rle compression and decompresion?
After browsing package contents it seems that it is targeted for text file compression.


  2. Re: RLE variations   Reply   Report abuse  
Picture of Chi Hoang Chi Hoang - 2015-01-02 12:57:26 - In reply to message 1 from Zylla
Hi,
this one was a test from an interview. It was for text compression. So, no bitmap compression. But you might interested in the algorithm it uses an optimize rle and such it needs a special character to mark compressed sequence. For example aabb is compressed to aabb and NOT to a2b2 because its not smaller. The same is true for single character aaabbc is compressed to a3b2c and NOT a3b2c1. My algorithm can compress text and numbers. A special character from the code is used to mark other special characters in the compressed code. In the code you can choose any character you want. I hope it helps!
Best regards,
C.H.

 

For more information send a message to info at phpclasses dot org.