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

Function WelsMoveMemory_c

codec/encoder/core/src/wels_preprocess.cpp:1364–1385  ·  view source on GitHub ↗

i420_to_i420_c

Source from the content-addressed store, hash-verified

1362
1363//i420_to_i420_c
1364void WelsMoveMemory_c (uint8_t* pDstY, uint8_t* pDstU, uint8_t* pDstV, int32_t iDstStrideY, int32_t iDstStrideUV,
1365 uint8_t* pSrcY, uint8_t* pSrcU, uint8_t* pSrcV, int32_t iSrcStrideY, int32_t iSrcStrideUV, int32_t iWidth,
1366 int32_t iHeight) {
1367 int32_t iWidth2 = iWidth >> 1;
1368 int32_t iHeight2 = iHeight >> 1;
1369 int32_t j;
1370
1371 for (j = iHeight; j; j--) {
1372 WelsMemcpy (pDstY, pSrcY, iWidth);
1373 pDstY += iDstStrideY;
1374 pSrcY += iSrcStrideY;
1375 }
1376
1377 for (j = iHeight2; j; j--) {
1378 WelsMemcpy (pDstU, pSrcU, iWidth2);
1379 WelsMemcpy (pDstV, pSrcV, iWidth2);
1380 pDstU += iDstStrideUV;
1381 pDstV += iDstStrideUV;
1382 pSrcU += iSrcStrideUV;
1383 pSrcV += iSrcStrideUV;
1384 }
1385}
1386
1387void CWelsPreProcess::WelsMoveMemoryWrapper (SWelsSvcCodingParam* pSvcParam, SPicture* pDstPic,
1388 const SSourcePicture* kpSrc,

Callers 2

DownsamplePaddingMethod · 0.85
WelsMoveMemoryWrapperMethod · 0.85

Calls 1

WelsMemcpyFunction · 0.70

Tested by

no test coverage detected