I want to flip the following buffer upside down. See example source and destination.
source (src):
01 02 03
04 05 06
07 08 09
destination (dst - correct):
07 08 09
04 05 06
01 02 03
The following sample does not rotate the buffer correctly. What am I doing wrong?
unsigned char src [9] = {1,2,3,4,5,6,7,8,9};
IppiSize size = {3,3};
IppiRect roi = {0,0,3,3};
unsigned char dst [9];
int step = 3;
IppStatus status = ippiRotate_8u_C1R(src, size, step, roi, dst, step, roi, 90, 0, 0, IPPI_INTER_LINEAR);
destination (dst - wrong):
01 04 07
00 00 00
00 58 C3