Show
Ignore:
Timestamp:
02/16/07 02:35:25 (16 years ago)
Author:
pieterpalmers
Message:

debugmodule.cpp:
- removed path from the source file name when printing debug messages

IsoStream?.cpp, StreamProcessor?.cpp:
- debug message modifications

StreamProcessorManager?.cpp:
- removed obsolete debug code

AmdtpStreamProcessor?.cpp:
- debug message modifications
- removed DLL that calculates framerate, as it is also calculated in the

TimestampedBuffer?

- converted code to use the new offset feature of the TimestampedBuffer?
- converted code to use the new frame timestamp calculation feature

of the TimestampedBuffer?

- first try at xmit sync code (unfinished)
- fixed 'unable to start' bug in receive SP

bebob_avdevice.cpp:
- added some #ifdef code to test with xmit SP's only (temporary)

TimestampedBuffer?.cpp:
- add offset feature
- add abitrary frame timestamp calculation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/streaming-rework/src/libstreaming/StreamProcessorManager.cpp

    r391 r395  
    905905                it != m_ReceiveProcessors.end(); 
    906906                ++it ) { 
    907              
    908             //#ifdef DEBUG 
    909             #if 0 
    910             { 
    911                 uint64_t ts_tail=0; 
    912                 uint64_t fc_tail=0; 
    913907                 
    914                 uint64_t ts_head=0; 
    915                 uint64_t fc_head=0; 
    916                  
    917                 int cnt=0; 
    918                  
    919                 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 
    920                 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 
    921                  
    922                 while((fc_head != fc_tail) && (cnt++ < 10)) { 
    923                     (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 
    924                     (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 
    925                 } 
    926                  
    927                 debugOutput(DEBUG_LEVEL_VERBOSE,"R => HEAD: TS=%11llu, FC=%5llu | TAIL: TS=%11llu, FC=%5llu, %d\n", 
    928                     ts_head, fc_head, ts_tail, fc_tail, cnt); 
    929             } 
    930             #endif 
    931      
    932908            if(!(*it)->getFrames(m_period)) { 
    933909                    debugOutput(DEBUG_LEVEL_VERBOSE,"could not getFrames(%u, %11llu) from stream processor (%p)", 
     
    935911                    return false; // buffer underrun 
    936912            } 
    937              
    938             //#ifdef DEBUG 
    939             #if 0 
    940             { 
    941                 uint64_t ts_tail=0; 
    942                 uint64_t fc_tail=0; 
    943                  
    944                 uint64_t ts_head=0; 
    945                 uint64_t fc_head=0; 
    946                  
    947                 int cnt=0; 
    948                  
    949                 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 
    950                 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 
    951              
    952                 while((fc_head != fc_tail) && (cnt++ < 10)) { 
    953                     (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 
    954                     (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 
    955                 } 
    956                  
    957                 debugOutput(DEBUG_LEVEL_VERBOSE,"R  > HEAD: TS=%11llu, FC=%5llu | TAIL: TS=%11llu, FC=%5llu, %d\n", 
    958                     ts_head, fc_head, ts_tail, fc_tail, cnt); 
    959             } 
    960             #endif 
    961      
     913 
    962914        } 
    963915    } else { 
     
    965917                it != m_TransmitProcessors.end(); 
    966918                ++it ) { 
    967                  
    968             //#ifdef DEBUG 
    969             #if 0 
    970             { 
    971                 uint64_t ts_tail=0; 
    972                 uint64_t fc_tail=0; 
    973                  
    974                 uint64_t ts_head=0; 
    975                 uint64_t fc_head=0; 
    976                  
    977                 int cnt=0; 
    978                  
    979                 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 
    980                 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 
    981                  
    982                 while((fc_head != fc_tail) && (cnt++ < 10)) { 
    983                     (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 
    984                     (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 
    985                 } 
    986                  
    987                 debugOutput(DEBUG_LEVEL_VERBOSE,"T => HEAD: TS=%11llu, FC=%5llu | TAIL: TS=%11llu, FC=%5llu, %d\n", 
    988                     ts_head, fc_head, ts_tail, fc_tail, cnt); 
    989             } 
    990             #endif 
    991919                 
    992920            if(!(*it)->putFrames(m_period, (int64_t)m_time_of_transfer)) { 
     
    995923                return false; // buffer overrun 
    996924            } 
    997              
    998             //#ifdef DEBUG 
    999             #if 0 
    1000             { 
    1001                 uint64_t ts_tail=0; 
    1002                 uint64_t fc_tail=0; 
    1003                  
    1004                 uint64_t ts_head=0; 
    1005                 uint64_t fc_head=0; 
    1006                  
    1007                 int cnt=0; 
    1008                  
    1009                 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 
    1010                 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 
    1011              
    1012                 while((fc_head != fc_tail) && (cnt++ < 10)) { 
    1013                     (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 
    1014                     (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 
    1015                 } 
    1016                  
    1017                 debugOutput(DEBUG_LEVEL_VERBOSE,"T  > HEAD: TS=%11llu, FC=%5llu | TAIL: TS=%11llu, FC=%5llu, %d\n", 
    1018                     ts_head, fc_head, ts_tail, fc_tail, cnt); 
    1019             } 
    1020             #endif 
     925 
    1021926        } 
    1022927    }