]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Slightly improve/correct description of wc3_pal_lookup
authorreimar <reimar@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 12 Apr 2009 08:49:20 +0000 (08:49 +0000)
committerreimar <reimar@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 12 Apr 2009 08:49:20 +0000 (08:49 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18462 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/wc3movie.c

index b96d3e1f46c3b6b5c1e5b3b5b724a8e79ccc4dff..5369057dd46bbe272fce52c60a1a1b16727263ed 100644 (file)
@@ -76,9 +76,9 @@ typedef struct Wc3DemuxContext {
  * 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