Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

vm_time_sleep wrong?

detlef_stralaudynami
261 Views
Hallo @ All

i had the problem, that my video output hangs some times, so i looked up why, and i found this in avsync.cpp line 831:
vm_time_sleep(IPP_MAX(0,IPP_MIN(1,(Ipp32s)((ft-st1)*1000))));
(i think this expession will always call vm_time_sleep(0<=1) :D, but mostly with 0, so the output freeze)

I replaced it with:
vm_time_sleep(IPP_MAX(0,IPP_MIN(DEF_TIME_TO_SLEEP<<1,(Ipp32s)((ft-st1)*1000))));


and now the movements are very softly, also in H264 and everything works fine. Also with this solution you can run (parallel) the windows Media player
without some freezings.

Best Regards Detlef




0 Kudos
1 Reply
Chao_Y_Intel
Moderator
261 Views

Detlef,

I forward to the code ower to have a check. Thanks a lot for sharing it.

Regards,
Chao

0 Kudos
Reply