Fix for pixel artifacts, issue 710. A few other bug fixes found along the way, too.

This commit is contained in:
Emil Martinec
2011-06-04 10:16:02 -05:00
parent 6cba0608c9
commit 0d57315976
7 changed files with 59 additions and 102 deletions

View File

@@ -25,20 +25,21 @@
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
static float *dirwt;
//static float *dirwt;
static LUTf dirwt (0x10000);
static void __attribute__((constructor)) setup_dirwt()
{
dirwt = new float[0x10000];
//dirwt = new float[0x10000];
//set up directional weight function
for (int i=0; i<0x10000; i++)
dirwt[i] = 1.0/SQR(1.0+i);
}
static void __attribute__((destructor)) cleanup_dirwt()
/*static void __attribute__((destructor)) cleanup_dirwt()
{
delete [] dirwt;
}
}*/
void RawImageSource::fast_demo(int winx, int winy, int winw, int winh) {
//int winx=0, winy=0;