Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
24 May, 2013, 23:47:52 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Bitmap compression - I want to compress my pixel map with rle compression  (Read 174 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
kindermoumoute
LV8 Addict (Next: 1000)
********
Offline Offline

Last Login: Today at 17:48:08
Date Registered: 15 May, 2010, 17:53:56
Posts: 837


Topic starter
Total Post Ratings: +51

View Profile
« on: 11 March, 2012, 02:21:27 »
0

Plop,
I want to compress my bitmap (monochrom) 256*256 pixels (8192 bytes). I tried to make my own rle compression in this way : the first bit to determinate state (1 = pixel on, 0 = pixel off) then 7 bits are used to indicate number of pixels to fill with this value.
eg. this code :

1
[FFFFFFFFFFFFFFFF0000]
Should be :

1
[C010]

Here my code, it leave program without reason. That's probably due to a corrupted RAM (each time it display ARC>7500Ko w00t).
Spoiler for Hidden:
Quote from: Axe
.LMBD
"|vMAPTEMP"Str1
L3+768^^oEND
ClrDrawr
Return!If GetCalc(Str1)
+2A
{A}[e]0*128{L3}
L3C
1I
While I
While OPT1()
OPT2()
End
C++
0{C}
Repeat OPT1()
OPT2()
End
C++
128{C}
End
Disp length(L3)>Dec
Repeat getKey(9)
End
Return

Lbl OPT2
!If C-^^oEND
Disp "L3 DEPASSE
Pause 2000
Returnr
End
{C}+1^128?{C}++,C++
I++
Return

Lbl OPT1
/8+A[e]I
Return

Generated by the BBify'r (http://clrhome.org/resources/bbify/)

* LAMBDAS.8xp (0.37 KB - downloaded 9 times.)
* MAPTEMP.8xv (8.08 KB - downloaded 10 times.)
Logged

Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.182 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.