History

to support cross-platform UT of lD/ST 32 in scroll detection

huili2 committed 12 years ago

Commit 5263eeb1 parent 91cd93e1 file · +5 −4Browse files

Showing the changes to codec/processing/src (1 of 1 file). Show all

Unified · Split

codec/processing/src/scrolldetection/ScrollDetectionFuncs.cpp+5−4
@@ -32,6 +32,7 @@ · 31 unmodified lines
3232
3333 #include "ScrollDetection.h"
3434 #include "ScrollDetectionFuncs.h"
35+#include "ls_defines.h"
3536
3637 WELSVP_NAMESPACE_BEGIN
3738
@@ -98,9 +99,9 @@ int32_t SelectTestLine (uint8_t* pY, int32_t iWidth, int32_t iHeight, int32_t iP · 60 unmodified lines
9899 int32_t CompareLine (uint8_t* pYSrc, uint8_t* pYRef, const int32_t kiWidth) {
99100 int32_t iCmp = 1;
100101
101− if (* ((int32_t*)pYSrc) != * ((int32_t*)pYRef)) return 1;
102− if (* ((int32_t*) (pYSrc + 4)) != * ((int32_t*) (pYRef + 4))) return 1;
103− if (* ((int32_t*) (pYSrc + 8)) != * ((int32_t*) (pYRef + 8))) return 1;
102+ if (LD32 (pYSrc) != LD32 (pYRef)) return 1;
103+ if (LD32 (pYSrc + 4) != LD32 (pYRef + 4)) return 1;
104+ if (LD32 (pYSrc + 8) != LD32 (pYRef + 8)) return 1;
104105 if (kiWidth > 12)
105106 iCmp = WelsMemcmp (pYSrc + 12, pYRef + 12, kiWidth - 12);
106107 return iCmp;
@@ -196,4 +197,4 @@ void ScrollDetectionCore (SPixMap* pSrcPixMap, SPixMap* pRefPixMap, int32_t iWid · 89 unmodified lines
196197 }
197198 }
198199
199−WELSVP_NAMESPACE_END
200+WELSVP_NAMESPACE_END

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t