mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
LL band prediction
Originally committed as revision 10176 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7397cf3f09
commit
1e37b7e407
15
doc/snow.txt
15
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:
|
||||
==============
|
||||
|
Loading…
Reference in New Issue
Block a user