I found a good article on this topic when I was asking the same question.


http://luminous-landscape.com/tutorials/prophoto-rgb.shtml


It helped me to understand.