|
Re: Global Constants
Posted the code but plum forgot to describe how the values in the table should run, basically they should run something like this, borrowed the table from deltacoder to show as an example. The table can be generated by using
ti=cos(PI / 2 * i / M) * 255
where ti is the table element, i is the element number and M is the number of table elements
cos_lookup_table[90] =
{ 0, 4, 9, 13, 18, 22, 27, 31, 35, 40,
44, 49, 53, 57, 62, 66, 70, 75, 79, 83,
87, 91, 96, 100,104,108,112,116,120,124,
128,131,135,139,142,146,150,153,157,160,
164,167,171,174,177,180,183,186,190,192,
195,198,201,204,206,209,211,214,216,219,
221,223,225,227,229,231,233,235,236,238,
240,241,243,244,245,246,247,248,249,250,
251,252,253,253,254,254,254,255,255,255 };
|