 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Rafael Colucci Guest
|
Posted: Fri May 13, 2005 7:18 pm Post subject: String compactor |
|
|
Hi people
Exists any compactor wrote in asm or faster like?
Rafael Colucci
|
|
| Back to top |
|
 |
John Herbster Guest
|
Posted: Mon May 16, 2005 6:41 pm Post subject: Re: String compactor |
|
|
"Rafael Colucci" <tecnologia1 (AT) prolink (DOT) inf.br> wrote
| Quote: | [does there exist] any compactor wrote in asm ...?
|
Rafael,
What kind of compaction algorithms are you hoping for --
Abbreviation of long runs of same character, use of dictionary,
etc?
How long are the sequences to be independently encoded?
Regards, JohnH
|
|
| Back to top |
|
 |
Rafael Colucci Guest
|
Posted: Mon May 16, 2005 8:04 pm Post subject: Re: String compactor |
|
|
I´m hoping for a algorithm that compact a string of a bitmap
(bitmap.savetostream) ... Algo like zip, lhz, lha ....
Rafael Colucci
"John Herbster" <herb-sci1_at_sbcglobal.net> escreveu na mensagem
news:4288e956$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Rafael Colucci" <tecnologia1 (AT) prolink (DOT) inf.br> wrote
[does there exist] any compactor wrote in asm ...?
Rafael,
What kind of compaction algorithms are you hoping for --
Abbreviation of long runs of same character, use of dictionary,
etc?
How long are the sequences to be independently encoded?
Regards, JohnH
|
|
|
| Back to top |
|
 |
Jussi Guest
|
Posted: Tue May 17, 2005 4:15 am Post subject: Re: String compactor |
|
|
you can use zlib.pas (included in delphi)
filestream := tfilestream.create('MyCompressedFile.zlib',fmCreate);
zstream := tcompressionstream.create(tfilestream,clDefault);
bitmap.savetostream(zstream);
zstream.free;
filestream.free;
Juhani Suhonen
"Rafael Colucci" <tecnologia1 (AT) prolink (DOT) inf.br> wrote
| Quote: | I´m hoping for a algorithm that compact a string of a bitmap
(bitmap.savetostream) ... Algo like zip, lhz, lha ....
Rafael Colucci
"John Herbster" <herb-sci1_at_sbcglobal.net> escreveu na mensagem
news:4288e956$1 (AT) newsgroups (DOT) borland.com...
"Rafael Colucci" <tecnologia1 (AT) prolink (DOT) inf.br> wrote
[does there exist] any compactor wrote in asm ...?
Rafael,
What kind of compaction algorithms are you hoping for --
Abbreviation of long runs of same character, use of dictionary,
etc?
How long are the sequences to be independently encoded?
Regards, JohnH
|
|
|
| Back to top |
|
 |
Avatar Zondertau Guest
|
Posted: Tue May 17, 2005 6:44 am Post subject: Re: String compactor |
|
|
| Quote: | I4m hoping for a algorithm that compact a string of a bitmap
(bitmap.savetostream) ... Algo like zip, lhz, lha ....
|
Hi Rafael,
I guess this is about the same problem you discussed in the gaphics and
multimedia newsgroups then?
Some solutions were suggested there, but you didn't indicate why you
though they weren't useful to you. Just posting the question again and
again won't help you unless you tell us what's wrong with those
solutions.
We're all trying to help people here, but can only do so if these
people really want to be helped, that is they provide enough
information for us to be able to help them.
|
|
| Back to top |
|
 |
Avatar Zondertau Guest
|
Posted: Tue May 17, 2005 6:22 pm Post subject: Re: String compactor |
|
|
| Quote: | I guess this is about the same problem you discussed in the gaphics
and multimedia newsgroups then?
Some solutions were suggested there, but you didn't indicate why you
though they weren't useful to you. Just posting the question again and
again won't help you unless you tell us what's wrong with those
solutions.
We're all trying to help people here, but can only do so if these
people really want to be helped, that is they provide enough
information for us to be able to help them.
|
Reply from Rafael (sent by e-mail):
In the others news my problem was a bitmap stream over network .. I
solved the problem using bitmaps diference .. In this case, I dont have
a bitmap to compare, so, I have to use a compact algorithm. JPG and PNG
are lossy algorithms that i can?t use .. i have to use a lossless
algorithm ...
Sorry if I don?t explain my question because my english is not very
good ..
|
|
| Back to top |
|
 |
Lars Guest
|
Posted: Tue May 17, 2005 6:50 pm Post subject: Re: String compactor |
|
|
Hi
Avatar Zondertau wrote:
| Quote: | Reply from Rafael (sent by e-mail):
a bitmap to compare, so, I have to use a compact algorithm. JPG and PNG
are lossy algorithms that i can?t use .. i have to use a lossless
algorithm ...
|
From the
http://www.libpng.org/pub/png/
is PNG lossless.
cut out from the page
'A Turbo-Studly Image Format with Lossless Compression'
Lars G
|
|
| Back to top |
|
 |
Rafael Colucci Guest
|
Posted: Tue May 17, 2005 7:32 pm Post subject: Re: String compactor |
|
|
Hummmm ... sorry ... I will try with PNG ...
Rafael Colucci
"Lars" <lbg_ (AT) _adslhome (DOT) dk> escreveu na mensagem
news:428a3cd7$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi
Avatar Zondertau wrote:
Reply from Rafael (sent by e-mail):
a bitmap to compare, so, I have to use a compact algorithm. JPG and PNG
are lossy algorithms that i can?t use .. i have to use a lossless
algorithm ...
From the
http://www.libpng.org/pub/png/
is PNG lossless.
cut out from the page
'A Turbo-Studly Image Format with Lossless Compression'
Lars G
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|