c
static INLINE BOOL overlapping(const BYTE* pDstData, UINT32 nXDst, UINT32 nYDst, UINT32 nDstStep,
                               UINT32 dstBytesPerPixel, const BYTE* pSrcData, UINT32 nXSrc,
                               UINT32 nYSrc, UINT32 nSrcStep, UINT32 srcBytesPerPixel,
                               UINT32 nWidth, UINT32 nHeight) {
    uint64_t offsetX = (uint64_t)nXDst * dstBytesPerPixel;
    uint64_t offsetY = (uint64_t)nYDst * nDstStep;
    const BYTE* pDstStart = &pDstData[offsetX + offsetY];
    ...
}
