src/sampler.cc
branchpyrit
changeset 87 1081e3dd3f3e
parent 82 930a2d3ecaed
child 88 f7edb3b90816
equal deleted inserted replaced
86:ce6abe0aeeae 87:1081e3dd3f3e
   176 		}
   176 		}
   177 	}
   177 	}
   178 	else if (phase == 2)
   178 	else if (phase == 2)
   179 	{
   179 	{
   180 		/* grid oversampling */
   180 		/* grid oversampling */
   181 		static const int gridsamples[] = {1,5,9,16};
   181 		static const int gridsamples[] = {1,4,9,16};
   182 		static const Float osa5x[] = {0.0, -0.4, +0.4, +0.4, -0.4};
   182 		static const Float osa4x[] = {-0.25, +0.25, +0.25, -0.25};
   183 		static const Float osa5y[] = {0.0, -0.4, -0.4, +0.4, +0.4};
   183 		static const Float osa4y[] = {-0.25, -0.25, +0.25, +0.25};
   184 		static const Float osa9x[] = {-0.34,  0.00, +0.34,
   184 		static const Float osa9x[] = {-0.34,  0.00, +0.34,
   185 			-0.34,  0.00, +0.34, -0.34,  0.00, +0.34};
   185 			-0.34,  0.00, +0.34, -0.34,  0.00, +0.34};
   186 		static const Float osa9y[] = {-0.34, -0.34, -0.34,
   186 		static const Float osa9y[] = {-0.34, -0.34, -0.34,
   187 				0.00,  0.00,  0.00, +0.34, +0.34, +0.34};
   187 				0.00,  0.00,  0.00, +0.34, +0.34, +0.34};
   188 		static const Float osa16x[] = {-0.375, -0.125, +0.125, +0.375,
   188 		static const Float osa16x[] = {-0.375, -0.125, +0.125, +0.375,
   189 			-0.375, -0.125, +0.125, +0.375, -0.375, -0.125, +0.125, +0.375,
   189 			-0.375, -0.125, +0.125, +0.375, -0.375, -0.125, +0.125, +0.375,
   190 			-0.375, -0.125, +0.125, +0.375};
   190 			-0.375, -0.125, +0.125, +0.375};
   191 		static const Float osa16y[] = {-0.375, -0.375, -0.375, -0.375,
   191 		static const Float osa16y[] = {-0.375, -0.375, -0.375, -0.375,
   192 			-0.125, -0.125, -0.125, -0.125, +0.125, +0.125, +0.125, +0.125,
   192 			-0.125, -0.125, -0.125, -0.125, +0.125, +0.125, +0.125, +0.125,
   193 			+0.375, +0.375, +0.375, +0.375};
   193 			+0.375, +0.375, +0.375, +0.375};
   194 		static const Float *osaSx[] = {NULL, osa5x, osa9x, osa16x};
   194 		static const Float *osaSx[] = {NULL, osa4x, osa9x, osa16x};
   195 		static const Float *osaSy[] = {NULL, osa5y, osa9y, osa16y};
   195 		static const Float *osaSy[] = {NULL, osa4y, osa9y, osa16y};
   196 		const int samples = gridsamples[oversample];
   196 		const int samples = gridsamples[oversample];
   197 		const Float *osax = osaSx[oversample];
   197 		const Float *osax = osaSx[oversample];
   198 		const Float *osay = osaSy[oversample];
   198 		const Float *osay = osaSy[oversample];
   199 
   199 
   200 		if (sx < 0)
   200 		if (sx < 0)