Chen-tao / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

deblocker can be made 2x as fast #479

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
current deblocker does everything in shorts .   we can use pavgb and do all the 
ops in char arithmetic 

Original issue reported on code.google.com by jimbankoski@google.com on 30 Aug 2012 at 12:51

GoogleCodeExporter commented 9 years ago
  a 
b e c
  d

convert (a+b+c+d+4*e)/8 to avg(avg(avg(a,d-1),avg(b,c)-1),e) and we can do 
everything in chars rather than short -> I know the math doesn't work out 
exactly right but we could make it work if we try hard enough...

the thresholds are equivalently easy to fix. 

Original comment by jimbankoski@google.com on 30 Aug 2012 at 1:00