Converting BMP to JPG

I would like to know how to code this in masm. i found the ijl library (ijl15.dll) which have some exports:


i can't any info about how to use this exports. just some vb code examples

Finally i want to make a screenshot and save as *.jpg! I got a sourcecode from Iczelion's site,but it doesnt work.
is there any other solution?
Posted on 2004-04-22 13:35:59 by diablo2oo2
Posted on 2004-04-23 15:23:33 by QvasiModo
yes i searched here. Now the code (CapScreen.asm) from Iczelions site is working, saves a screenshot (also form opengl) to a Bitmap.

Now my problem is: i want to convert the screenshot to JPG(org JPeG2000)
i have tryed lot of dll's ,but they dont work or they aren't well documented.
Posted on 2004-04-23 16:05:49 by diablo2oo2
i cant believe it. i can capture now BMP and compress them. Not jpg but LWF, is also a good compression. if somebody wants to have source i will post here :) cause i modifyed Capscreen.asm form Iczelions site so that i can Convert my BMP to LWF.

i think its also possible with JPEG2000 now. for JPG i dont have a good lib which i understand.
Posted on 2004-04-24 18:51:24 by diablo2oo2
I'm playing around a bit with the IJG JPEG library right now, it's pretty nice - but the flexibility comes a bit at the cost of complexity. If I get time tomorrow (homework etc), I might write some "easy callable from ASM" wrappers around it and post a DLL and/or static library.

What's the LWF format?
Posted on 2004-04-24 20:09:26 by f0dder
LWF (Lura Wave Format) is a format from . They also have JPEG2000 format on their site. But i dont know where to download. I found their formats (jpeg2000.dll & lwf.dll) in the plugin folder from IrfanView ( then i debugged Irfanview.exe to see how this plugins work, i played a little with ollydbg...till i understood how to use the exports from the dll's.

LWF seems to be also a good compression like JPEG/JPEG2000. its almost the same but not so well known. i am not sure if the LWF format is free,cause the plugin wants a serial. But IrfanView which use the plugin, is freeware.
Posted on 2004-04-25 14:21:14 by diablo2oo2
Looks like the irfanview plugin is commercial. luratech seems to be some pretty greedy bastards... so you better not mess with any of these DLLs if you want to avoid problems and keep your software legal. Under any circumstances, you won't receive any help for using their DLLs on this board.

I haven't had time to play around with the independent JPEG group's stuff yet, sorry... but I *will* look at it, as I have a small project where I need it.
Posted on 2004-04-25 14:29:30 by f0dder

Under any circumstances, you won't receive any help for using their DLLs on this board.

i already know how to use them... and i think
Posted on 2004-04-25 14:46:36 by diablo2oo2