Quote:
Originally Posted by Toni Wilen
Quote:
Originally Posted by mark_k
By the way, it looks like you do ST palette correction after gamma correction. Would it be better to do that before gamma correction?

I don't know and don't care

Thinking about it some more, you should definitely do STcorrection before gamma correction. [Maybe the rest of this could/should be moved to a different thread...]
I'll refer to brightness as ranging from 0 (black) to 1 (white) as that's simpler when talking about gamma correction (just raise to a power). Whatever the gamma correction factor y, 0^y = 0 and 1^y = 1. Black and white are always unchanged.
Suppose the user gammacorrects with a value of 2. Unadjusted "ST white" is value 7/15. That becomes (7/15)^2 = 0.2178 approx after gamma correction. If we then double it (correcting ST to Amiga 4bit) you get 0.4356 approx. So even ST white becomes less than 50% grey after STcorrection.
Alternatively, suppose the gamma correction factor is 0.5. Then ~halfbrightness ST is 4/7, i.e. 4/15 Amiga = $44/255 8bit = 0.2667 approx. Raise that to power 0.5 ==> 0.5164 approx. If we do STcorrection after that, end up with 1.0323 which clips to 1 (i.e. full white). So anything above ST value 3 gets clipped to white in that case.