[FFmpeg-cvslog] r18462 - trunk/libavformat/wc3movie.c

reimar subversion
Sun Apr 12 10:49:21 CEST 2009


Author: reimar
Date: Sun Apr 12 10:49:20 2009
New Revision: 18462

Log:
Slightly improve/correct description of wc3_pal_lookup

Modified:
   trunk/libavformat/wc3movie.c

Modified: trunk/libavformat/wc3movie.c
==============================================================================
--- trunk/libavformat/wc3movie.c	Sun Apr 12 10:35:26 2009	(r18461)
+++ trunk/libavformat/wc3movie.c	Sun Apr 12 10:49:20 2009	(r18462)
@@ -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



More information about the ffmpeg-cvslog mailing list