Tool/software:
Hi,
I want to use streaming engine to process an image by breaking it in 4x4 matrices. I want to store this 4x4 matrix data in vector and use that vector for further calculations.

The SE configuration that I am doing for this is as below:
//Update necessary flags
se_templ.DIMFMT = __SE_DIMFMT_4D;
se_templ.ELETYPE = __SE_ELETYPE_16BIT;
se_templ.VECLEN = __SE_VECLEN_16ELEMS;
//Set params for 4D access
se_templ.ICNT0 = MAT_WIDTH;
se_templ.ICNT1 = MAT_HEIGHT;
se_templ.ICNT2 = (IMAGE_WIDTH)/MAT_WIDTH;
se_templ.ICNT3 = (IMAGE_HEIGHT)/MAT_HEIGHT;
se_templ.DIM1 = IMAGE_WIDTH;
se_templ.DIM2 = MAT_WIDTH;
se_templ.DIM3 = MAT_HEIGHT* IMAGE_WIDTH;
I want to store all the pixel of a 4x4 matrix to use it further. I want to advance the stream serially 1st 4x4 matrix then 2nd 4x4 then 3rd. Please suggest. Below is the desired format

Thanks and regards,
Lalit