[FFmpeg-cvslog] r10176 - trunk/doc/snow.txt
michael
subversion
Tue Aug 21 21:38:02 CEST 2007
Author: michael
Date: Tue Aug 21 21:38:02 2007
New Revision: 10176
Log:
LL band prediction
Modified:
trunk/doc/snow.txt
Modified: trunk/doc/snow.txt
==============================================================================
--- trunk/doc/snow.txt (original)
+++ trunk/doc/snow.txt Tue Aug 21 21:38:02 2007
@@ -233,7 +233,20 @@ FIXME
LL band prediction:
===================
-FIXME
+Each sample in the LL0 subband is predicted by the median of the left, top and
+left+top-topleft samples, samples outside the subband shall be considered to
+be 0. To reverse this prediction in the decoder apply the following.
+for(y=0; y<height; y++){
+ for(x=0; x<width; x++){
+ sample[y][x] += median(sample[y-1][x],
+ sample[y][x-1],
+ sample[y-1][x]+sample[y][x-1]-sample[y-1][x-1]);
+ }
+}
+sample[-1][*]=sample[*][-1]= 0;
+width,height here are the width and height of the LL0 subband not of the final
+video
+
Dequantizaton:
==============
More information about the ffmpeg-cvslog
mailing list