Results 1 to 5 of 5

Thread: ble - (fixed) bit length encoding

  1. #1
    Member
    Join Date
    Aug 2008
    Location
    Planet Earth
    Posts
    1,026
    Thanks
    103
    Thanked 410 Times in 285 Posts

    ble - (fixed) bit length encoding

    Ble is a (fixed) bit length encoder, it accept parameter 1-7 bits for 1 byte, 9-15 bits for 2 bytes or 17-23 bits for 3 bytes.
    It read 1, 2 or 3 byte(s) depending the parameter bit(s) provided till 2 ^ bit(s) unique values are reached, then it write a header and bitmap (one time encoded if possible) and the 1 bit or smaller encoded input values, this is repeated till end of file.

    The bitmap is encoded by:
    00 = 0
    01 = 1 01
    10 = 1 10
    11 = 1 11

    Bit values 6, 11 and 17 are often best for text files.

    Ble can also be used to expand files.

    Download:
    http://www.metacompressor.com/download/ble.zip

    Windows 32/64-bit command line version.
    Need Microsoft .NET framework 4.6.1.

    Example:

    Encode:
    ble 7 input output

    Decode:
    ble -d input output
    Last edited by Sportman; 12th April 2016 at 02:35.

  2. Thanks:

    encode (5th April 2016)

  3. #2
    Member ivan2k2's Avatar
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    47
    Thanks
    15
    Thanked 8 Times in 5 Posts
    Quote Originally Posted by Sportman View Post
    The bitmap is encoded by:
    00 = 0
    01 = 1 01
    10 = 1 10
    11 = 1 11
    Hint: encoding based on bit pair frequency could improve compression when 00 is not frequent .

  4. #3
    Member Jaff's Avatar
    Join Date
    Oct 2012
    Location
    Dracula's country
    Posts
    104
    Thanks
    115
    Thanked 22 Times in 18 Posts
    WinXP 32bit fix (subversion): replace @offset C8 byte 06 with 04

  5. #4
    Member
    Join Date
    Aug 2008
    Location
    Planet Earth
    Posts
    1,026
    Thanks
    103
    Thanked 410 Times in 285 Posts
    Quote Originally Posted by Jaff View Post
    WinXP 32bit
    Download Microsoft .NET framework 4.0 version for XP 32/64-bit:
    http://www.metacompressor.com/download/ble-xp.zip

  6. Thanks:

    Jaff (12th April 2016)

  7. #5
    Member Jaff's Avatar
    Join Date
    Oct 2012
    Location
    Dracula's country
    Posts
    104
    Thanks
    115
    Thanked 22 Times in 18 Posts
    deleted

Similar Threads

  1. TurboRLE: Turbo Run Length Encoding
    By dnd in forum Data Compression
    Replies: 25
    Last Post: 20th August 2019, 08:21
  2. Replies: 38
    Last Post: 27th April 2016, 18:01
  3. xrle-eXtreme Run Length Encoding
    By algorithm in forum Data Compression
    Replies: 5
    Last Post: 20th April 2015, 23:02
  4. Variable-length Offset
    By Cyan in forum Data Compression
    Replies: 8
    Last Post: 12th December 2008, 13:06
  5. Fixed email sending problems!
    By encode in forum The Off-Topic Lounge
    Replies: 2
    Last Post: 5th May 2008, 15:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •