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

Method DownsampleHalfAverage

codec/processing/src/downsample/downsample.cpp:279–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279void CDownsampling::DownsampleHalfAverage (uint8_t* pDst, int32_t iDstStride,
280 uint8_t* pSrc, int32_t iSrcStride, int32_t iSrcWidth, int32_t iSrcHeight) {
281 if ((iSrcStride & 31) == 0) {
282 assert ((iDstStride & 15) == 0);
283 m_pfDownsample.pfHalfAverageWidthx32 (pDst, iDstStride,
284 pSrc, iSrcStride, WELS_ALIGN (iSrcWidth & ~1, 32), iSrcHeight);
285 } else {
286 assert ((iSrcStride & 15) == 0);
287 assert ((iDstStride & 7) == 0);
288 m_pfDownsample.pfHalfAverageWidthx16 (pDst, iDstStride,
289 pSrc, iSrcStride, WELS_ALIGN (iSrcWidth & ~1, 16), iSrcHeight);
290 }
291}
292
293
294WELSVP_NAMESPACE_END

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected