After spending more than a few hours over the weekend pulling my hair out, I've
managed to get some barely working code for a 2D transform.
Paul Bourke's source code uses "bitwise right shift" - and I don't see any
equivalent to that currently available in SDL.
Am I wrong in thinking that a bitwise right shift is just a numerical division
by 2?
I had some problems with variables in my loops - is there a limit to how many
times a variable name can be used in nested loops / includes / macros / etc?
I kept getting a "cannot assign uninitialized identifier" error when using
#local, and then "cannot pass uninitialized identifier to LValue (whatever that
is)" when using #declare.
I (sort of) fixed it - but I only needed to recode about half of the instances
of this to get the full code to work - the latter half using #local works just
fine.
Very strange.
I will post code later to illustrate.
Working on this raised many questions, that I will ask later, perhaps in
(an)other thread(s).
Post a reply to this message
Attachments:
Download '2d_fft_test_2.png' (239 KB)
Preview of image '2d_fft_test_2.png'
|