C 使用英特尔IPP镜像BGR(24位)映像

C 使用英特尔IPP镜像BGR(24位)映像,c,mirror,intel-ipp,bgr,C,Mirror,Intel Ipp,Bgr,我正在尝试使用以下代码镜像原始(无图像头)BGR图像,每像素8位: void mirrorBGR(byte* src, byte* dst, UINT width, UINT height, UINT pitch_s, UINT pitch_d) { IppiSize size; size.width = width; size.height = height; IppStatus status = ippiMirror_8

我正在尝试使用以下代码镜像原始(无图像头)BGR图像,每像素8位:

void mirrorBGR(byte* src, byte* dst, UINT width, UINT height, UINT pitch_s, UINT pitch_d)
    {
        IppiSize size;
        size.width = width;
        size.height = height;
        IppStatus status = ippiMirror_8u_C3R(src, pitch_s, dst ,pitch_d, size, ippAxsVertical);
        if (status != ippStsNoErr)
        {
            printf("Mirror RGB24 failed: %d",status);
        }
    }
图像大小为640x360。节距s=节距d=宽度=640。
可能有什么问题?

Pitch是源位图和目标位图的扫描线长度


如果不使用填充,至少应该是640(宽度)*3(每像素字节)=1920

“可能有什么问题?”你不会说问题出在哪里。@Jongware,你当然是对的。打字太快,没有检查确切的措辞。。。谢谢你的通知。