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

Function PixelAvgAnchor

test/encoder/EncUT_MotionCompensation.cpp:65–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static void PixelAvgAnchor (uint8_t* pDst, int32_t iDstStride,
66 uint8_t* pSrc1, int32_t iSrc1Stride,
67 uint8_t* pSrc2, int32_t iSrc2Stride, int32_t iWidth, int32_t iHeight) {
68 for (int32_t y = 0; y < iHeight; y++) {
69 for (int32_t x = 0; x < iWidth; x++)
70 pDst[x] = (pSrc1[x] + pSrc2[x] + 1) >> 1;
71 pDst += iDstStride;
72 pSrc1 += iSrc1Stride;
73 pSrc2 += iSrc2Stride;
74 }
75}
76
77static void MCLumaAnchor (uint8_t* pDst, int32_t iDstStride, uint8_t* pSrc[4], int32_t iSrcStride,
78 int32_t iMvX, int32_t iMvY, int32_t iWidth, int32_t iHeight) {

Callers 2

MCLumaAnchorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected