Re: [Lazarus] Using libjpeg

2016-04-19 Thread Aradeonas
Hi, Thanks for explanation Sandro. I checked your demo and even other demos and I can say they are interesting, I wish I had the source specially JPEG demo so I can check your results. Regards, Ara -- http://www.fastmail.com - Does exactly what it says on the tin -- _

Re: [Lazarus] Using libjpeg

2016-04-18 Thread Sandro Cumerlato
Hello Ara, On 18 April 2016 at 16:02, Aradeonas wrote: > Thanks. > I will test it. > Is there any particular reason that you didnt use official release? > I find convenient to use prebuilt binaries from the mingw-w64/msys2 toolchain, especially when I have to use several libraries within the sa

Re: [Lazarus] Using libjpeg

2016-04-18 Thread Aradeonas
Thanks. I will test it. Is there any particular reason that you didnt use official release? Why there is much difference? It seems I miss something! Regards, Ara -- http://www.fastmail.com - A fast, anti-spam email service. -- ___ Lazarus mailing

Re: [Lazarus] Using libjpeg

2016-04-18 Thread Sandro Cumerlato
Hello Ara, I'm using mingw-w64/msys2 binaries: http://repo.msys2.org/mingw/i686/mingw-w64-i686-libjpeg-turbo-1.4.2-2-any.pkg.tar.xz http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libjpeg-turbo-1.4.2-2-any.pkg.tar.xz look at turbojpeg.h and libturbojpeg-0.dll included. Best regards. Sandro

Re: [Lazarus] Using libjpeg

2016-04-18 Thread Aradeonas
Thank you very much for sharing. Clean. I looked into it and its questioning for me how it works? Implementations like I mentioned is not like it and documentations and even dlls in here http://www.libjpeg-turbo.org/Documentation/OfficialBinaries are not like that. Can you explain more? Regards,

Re: [Lazarus] Using libjpeg

2016-04-18 Thread Sandro Cumerlato
Hello Marc, images are preloaded into separated memory streams, the core part of the comparison is performed by a separated thread: procedure TMyThread.Execute; var jpegDecompressor: tjhandle; jpegWidth: cint; jpegHeight: cint; jpegSubsamp: cint; begin while (not Terminated) do begin

Re: [Lazarus] Using libjpeg

2016-04-18 Thread Marc Weustink
Sandro Cumerlato wrote: Hello Ara, my tests with libjpeg-/turbo/are even more promising. The following comparison between LCL and libjpeg-/turbo/ was made decompressing for about one minute a sequence of several 4000x3000 JPEG pictures. The results are expressed in "pictures per second" and prov

Re: [Lazarus] Using libjpeg

2016-04-17 Thread Aradeonas
Very interesting! Thanks for sharing, maybe I was wrong in implementation. Do you used any different header or implementation? Can you share it? @All : Is there a way to use libjpeg-*turbo *with Lazarus *without* using an external library like DLL? Regards, Ara -- http://www.fastmail.com -

Re: [Lazarus] Using libjpeg

2016-04-17 Thread Sandro Cumerlato
Hello Ara, my tests with libjpeg-*turbo* are even more promising. The following comparison between LCL and libjpeg-*turbo* was made decompressing for about one minute a sequence of several 4000x3000 JPEG pictures. The results are expressed in "pictures per second" and prove that libjpeg-*turbo* is

Re: [Lazarus] Using libjpeg

2016-03-31 Thread Aradeonas
Thanks but I need libjpeg using because of speed and fpimage with UsePalette := False is not fast enough. My tests with libjpeg.dll and this header[1] id much faster than fpimage (half the time) so I wanted to have a native way using pasjpeg instead of a dll. Regards, Ara Links: 1. http:/

Re: [Lazarus] Using libjpeg

2016-03-31 Thread Mattias Gaertner
On Thu, 31 Mar 2016 09:49:44 +0200 (CEST) Michael Van Canneyt wrote: > > > On Wed, 30 Mar 2016, Aradeonas wrote: > > > Hi, > > > > I want use libjpeg and I found pasjpeg package in fpc that contains > > jpeglib.pas unit Unit jpeglib does not use libjpeg. > > but I coudnt find a working dem

Re: [Lazarus] Using libjpeg

2016-03-31 Thread Michael Van Canneyt
On Wed, 30 Mar 2016, Aradeonas wrote: Hi, I want use libjpeg and I found pasjpeg package in fpc that contains jpeglib.pas unit but I coudnt find a working demo to know how load a jpeg file and show it. Can anyone point me to a better direction? pasjpeg is very low-level. Why not use tfpimag

[Lazarus] Using libjpeg

2016-03-30 Thread Aradeonas
Hi, I want use libjpeg and I found pasjpeg package in fpc that contains jpeglib.pas unit but I coudnt find a working demo to know how load a jpeg file and show it. Can anyone point me to a better direction? Regards, Ara -- http://www.fastmail.com - mmm... Fastmail... -- ___