提交 0c291c77 编写于 作者: V Vadim Pisarevsky

Merge pull request #9940 from catree:fix_issue_9925

...@@ -263,7 +263,7 @@ protected: ...@@ -263,7 +263,7 @@ protected:
(p0) = sum + (rect).x + (step) * (rect).y, \ (p0) = sum + (rect).x + (step) * (rect).y, \
/* (x + w, y) */ \ /* (x + w, y) */ \
(p1) = sum + (rect).x + (rect).width + (step) * (rect).y, \ (p1) = sum + (rect).x + (rect).width + (step) * (rect).y, \
/* (x + w, y) */ \ /* (x, y + h) */ \
(p2) = sum + (rect).x + (step) * ((rect).y + (rect).height), \ (p2) = sum + (rect).x + (step) * ((rect).y + (rect).height), \
/* (x + w, y + h) */ \ /* (x + w, y + h) */ \
(p3) = sum + (rect).x + (rect).width + (step) * ((rect).y + (rect).height) (p3) = sum + (rect).x + (rect).width + (step) * ((rect).y + (rect).height)
...@@ -289,7 +289,7 @@ protected: ...@@ -289,7 +289,7 @@ protected:
(p0) = sum + (rect).x + (step) * (rect).y, \ (p0) = sum + (rect).x + (step) * (rect).y, \
/* (x + w, y) */ \ /* (x + w, y) */ \
(p1) = sum + (rect).x + (rect).width + (step) * (rect).y, \ (p1) = sum + (rect).x + (rect).width + (step) * (rect).y, \
/* (x + w, y) */ \ /* (x, y + h) */ \
(p2) = sum + (rect).x + (step) * ((rect).y + (rect).height), \ (p2) = sum + (rect).x + (step) * ((rect).y + (rect).height), \
/* (x + w, y + h) */ \ /* (x + w, y + h) */ \
(p3) = sum + (rect).x + (rect).width + (step) * ((rect).y + (rect).height) (p3) = sum + (rect).x + (rect).width + (step) * ((rect).y + (rect).height)
...@@ -305,11 +305,6 @@ protected: ...@@ -305,11 +305,6 @@ protected:
(p3) = tilted + (rect).x + (rect).width - (rect).height \ (p3) = tilted + (rect).x + (rect).width - (rect).height \
+ (step) * ((rect).y + (rect).width + (rect).height) + (step) * ((rect).y + (rect).width + (rect).height)
#define CALC_SUM_(p0, p1, p2, p3, offset) \
((p0)[offset] - (p1)[offset] - (p2)[offset] + (p3)[offset])
#define CALC_SUM(rect,offset) CALC_SUM_((rect)[0], (rect)[1], (rect)[2], (rect)[3], offset)
#define CALC_SUM_OFS_(p0, p1, p2, p3, ptr) \ #define CALC_SUM_OFS_(p0, p1, p2, p3, ptr) \
((ptr)[p0] - (ptr)[p1] - (ptr)[p2] + (ptr)[p3]) ((ptr)[p0] - (ptr)[p1] - (ptr)[p2] + (ptr)[p3])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册