Quantcast
Channel: Intel® Software - Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1489

Incorrect explanation in documentation of BidirWeight_H264

$
0
0

HI,

The formula that is explained in the following URI seems to be incorrect.

http://software.intel.com/en-us/node/443698

The documentation says,

pDst[x, y] = Clip1c(((pSrc[x, y] * iWeight1 + pSrc2[x, y] * iWeight2 + 2^(ulog2wd - 1)) >> (ulog2wd + 1) + ((iOffset1 + iOffset2 + 1) >>2),

but the correct calculation is as follows:

pDst[x, y] = Clip1c((pSrc[x, y] * iWeight1 + pSrc2[x, y] * iWeight2 + 2^ulog2wd) >> (ulog2wd + 1) ++ ((iOffset1 + iOffset2 + 1) >>1)).

  • exponent part (ulog2wd - 1 -> ulog2wd)
  • shift value for offset (2 -> 1)
  • correspondence of parenthesis

Thanks,

Eijit

 


Viewing all articles
Browse latest Browse all 1489


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>