i have attached a C code for the which will run on DSP.
I need to optimise it for speed (less number of cycles). please suggest some ways..
WIDTHX is the width of the image, HEIGHTY is its height. the frame_1 is a 1-D array
pixels are stored sequentially. i have attached the original and the modified code.
original was taking around 111million. I modified it to take 55. furthur modifications are necessary
i need to bring it below 10million.. modified.c