[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec indeo2.c,1.4,1.5
Michael Niedermayer CVS
michael
Sat Jul 9 23:39:32 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv22231
Modified Files:
indeo2.c
Log Message:
Here is the patch suggested by: unkaggregate, users sf net
Main reason is: deltas in interframes need scaling by 3/4 before applying.
Detailed description is at:
http://sourceforge.net/tracker/index.php?func=detail&aid=1222099&group_id=16082&atid=116082
He also mentioned some samples at:
http://www.nerdgrounds.com/indeo21_test/
patch posted to ffmpeg-devel by (Kostya: kostya shishkov, gmail com)
Index: indeo2.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/indeo2.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- indeo2.c 11 May 2005 01:50:46 -0000 1.4
+++ indeo2.c 9 Jul 2005 21:39:29 -0000 1.5
@@ -118,11 +118,11 @@
c -= 0x7F;
out += c * 2;
} else { /* add two deltas from table */
- t = dst[out] + (table[c * 2] - 128);
+ t = dst[out] + (((table[c * 2] - 128)*3) >> 2);
t= clip_uint8(t);
dst[out] = t;
out++;
- t = dst[out] + (table[(c * 2) + 1] - 128);
+ t = dst[out] + (((table[(c * 2) + 1] - 128)*3) >> 2);
t= clip_uint8(t);
dst[out] = t;
out++;
More information about the ffmpeg-cvslog
mailing list