 	}
 }
 
-enum {
-	D0_THRESHOLD = 200,
-	DSUM_THRESHOLD = 400,
-};
-
 __global__ void denoiseKernelTemporalAvg(
 		KernelContext *ctx, uint32_t *out,
 		int h, int w, int perThread) {

	}
}

__global__ void denoiseKernelAdaptiveTemporalAvg(
		KernelContext *ctx, uint32_t *out,
		int h, int w, int perThread) {
	int k = blockDim.x * blockIdx.x + threadIdx.x;
	int lower = k * perThread;

			r += v & 0xff;
			g += (v >> 8) & 0xff;
			b += (v >> 16) & 0xff;
		}
		r /= i;
		g /= i;
