[fpc-pascal] fpcanvas and Interpolation filters
Hi, Looking at the 'fpcanvas' unit in FCL it seems we only have the Mitchel Interpolation implemented. Is this a correct assumption? What about a few other types? 'Box' aka "Nearest Neighbour" 'Triangle' aka "Linear" or "Bilinear" 'Hermite' 'Bell' 'B-Spline' 'Lanczos3' I have some pascal implementations for the others and if they are not part of FCL already, I can always create a patch to add them. Would this be a worthy effort? Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: fpcanvas and Interpolation filters
OK, I answered by own question. I found the 'extinterpolation' unit which contains a whole bunch of interpolation filters defined. :-) Graeme. On 28/06/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: Hi, Looking at the 'fpcanvas' unit in FCL it seems we only have the Mitchel Interpolation implemented. Is this a correct assumption? What about a few other types? 'Box' aka "Nearest Neighbour" 'Triangle' aka "Linear" or "Bilinear" 'Hermite' 'Bell' 'B-Spline' 'Lanczos3' I have some pascal implementations for the others and if they are not part of FCL already, I can always create a patch to add them. Would this be a worthy effort? Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] fcl-image and fpreadXXX units
Hi, In the fcl-image directory is a lot of fpreadXXX and fpwriteXXX units. Are those full implementations or are they abstract classes like TFPCustomFont, TFPCustomCanvas, etc? In other words, do I still need to implement parts of them to be able to use them? Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fcl-image and fpreadXXX units
On 6/28/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: In the fcl-image directory is a lot of fpreadXXX and fpwriteXXX units. Those are low-level image reading and writing (to disk or stream) routines. They implement the TFPCustomImageReader (or Writer) class. They are used together with TFPCustomImage from fpimage.pp file. AFAIK they are not directly related to TFPCustomCanvas, and you don't need to use it in order to use those units. By the way, I once wrote a reader unit for the X11 dump format. If I can find it, I'll commit. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fcl-image and fpreadXXX units
On 28/06/07, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: They are used together with TFPCustomImage from fpimage.pp file. AFAIK they are not directly related to TFPCustomCanvas, and you don't need to use it in order to use those units. 'fpcanvas' references 'fpimage' in the uses clause. Also TFPCustomCanvas uses TFPCustomImage in methods like procedure DoDraw (x,y:integer; Const image:TFPCustomImage); virtual; abstract; So I believe they all work hand-in-hand. PS: My employer gave me a week to work with fpGUI and see how viable it could be as a widget set for our projects. If it's viable, more time will be scheduled to work of fpGUI. :-) Graeme. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fcl-image and fpreadXXX units
On 28/06/07, Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: On 6/28/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > 'fpcanvas' references 'fpimage' in the uses clause. I wanted to make it clear that fpimage doesn't use fpcanvas =) It seams I didn't express it correctly. Ah yes, reading your email again I see what you meant. Thanks. Graeme. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fcl-image and fpreadXXX units
On 6/28/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: 'fpcanvas' references 'fpimage' in the uses clause. I wanted to make it clear that fpimage doesn't use fpcanvas =) It seams I didn't express it correctly. -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] fpcanvas and Interpolation filters
On Thu, 28 Jun 2007, Graeme Geldenhuys wrote: > Hi, > > Looking at the 'fpcanvas' unit in FCL it seems we only have the > Mitchel Interpolation implemented. Is this a correct assumption? No. There is a second unit which implements other interpolations: extinterpolation. It registers the following interpolations: TBlackmanInterpolation = class (TFPBaseInterpolation) TBlackmanSincInterpolation = class (TFPBaseInterpolation) TBlackmanBesselInterpolation = class (TFPBaseInterpolation) TGaussianInterpolation = class (TFPBaseInterpolation) TBoxInterpolation = class (TFPBaseInterpolation) THermiteInterpolation = class (TFPBaseInterpolation) TLanczosInterpolation = class (TFPBaseInterpolation) TQuadraticInterpolation = class (TFPBaseInterpolation) TCubicInterpolation = class (TFPBaseInterpolation) TCatromInterpolation = class (TFPBaseInterpolation) TBilineairInterpolation = class (TFPBaseInterpolation) THanningInterpolation = class (TFPBaseInterpolation) THammingInterpolation = class (TFPBaseInterpolation) > > What about a few other types? > 'Box' aka "Nearest Neighbour" > 'Triangle' aka "Linear" or "Bilinear" > 'Hermite' > 'Bell' > 'B-Spline' > 'Lanczos3' > > I have some pascal implementations for the others and if they are not > part of FCL already, I can always create a patch to add them. Would > this be a worthy effort? Absolutely. Make sure they don't overlap with the currently existing ones. Box and Lanczos seem to be there already. You can implement them in the same unit btw. Michael. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] some problem with assembler code generated by fpc for arm
Hi everyone, I try to compiling a pascal unit with fpc and It compiles okey for i386 but arm with fpcrossarm compiling file show this two error: Compiling luaobjects.pas Assembling luaobjects luaobjects.s: Assembler messages: luaobjects.s:2078: Error: co-processor address must be word aligned -- `ldfd f0,[r0,#1]' luaobjects.s:2306: Error: co-processor address must be word aligned -- `ldfd f0,[r0,#1]' this error are due to next pascal line extracted from pascal file line1) eluaNumber : Result := FLoatToStr(Value.LuaNumber); line2) eluaNumber : Result := Round(Value.LuaNumber); it seems there is some problem with Floattostr and round ( I have tried to compile this file with fpc for arm v2.1.4 and v2.3.1 any suggestion? thank you ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal