Precompute channels_info to speed up RGB processing