![]() |
|
D A T A compression && GIMP C Images |
BAF
Member #2,981
December 2002
![]() |
How exactly does data compression work and how could I implement high ratio compression into my program? And in the GIMP, GNU Image Manipulation Program , how do I display images saved as 'C Source' with allegro? |
Bruce Perry
Member #270
April 2000
|
Quote: How exactly does data compression work and how could I implement high ratio compression into my program? It's a huge subject. For generic compression, your best bet is probably to use zlib. For specific types of data, you can look into lossless formats like PNG and FLAC, and lossy formats like JPEG, Ogg Vorbis and Speex. You won't be able to beat these programs unless you are a mad, worryingly smart scientist with no life. For the GIMP question, include the code in your program. Call create_bitmap(). Then call putpixel() several times. Don't forget destroy_bitmap() at the end. -- |
BAF
Member #2,981
December 2002
![]() |
oh, the c code are the pixels?::) |
Bruce Perry
Member #270
April 2000
|
No. They're aeroplanes. What did you think they were? -- |
spellcaster
Member #1,493
September 2001
![]() |
Quote: What did you think they were?
Penguins? And, as discovered in one of Dirk Gently's books, most of your brain is filled with penguins anyway -- |
X-G
Member #856
December 2000
![]() |
Get it right. It's The Long Dark Tea-Time of the Soul. -- |
Bruce Perry
Member #270
April 2000
|
According to Guu, your brain is filled with Manda or little plump pink birds. I forget which. Maybe both, depending on the season. -- |
|