Thread: DIB compression

  1. #1
    Registered User SAMSAM's Avatar
    Join Date
    Nov 2001
    Posts
    218

    DIB compression

    when compressin a DIB by RLE are we adding extra 2 BYTES of code inside a bitmap code on a repeatative every now and then?

    if thats the way by encrypting it doesnt that in effect enlarge the bitmap storage?

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    not when there's long rows of a single color. In these cases you can store a large number of pixels in just a few bytes. run length encoding is a good place to start on image compression but don't get carried away thinking it's going to out-do jpeg or something.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    Sorry for bringing this thread back but I have a request related to it. I don't seem to have the ability to create a bmp of a certain type for testing. Perhaps one of you has a way to do it.

    the type is 4 bit RLE compressed. I'm reading all the others fine but I don't have a 4 bit RLE bmp to test with.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Compression
    By Ezerhorden in forum C++ Programming
    Replies: 5
    Last Post: 02-11-2006, 10:19 AM
  2. compression
    By X PaYnE X in forum C Programming
    Replies: 20
    Last Post: 01-11-2005, 05:14 PM
  3. efficient compression algorithm pls
    By gooddevil in forum C Programming
    Replies: 7
    Last Post: 05-08-2004, 03:33 AM
  4. DIB & DDB
    By samsam1 in forum Windows Programming
    Replies: 3
    Last Post: 01-19-2003, 12:33 PM
  5. How can I do the following..
    By Dual-Catfish in forum C++ Programming
    Replies: 14
    Last Post: 05-01-2002, 03:38 AM