Tool/software: TI C/C++ Compiler
Hi All,
I want some suggestions on usage of vector registers as an index to other vector registers. eg. Vreg1[VregIndex].
I am implementing a kind of convolution algorithm. Input to this algorithm is an image data and a kernel.
i have referred a code for the convolution of an image in one of the TI document. where they will traverse through all elements of image and kernel. (total of 4 nested for loops)
In my case, the kernel contains only a 20% of non-zero coefficients. So i want to consider only those non-zero values.
I have computed offset of all non-zero coefficients of kernel and sending it to VCOP. and in VCOP-kernel i am loading those offset into a Vector register.
So, is there any way that i can use Vector register data as index to other vector registers.
example :
Voffset = offsetaddress[addrOffset]; // offsetaddress is an argument for VCOP-kernel where offset address of kernel coefficients shall be present
Vdata = InputData[Voffset];
Or is there any alternate approach for this operation?
Please let me know.
Regards,
Likhith C