Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Michael Van Canneyt
On Sat, 23 Feb 2013, Andrew Brunner wrote: Hi guys, I just finished (a beta) of a collage app for Aurawin. I'm seeing a huge load on my servers when scaling images using the Image factory classes for JPEG, and PNG. Prefix: 6 Core AMD 64 32GB RAM Ubuntu 12.10 x64 8 Core AMD 64 32GB RAM Ub

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Sven Barth
On 24.02.2013 11:44, Michael Van Canneyt wrote: srcImg:=TFPMemoryImage.Create(0,0); Do not use TFPMemoryImage. It is a catch-all memory format, not optimized at all, using 64 bits for the images. Instead, use e.g. TFPCompactImgRGBA8Bit if you need alpha or TFPCompactImgRGB8Bit if you do no

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Michael Van Canneyt
On Sun, 24 Feb 2013, Sven Barth wrote: On 24.02.2013 11:44, Michael Van Canneyt wrote: srcImg:=TFPMemoryImage.Create(0,0); Do not use TFPMemoryImage. It is a catch-all memory format, not optimized at all, using 64 bits for the images. Instead, use e.g. TFPCompactImgRGBA8Bit if you need

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Sven Barth
On 24.02.2013 12:43, Michael Van Canneyt wrote: On Sun, 24 Feb 2013, Sven Barth wrote: On 24.02.2013 11:44, Michael Van Canneyt wrote: srcImg:=TFPMemoryImage.Create(0,0); Do not use TFPMemoryImage. It is a catch-all memory format, not optimized at all, using 64 bits for the images. In

[fpc-pascal] FPC 2.6.2 released!

2013-02-24 Thread Marco van de Voort
Hello, Finally, FPC 2.6.2 has landed. FPC 2.6.2 is an update to 2.6.0 that contains most library progress in 2012 and some crucial compiler fixes, as well as a few new targets. Building is still in progress and some formats (deb,rpm) and targets might not be available yet. Changes that may brea

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Michael Van Canneyt
On Sun, 24 Feb 2013, Sven Barth wrote: Maybe a collection of algorithms for in memory rescaling would be nice... There are a lot of them, that is what the interpolations are for, but they work with a canvas. The case of rescaling an image and simply send the resulting image as a file was not

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Andrew Brunner
On 02/24/2013 04:44 AM, Michael Van Canneyt wrote: Try to get rid of the XML, it is always going to be slow. Using XML can slow your applications with a factor 6. If you are mime-encoding an image, it'll be even more. I was just thinking about that. I think JSON would be ok, especially if I

[fpc-pascal] Regression? Problem passing a packed record to a overriden, virtual, abstract method in fpc 2.7.1.

2013-02-24 Thread Reimar Grabowski
Hi, see the following little program: program argumentbug; {$MODE ObjFpc} uses classes; type TVector3 = packed record X, Y, Z: Single; end; TClassA = class protected fVector: TVector3; public procedure SetVector(AVector: TVector3); virtual; abstract; end; { TClassB } TClassB = class(

[fpc-pascal] differences between .pp and .pas files

2013-02-24 Thread Eric Kom
Good day, Please what is a difference between .pp and .pas files extension? -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ fri

Re: [fpc-pascal] differences between .pp and .pas files

2013-02-24 Thread Ralf A. Quint
At 09:34 PM 2/24/2013, Eric Kom wrote: Good day, Please what is a difference between .pp and .pas files extension? two characters... ;-) _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends.

[fpc-pascal] Re: differences between .pp and .pas files

2013-02-24 Thread Reinier Olislagers
On 25-2-2013 6:34, Eric Kom wrote: > Good day, > > Please what is a difference between .pp and .pas files extension? As Ralf said: 2 letters. I have the idea .pp was used in the past to differentiate from other Pascal compilers, while .pas is used more commonly now. Groete, Reinier _

[fpc-pascal] Re: Performance problems with Image Conversions

2013-02-24 Thread Reinier Olislagers
On 24-2-2013 18:35, Andrew Brunner wrote: > If not, does anyone have lightning fast scaling methods in C++ or Java > that I can port/contribute? You might want to look if e.g. ImageMagick is faster for your needs. There's bindings for it in Pascal: http://wiki.lazarus.freepascal.org/PascalMagick

Re: [fpc-pascal] Re: differences between .pp and .pas files

2013-02-24 Thread silvioprog
2013/2/25 Reinier Olislagers > On 25-2-2013 6:34, Eric Kom wrote: > > Good day, > > > > Please what is a difference between .pp and .pas files extension? > > As Ralf said: 2 letters. I have the idea .pp was used in the past to > differentiate from other Pascal compilers, while .pas is used more >

[fpc-pascal] unsubscribe

2013-02-24 Thread Jean-Francois Jouvet
Hello Please unsubscribe me (no more use of free pascal) Thanks a lot -- Jean-françois Jouvet OPALES 140 rue Désiré Monnier 39000 Lons-le-Saunier TEL 03 84 24 88 66 FAX 03 84 24 88 67 jf.jou...@opales.fr ___ fpc-pascal maillist - fpc-