Mercurial > libavcodec.hg
changeset 2783:7a411f408d74 libavcodec
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)
author | michael |
---|---|
date | Sat, 09 Jul 2005 21:39:29 +0000 |
parents | 67ea9a5a8fff |
children | cdf74a048614 |
files | indeo2.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/indeo2.c Sat Jul 02 19:43:23 2005 +0000 +++ b/indeo2.c Sat Jul 09 21:39:29 2005 +0000 @@ -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++;