[FFmpeg-soc] [soc]: r1301 - jpeg2000/dwt.c
k.nowosad
subversion at mplayerhq.hu
Sat Sep 8 07:29:09 CEST 2007
Author: k.nowosad
Date: Sat Sep 8 07:29:09 2007
New Revision: 1301
Log:
corrected forward dwt 9/7
Modified:
jpeg2000/dwt.c
Modified: jpeg2000/dwt.c
==============================================================================
--- jpeg2000/dwt.c (original)
+++ jpeg2000/dwt.c Sat Sep 8 07:29:09 2007
@@ -160,9 +160,9 @@ static void dwt_encode97(DWTContext *s,
// copy back and deinterleave
for (i = mh; i < lh; i+=2, j++)
- t[w*lp + j] = scale97[mh] * l[i];
+ t[w*lp + j] = scale97[mh] * l[i] / 2;
for (i = 1-mh; i < lh; i+=2, j++)
- t[w*lp + j] = scale97[mh] * l[i];
+ t[w*lp + j] = scale97[mh] * l[i] / 2;
}
// VER_SD
@@ -177,9 +177,9 @@ static void dwt_encode97(DWTContext *s,
// copy back and deinterleave
for (i = mv; i < lv; i+=2, j++)
- t[w*j + lp] = scale97[mv] * l[i];
+ t[w*j + lp] = scale97[mv] * l[i] / 2;
for (i = 1-mv; i < lv; i+=2, j++)
- t[w*j + lp] = scale97[mv] * l[i];
+ t[w*j + lp] = scale97[mv] * l[i] / 2;
}
}
}
More information about the FFmpeg-soc
mailing list