MCPcopy Create free account
hub / github.com/cisco/openh264 / CompareLine

Function CompareLine

codec/processing/src/scrolldetection/ScrollDetectionFuncs.cpp:99–108  ·  view source on GitHub ↗

* compare pixel line between previous and current one * return: 0 for totally equal, otherwise 1 */

Source from the content-addressed store, hash-verified

97 * return: 0 for totally equal, otherwise 1
98 */
99int32_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
110void ScrollDetectionCore (SPixMap* pSrcPixMap, SPixMap* pRefPixMap, int32_t iWidth, int32_t iHeight,
111 int32_t iOffsetX, int32_t iOffsetY, SScrollDetectionParam& sScrollDetectionParam) {

Callers 1

ScrollDetectionCoreFunction · 0.85

Calls 1

WelsMemcmpFunction · 0.85

Tested by

no test coverage detected