MCPcopy Create free account
hub / github.com/Tencent/libpag / CopyPlane

Function CopyPlane

exporter/src/utils/ImageData.cpp:208–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208static void CopyPlane(uint8_t* dst, int dstStride, const uint8_t* src, int srcStride, int width,
209 int height) {
210 auto pDst = dst;
211 auto pSrc = src;
212 for (int j = 0; j < height; j++) {
213 memcpy(pDst, pSrc, width);
214 pDst += dstStride;
215 pSrc += srcStride;
216 }
217}
218
219void CopyRGBA(uint8_t* dst, int dstStride, const uint8_t* src, int srcStride, int width,
220 int height) {

Callers 1

CopyRGBAFunction · 0.85

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected