A CMOS Smart Pixel for Active 3D Vision Applications