* compare pixel line between previous and current one * return: 0 for totally equal, otherwise 1 */
| 97 | * return: 0 for totally equal, otherwise 1 |
| 98 | */ |
| 99 | int32_t CompareLine (uint8_t* pYSrc, uint8_t* pYRef, const int32_t kiWidth) { |
| 100 | int32_t iCmp = 1; |
| 101 | |
| 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; |
| 105 | if (kiWidth > 12) |
| 106 | iCmp = WelsMemcmp (pYSrc + 12, pYRef + 12, kiWidth - 12); |
| 107 | return iCmp; |
| 108 | } |
| 109 | |
| 110 | void ScrollDetectionCore (SPixMap* pSrcPixMap, SPixMap* pRefPixMap, int32_t iWidth, int32_t iHeight, |
| 111 | int32_t iOffsetX, int32_t iOffsetY, SScrollDetectionParam& sScrollDetectionParam) { |
no test coverage detected