aboutsummaryrefslogtreecommitdiffstats
path: root/doc/snow.txt
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-08-21 19:38:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-08-21 19:38:02 +0000
commit1e37b7e40701aa3f6b43f2fada32527aa808b1f6 (patch)
tree8fe9b8e6c87d38062b5730e4fdb1e7d0194c4721 /doc/snow.txt
parent7397cf3f09b0be34a0aa2ea5fe72fa0e3a7db82f (diff)
downloadffmpeg-1e37b7e40701aa3f6b43f2fada32527aa808b1f6.tar.gz
LL band prediction
Originally committed as revision 10176 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/snow.txt')
-rw-r--r--doc/snow.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/snow.txt b/doc/snow.txt
index 9db2718665..867867394f 100644
--- a/doc/snow.txt
+++ b/doc/snow.txt
@@ -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:
==============