Hi all,
so I'm trying to resize and downsample it by 3.
So I'm trying to get how the iterations occurred like srcHeight/3 and the math behing srcPitch*3, and s[0]. s[width], s[width*3]
for (int r = 0; r < srcHeight/3; r++)
{
d = &dst[iDestPitch* r];
s = &src[iSrcPitch * r*3];
for (int c = 0; c < srcWidth/3; c+=8)
{
// ------------------
// B1 B4 B7 ... B B B
// B2 B5 B8 ... B B B
// B3 B6 B9 ... B B B
// -------------------
// load 8 sets of 3x3 pixels (grayscale)
u88line0 = vld3_u8(&s[0]);
u88line1 = vld3_u8(&s[iSrcPitch]);
u88line2 = vld3_u8(&s[iSrcPitch*2]);
s += 24;
//processing