| 206 | } |
| 207 | |
| 208 | static 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 | |
| 219 | void CopyRGBA(uint8_t* dst, int dstStride, const uint8_t* src, int srcStride, int width, |
| 220 | int height) { |