Show
Ignore:
Timestamp:
02/01/07 15:02:24 (16 years ago)
Author:
pieterpalmers
Message:

- fixed issues with SYT timestamp processing
- SYT based sync works if syncing to the received stream

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/streaming-rework/src/libstreaming/StreamProcessor.h

    r384 r385  
    8080 
    8181    bool isRunning(); ///< returns true if there is some stream data processed 
    82     void enable(); ///< enable the stream processing  
    83     void disable() {m_disabled=true;}; ///< disable the stream processing  
    84     bool isEnabled() {return !m_disabled;}; 
     82    bool enable(); ///< enable the stream processing  
     83    bool disable(); ///< disable the stream processing  
     84    bool isEnabled() {return !m_is_disabled;}; 
    8585 
    8686    virtual bool putFrames(unsigned int nbframes, int64_t ts); ///< transfer the buffer contents from client 
     
    100100    virtual bool prepareForStart() {return true;}; 
    101101     
    102     virtual bool prepareForEnable() {return true;}
    103     virtual bool prepareForDisable() {return true;}
     102    virtual bool prepareForEnable()
     103    virtual bool prepareForDisable()
    104104 
    105105protected: 
     
    120120    bool m_running; 
    121121    bool m_disabled; 
    122  
     122    bool m_is_disabled; 
     123     
    123124    StreamStatistics m_PacketStat; 
    124125    StreamStatistics m_PeriodStat; 
     
    147148        void decrementFrameCounter(int nbframes, uint64_t new_timestamp); 
    148149        void incrementFrameCounter(int nbframes, uint64_t new_timestamp); 
    149         void setFrameCounter(int new_framecounter, uint64_t new_timestamp); 
    150150        void resetFrameCounter(); 
    151151         
     
    193193        float getTicksPerFrame() {return m_ticks_per_frame;}; 
    194194     
    195     protected
     195    private
    196196        // the framecounter gives the number of frames in the buffer 
    197197        signed int m_framecounter; 
     
    205205        uint64_t   m_buffer_head_timestamp; 
    206206         
    207          
     207    protected: 
    208208        StreamProcessor *m_SyncSource; 
    209209