我正在尝试使用以下代码镜像原始(无图像标题)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。pitch_s = pitch_d = width = 640。可能是什么问题?