Show
Ignore:
Timestamp:
11/20/09 15:31:11 (4 years ago)
Author:
robert
Message:

From Rafa Gaitan, "Current ffmpeg plugin didn't support pause and seek, I have added this
functionality and I also modified osgmovie example to support "seek"."

Note from Robert Osfield, changes osgmovie to use '>' for the seek as '+' was already used in a separate submission that had been merged.

Files:
1 modified

Legend:

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

    r9910 r10809  
    3131        virtual void pause(); 
    3232        virtual void rewind(); 
     33        virtual void seek(double time); 
    3334        virtual void quit(bool waitForThreadToExit = true); 
    3435 
     
    4546            CMD_PAUSE, 
    4647            CMD_STOP, 
    47             CMD_REWIND 
     48            CMD_REWIND, 
     49            CMD_SEEK 
    4850        }; 
    4951 
     
    6163        void cmdPause(); 
    6264        void cmdRewind(); 
     65        void cmdSeek(double time); 
    6366 
    6467        static void publishNewFrame(const FFmpegDecoderVideo &, void * user_data); 
     
    7073        Condition        m_frame_published_cond; 
    7174        bool            m_frame_published_flag; 
     75        double           m_seek_time; 
    7276    }; 
    7377