This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm8168 alg performance problem



I added image scale arithmetic and image enhance arithmetic in dvr_rdk 4.0 of dm 8168. After I enable enhance arthimetic, through external communicationI command I scale image, video processing is slow, my communication command from external communication interface can't be response immediately, even sometimes can't be response. Is it  my arthimetic's problem? Is it the enhance arthimetic need to be optimized? Or c674x dsp can't process amounts of data at the same time.  

  • Have you profiled the time it takes for your algorithm to process one frame. Your can use Utils_getCurTimesInMsec before and after your algorithm process call to check. You can also check c674 cpu load for your algorithm task (Printed when you invoke Vsys_printDetailedStatistics).

    make sure your communication thread is higher priority than your algorithm processing thread so that the algorithm can be preempted. Also make sure all input/output  and internal buffers/data strcutures used by your algorithm is cached.

  • Yes, I have achieved my algorithm delay.  When I only enable scale algorithm, the delay is 1 millisecond, the cpu load is not accurate, it is about 20 percent or  30 percent . When I only enable enhance algorithm, the delay is 8 millisecond, the cpu load is not accurate, it is about 30 percent or  60 percent.  When I  enable scale and enhance algorithm, the delay is approximate 300 millisecond,  the cpu load of algorithm can't be printed.

  • CPU load will always be accurate. There can be issue with how you are measuring algorithm processing time. It looks like scale takes 30% and enhance takes 60 % and together they take 100% CPU .