OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimVideoHandler.cpp
Go to the documentation of this file.
1 //**************************************************************************************************
2 // OSSIM -- Open Source Software Image Map
3 //
4 // LICENSE: See top level LICENSE.txt file.
5 //
6 // AUTHOR: Oscar Kramer, SPADAC Inc.
7 //
8 // DESCRIPTION: Interface for all ossim Video types
9 //
10 //**************************************************************************************************
11 // $Id: ossimVideoHandler.cpp 2644 2011-05-26 15:20:11Z oscar.kramer $
12 
14 
15 RTTI_DEF1(ossimVideoHandler, "ossimVideoHandler", ossimVideoSource)
16 
17 //*************************************************************************************************
18 // Protected constructor. This is a pure virtual base class with protected default constructor
19 //*************************************************************************************************
21  :
22  m_currentFrameTime (0),
23  m_videoDuration (0),
24  m_frameRate (ossim::nan())
25 { }
26 
27 //*************************************************************************************************
28 // Protected constructor. This is a pure virtual base class with protected default constructor
29 //*************************************************************************************************
31 {
32  seek(0, SEEK_ABSOLUTE);
33 }
34 
35 //*************************************************************************************************
37 //*************************************************************************************************
38 bool ossimVideoHandler::open(const ossimFilename& videoFile)
39 {
40  m_videoFilename = videoFile;
41  return open();
42 }
43 
virtual bool seek(ossim_float64 reference_time_sec, SeekType seekType)=0
Seeks to the frame at time specified, according to the seekType (relative to active frame or absolute...
Pure virtual base class for all video sources – analogous to ossimImageSource.
Pure virtual base class for all video file handlers – analogous to ossimImageHandler.
double nan()
Method to return ieee floating point double precision NAN.
Definition: ossimCommon.h:135
This code was derived from https://gist.github.com/mshockwave.
Definition: Barrier.h:8
virtual bool open()=0
Returns TRUE if video file at m_videoFilename is successfully opened.
virtual void rewind()
For rewinding all active streams to beginning.
ossimFilename m_videoFilename
#define RTTI_DEF1(cls, name, b1)
Definition: ossimRtti.h:485