Showing the changes to codec/processing/src (1 of 1 file). Show all
Unified · Split
| @@ -32,6 +32,7 @@ · 31 unmodified lines | ||
| 32 | 32 | |
| 33 | 33 | #include "ScrollDetection.h" |
| 34 | 34 | #include "ScrollDetectionFuncs.h" |
| 35 | +#include "ls_defines.h" | |
| 35 | 36 | |
| 36 | 37 | WELSVP_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 | ||
| 98 | 99 | int32_t CompareLine (uint8_t* pYSrc, uint8_t* pYRef, const int32_t kiWidth) { |
| 99 | 100 | int32_t iCmp = 1; |
| 100 | 101 | |
| 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; | |
| 104 | 105 | if (kiWidth > 12) |
| 105 | 106 | iCmp = WelsMemcmp (pYSrc + 12, pYRef + 12, kiWidth - 12); |
| 106 | 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 | |
| 199 | −WELSVP_NAMESPACE_END | |
| 200 | +WELSVP_NAMESPACE_END | |