- Timestamp:
- 02/01/07 15:02:24 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/streaming-rework/src/libstreaming/StreamProcessor.h
r384 r385 80 80 81 81 bool isRunning(); ///< returns true if there is some stream data processed 82 voidenable(); ///< enable the stream processing83 void disable() {m_disabled=true;}; ///< disable the stream processing84 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;}; 85 85 86 86 virtual bool putFrames(unsigned int nbframes, int64_t ts); ///< transfer the buffer contents from client … … 100 100 virtual bool prepareForStart() {return true;}; 101 101 102 virtual bool prepareForEnable() {return true;};103 virtual bool prepareForDisable() {return true;};102 virtual bool prepareForEnable(); 103 virtual bool prepareForDisable(); 104 104 105 105 protected: … … 120 120 bool m_running; 121 121 bool m_disabled; 122 122 bool m_is_disabled; 123 123 124 StreamStatistics m_PacketStat; 124 125 StreamStatistics m_PeriodStat; … … 147 148 void decrementFrameCounter(int nbframes, uint64_t new_timestamp); 148 149 void incrementFrameCounter(int nbframes, uint64_t new_timestamp); 149 void setFrameCounter(int new_framecounter, uint64_t new_timestamp);150 150 void resetFrameCounter(); 151 151 … … 193 193 float getTicksPerFrame() {return m_ticks_per_frame;}; 194 194 195 pr otected:195 private: 196 196 // the framecounter gives the number of frames in the buffer 197 197 signed int m_framecounter; … … 205 205 uint64_t m_buffer_head_timestamp; 206 206 207 207 protected: 208 208 StreamProcessor *m_SyncSource; 209 209