[x265] Motion.cpp file

Ximing Cheng chengximing1989 at foxmail.com
Wed Jul 27 15:17:11 CEST 2016


The SADS will be used like this:


SADS(0, +0, -4, +0, +4, -2, -3, +2, -3);
SADS(1, -4, -2, +4, -2, -4, -1, +4, -1);
SADS(2, -4, +0, +4, +0, -4, +1, +4, +1);
SADS(3, -4, +2, +4, +2, -2, +3, +2, +3);


which all  x0, y0, x1, y1, x2, y2, x3, y3 have added the “+” “-” in the code, so that SADS macro expansion will add the "+" "-" in the code.





------------------ Original ------------------
From:  "N Vijay Anand";<nvijay.anand at trispacetech.com>;
Send time: Wednesday, Jul 27, 2016 9:10 PM
To: "x265-devel"<x265-devel at videolan.org>; 

Subject:  [x265] Motion.cpp file



In the file source\encoder\motion.cpp

The Following lines  (872 to 880)


#define SADS(k, x0, y0, x1, y1, x2, y2, x3, y3) \
    sad_x4(fenc, \
           fref_base x0 * i + (y0 - 2 * k + 4) * dy, \
           fref_base x1 * i + (y1 - 2 * k + 4) * dy, \
           fref_base x2 * i + (y2 - 2 * k + 4) * dy, \
           fref_base x3 * i + (y3 - 2 * k + 4) * dy, \
           stride, costs + 4 * k); \
    fref_base += 2 * dy;
#define ADD_MVCOST(k, x, y) costs[k] += p_cost_omvx[x * 4 * i] + p_cost_omvy[y * 4 * i]


there seem some operator (possibly "+") missing between fref_base and x0,
fref_base and x1,
fref_base and x2,
fref_base and x3


Im not able to understand why it's so?
Any pointers ?


Vijay
-- 
Principal Architect and Director,
TriSpace Technologies Pvt Ltd.,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20160727/186efd1d/attachment.html>


More information about the x265-devel mailing list