Show
Ignore:
Timestamp:
12/02/09 19:58:45 (3 years ago)
Author:
robert
Message:

From Julen Garcia,"I've been lately working also with the ffmpeg plugin and I implemented pause(), seek() and getReferenceTime(). I think that I have solved the internal clock issues (maybe not in the most elegant way :?"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegClocks.hpp

    r10161 r10851  
    2323 
    2424    void reset(double start_time); 
     25    void pause(bool pause); 
    2526    void rewindAudio(); 
    2627    void rewindVideo(); 
     
    3637 
    3738    double getStartTime() const; 
     39    double getCurrentTime(); 
     40    void setPauseTime(double pause_time); 
     41    void setSeekTime(double seek_time); 
    3842 
    3943private: 
     
    5054 
    5155    double    m_start_time; 
     56    double    m_pause_time; 
     57    double    m_seek_time; 
    5258    double    m_last_frame_delay; 
    5359    double    m_last_frame_pts; 
     
    5662    double    m_audio_buffer_end_pts; 
    5763    double    m_audio_delay; 
    58     Timer    m_audio_timer; 
    59     bool    m_audio_disabled; 
    60     bool    m_rewind; 
     64    Timer     m_audio_timer; 
     65    bool      m_audio_disabled; 
     66    bool      m_rewind; 
     67    bool      m_paused; 
     68    double    m_last_current_time; 
     69 
    6170     
    6271};