Hallo Ivanko,

Du schriebst am Sat, 2 Feb 2013 21:14:37 +0500:

> It is a very simple but fast RLE encoding
> ===============================
> Checked with the PCX (uses such encoding AFAIK) format first of all -
> huge loss compared to original JPEG.
> 100K JPEG = 250K WIC = 1.88M PCX+RLE = 1.88M BMP+RLE 5M BMP+RLE/
> The test image is here attached.

Well, this is a very good example of an extremely unfit image for this kind
of compression - lots of delicate shadings and gradients and fine details.
Even thogh parts look nearly structureless to the eye, they contain
continuously changing colors, which break any attempt to find long runs of
equal pixels on which the RLE algorithm relies.
Accordig to what you wrote, you _did_ get an about 20% compression, which
I'd judge to be a very good result here.

> Please do not store big images in pixmaps at design time.
> ===============================
> Splash screens, backgrounds etc enlarging executables by Mbytes,.. It
> would be excellent to avoid that :)

Yes, right - put'em in their own files, and load'em if needed, using a
loader that understands a suitable compression method. JPEG is lossy but
has extreme compression, although it's not well suited for "drawing" like
pictures, PNG is lossless, still has very good compression and prodces no
artefacts, and GIF is lossless too, produces even better compression, but
at the expense of color resolution (cleary, 1/3 the data compress "better"
than the whole amount;). There are others, but these three might be best
suited to your requirement.
BTW: maybe you could use Martin's "bmp2pas" (possibly modified) to convert
a JPEG or PNG picture into an array constant and retrieve it at run time "on
the fly" to feed the corresponding loader routine?

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to