News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Bitmap to Jpeg

Started by LechooY, May 13, 2006, 08:29:20 AM

Previous topic - Next topic

LechooY

Hi All  :U

A have a problem How convert bmp to jpg?  :'(

Search forum (and oldforum) I find http://www.masmforum.com/simple/index.php?topic=937 but is only load jpg.

GDI+ is not included in Windows 2000/9x

Maybe someone have any article or code?

Ossa

Hi,

the code for JPEG compression is fairly complex (involving an 8x8 DCT on each 8x8 luminence block and an 8x8 DCT on each subsampled 16x16 chrominance block... then using one of huffman + RLC encoding or arithmetic coding for entropy compression). As a result, I would try to find a JPEG library and use that.

If you want to code it yourself, I can recommend "The JPEG Book": http://www.amazon.com/gp/product/0442012721/102-2352627-4328116?v=glance&n=283155

If you have any trouble with the mathematics (as I remember, it takes knowledge of complex numbers, calculus, fourier transforms, and basic entropy coding as given), I'll be happy to help. But I really do recommend finding a JPEG library.

Ossa
Website (very old): ossa.the-wot.co.uk

LechooY

Thanks Ossa  :U

You have rights I must find JPEG library.