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
32 32
33#include "ScrollDetection.h"33#include "ScrollDetection.h"
34#include "ScrollDetectionFuncs.h"34#include "ScrollDetectionFuncs.h"
35#include "ls_defines.h"
35 36
36WELSVP_NAMESPACE_BEGIN37WELSVP_NAMESPACE_BEGIN
37 38
@@ -98,9 +99,9 @@ int32_t SelectTestLine (uint8_t* pY, int32_t iWidth, int32_t iHeight, int32_t iP · 60 unmodified lines
98int32_t CompareLine (uint8_t* pYSrc, uint8_t* pYRef, const int32_t kiWidth) {99int32_t CompareLine (uint8_t* pYSrc, uint8_t* pYRef, const int32_t kiWidth) {
99 int32_t iCmp = 1;100 int32_t iCmp = 1;
100 101
101 if (* ((int32_t*)pYSrc) != * ((int32_t*)pYRef)) return 1;102 if (LD32 (pYSrc) != LD32 (pYRef)) return 1;
102 if (* ((int32_t*) (pYSrc + 4)) != * ((int32_t*) (pYRef + 4))) return 1;103 if (LD32 (pYSrc + 4) != LD32 (pYRef + 4)) return 1;
103 if (* ((int32_t*) (pYSrc + 8)) != * ((int32_t*) (pYRef + 8))) return 1;104 if (LD32 (pYSrc + 8) != LD32 (pYRef + 8)) return 1;
104 if (kiWidth > 12)105 if (kiWidth > 12)
105 iCmp = WelsMemcmp (pYSrc + 12, pYRef + 12, kiWidth - 12);106 iCmp = WelsMemcmp (pYSrc + 12, pYRef + 12, kiWidth - 12);
106 return iCmp;107 return iCmp;
@@ -196,4 +197,4 @@ void ScrollDetectionCore (SPixMap* pSrcPixMap, SPixMap* pRefPixMap, int32_t iWid · 89 unmodified lines
196 }197 }
197}198}
198 199
199WELSVP_NAMESPACE_END200WELSVP_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