Raymond,

I'd really appreciate your help. =)
I guess that I was asking was a silly question.

I've tried the hq3x algorithm but the D compiler gets stuck at the big switch who does the interpolation between the pixels (maybe a BUG of the compiler itself?).
That's why the I choose the 2xsai algorithm.

Anyway,
While I was reading your response, it gives me an idea and that's to simplify the switch.
So, I've to thank you one more time. =)

Thanks for the help and the time!

On Feb 12, 2008 2:35 PM, Raymond Barbiero <raymond.barbiero@gmail.com> wrote:
For pixel scaling algorithms, wikipedia is your friend:

http://en.wikipedia.org/wiki/Pixel_art_scaling_algorithms

Via wikipedia there is the hq3x algorithms with source and demos:

http://www.hiend3d.com/hq3x.html

For help on things not related to algorithms, try the sweng-gamedev mailing list.

Good luck!

On Feb 11, 2008 8:04 PM, Sebastian Lucas <delsilucas@gmail.com> wrote:
Hi,

I'm trying to port this two C/Allegro image filters to the SDL engine but for the D language.
I was trying to make it work under this environment but it keeps on throwing too many errors.

My steps:
1) run cpp.exe to clean all the C file (macros, #ifdef, etc)
2) using the D help file (chm) I've replaced all the variables with their equivalents.

But I get stuck at the Allegro to SDL conversion.

Does anybody know how to convert the code from Allegro to SDL?
Or...
Does anybody know how to make it work with generic buffers? (arrays of bytes, etc)

I'd really appreciated any tips or help because I'm really close to hit my head into the walls. =...(

Regards,

--

Sebastian Javier Lucas
Programmer & Guitar Hero

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
GDAlgorithms-list mailing list
GDAlgorithms-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list



--
Raymond "VisualPhoenix" Barbiero
Programmer
EA Montreal

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
GDAlgorithms-list mailing list
GDAlgorithms-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list



--

Sebastian Javier Lucas
Programmer & Guitar Hero