- Timestamp:
- 02/16/07 14:40:14 (17 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/streaming-rework/src/libutil/TimestampedBuffer.cpp
r395 r397 259 259 260 260 // init the DLL 261 m_dll_e2=m_nominal_rate * ( double)m_update_period;262 263 m_dll_b=(( double)(0.877));264 m_dll_c=(( double)(0.384));261 m_dll_e2=m_nominal_rate * (float)m_update_period; 262 263 m_dll_b=((float)(0.877)); 264 m_dll_c=((float)(0.384)); 265 265 266 266 return true; … … 548 548 if (diff < 0) diff += m_wrap_at; 549 549 550 doublerate;550 float rate; 551 551 552 552 if (diff) { 553 rate=( double)diff / (double)m_update_period;553 rate=(float)diff / (float)m_update_period; 554 554 } else { 555 555 rate=m_nominal_rate; … … 579 579 580 580 m_dll_e2=m_update_period * m_nominal_rate; 581 m_buffer_next_tail_timestamp = (uint64_t)(( double)m_buffer_tail_timestamp + m_dll_e2);581 m_buffer_next_tail_timestamp = (uint64_t)((float)m_buffer_tail_timestamp + m_dll_e2); 582 582 583 583 pthread_mutex_unlock(&m_framecounter_lock); … … 639 639 if (diff < 0) diff += m_wrap_at; 640 640 641 double rate=(double)diff / (double)m_update_period;641 float rate=(float)diff / (float)m_update_period; 642 642 643 643 int64_t timestamp; … … 709 709 if (diff < 0) diff += m_wrap_at; 710 710 711 double rate=(double)diff / (double)m_update_period;711 float rate=(float)diff / (float)m_update_period; 712 712 713 713 int64_t ts=new_timestamp; … … 758 758 } 759 759 760 doubleerr=diff;760 float err=diff; 761 761 762 762 debugOutputShort(DEBUG_LEVEL_VERY_VERBOSE, "diff2=%lld err=%f\n",