Mercurial > libavformat.hg
changeset 4865:1273a2b9c32a libavformat
Slightly improve/correct description of wc3_pal_lookup
author | reimar |
---|---|
date | Sun, 12 Apr 2009 08:49:20 +0000 |
parents | 7aa7c5853bb6 |
children | ea96a592b4a3 |
files | wc3movie.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/wc3movie.c Sun Apr 12 08:35:26 2009 +0000 +++ b/wc3movie.c Sun Apr 12 08:49:20 2009 +0000 @@ -76,9 +76,9 @@ * palette lookup table that does gamma correction * * can be calculated by this formula: - * for i between 0 and 252 inclusive: - * wc3_pal_lookup[i] = pow(i / 256.0, 0.8) * 256; - * values 253, 254 and 255 are all 0xFD + * for i between 0 and 251 inclusive: + * wc3_pal_lookup[i] = round(pow(i / 256.0, 0.8) * 256); + * values 252, 253, 254 and 255 are all 0xFD * calculating this at runtime should not cause any * rounding issues, the maximum difference between * the table values and the calculated doubles is