Tool/software: TI C/C++ Compiler
Hello everyone,
I am working on TDA 2x ,VisionSDK(2.10) Linux.
Iam trying to optimiize a loop taking around 400ms on DSP. The loop works as below
for(i=0;i<1800*450;i++)
{
mupFact = i%1800;
*(dstptr++)=*(srcptr++) * multipleArr[mupFact]; //for R component
*(dstptr++)=*(srcptr++) * multipleArr[mupFact]; //for G component
*(dstptr++)=*(srcptr) * multipleArr[mupFact]; //for B component
}
Please guide me on optimizing such loops.I tried various C optimization techniques,but failed to achieve any gain.The srcptr here is calculated according to lookup table and hence is random data.
How can we use dma or any other dsp optimization technique for the same.
Regards,
Neha