X-ray detection photosensor array integrates ADC