Grey-scale calculation for self-luminous devices