processor cycles for mean calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Benny,
     Sorry it is no of packets rather than session duration, in function
pj_math_stat_update the statement following will increase computation time
as soon as no of packets increased.
           stat->mean += delta/stat->n;

Regards,
Ravi Inder Singh
On Mon, Jul 21, 2008 at 8:31 PM, Benny Prijono <bennylp at pjsip.org> wrote:

> On Mon, Jul 21, 2008 at 2:05 PM, Ravi Inder Singh <raviinder at gmail.com>
> wrote:
>
>> Hi all,
>>     I was doing some work for RTCP XR Mean jitter calculation then i found
>> it will call pj_math_stat_update(&sess->stat.rx.stat_sum.jitter, jitter);
>> from pjmedia_rtcp_rx_rtp2. But this one is called each time when RTP packets
>> comes.
>>    Issue :-This calculation is  performed each time an rtp frame arrives
>> the processor cycles required for the divide will vary but is likely to get
>> higher as the session duration increases.
>>
>>
> I don't quite understand that statement. Looking at the source, it doesn't
> look like there is any increase at all to the computation with the increase
> of session duration.
>
> Cheers
>  Benny
>
>
>
>> Is there any other way to achieve this :)
>> --
>> Thanks & Regards,
>> Ravi Inder Singh
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
>>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>


-- 
Thanks & Regards,
Ravi Inder Singh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080721/3247dbeb/attachment.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux