Blender V2.61 - r43446
Public Member Functions | Protected Member Functions | Protected Attributes

VideoBase Class Reference

base class for video source More...

#include <VideoBase.h>

Inheritance diagram for VideoBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 VideoBase (void)
 constructor
virtual ~VideoBase (void)
 destructor
virtual void openFile (char *file)
 open video file
virtual void openCam (char *file, short camIdx)
 open video capture device
virtual bool play (void)
 play video
virtual bool pause (void)
 pause video
virtual bool stop (void)
 stop video
int getStatus (void)
const double * getRange (void)
 get play range
virtual void setRange (double start, double stop)
 set play range
int getRepeat (void)
virtual void setRepeat (int rep)
 set video repeat
float getFrameRate (void)
 get frame rate
virtual void setFrameRate (float rate)
 set frame rate

Protected Member Functions

void init (short width, short height)
 initialize image data
void process (BYTE *sample)
 process source data

Protected Attributes

VideoFormat m_format
 video format
short m_orgSize [2]
 original video size
int m_status
 video status
bool m_isFile
 is source file
double m_range [2]
 replay range
int m_repeat
 repeat count
float m_frameRate
 frame rate

Detailed Description

base class for video source

Definition at line 50 of file VideoBase.h.


Constructor & Destructor Documentation

VideoBase::VideoBase ( void  ) [inline]

constructor

Definition at line 54 of file VideoBase.h.

References m_orgSize, and m_range.

virtual VideoBase::~VideoBase ( void  ) [inline, virtual]

destructor

Definition at line 62 of file VideoBase.h.


Member Function Documentation

float VideoBase::getFrameRate ( void  ) [inline]

get frame rate

Definition at line 130 of file VideoBase.h.

References m_frameRate.

const double* VideoBase::getRange ( void  ) [inline]

get play range

Definition at line 112 of file VideoBase.h.

References m_range.

int VideoBase::getRepeat ( void  ) [inline]

Definition at line 124 of file VideoBase.h.

References m_repeat.

int VideoBase::getStatus ( void  ) [inline]

Definition at line 109 of file VideoBase.h.

References m_status.

void VideoBase::init ( short  width,
short  height 
) [protected]

initialize image data

Reimplemented from ImageBase.

Definition at line 40 of file VideoBase.cpp.

References m_orgSize.

Referenced by process().

virtual void VideoBase::openCam ( char *  file,
short  camIdx 
) [inline, virtual]

open video capture device

Definition at line 71 of file VideoBase.h.

References m_isFile, m_status, and SourceReady.

virtual void VideoBase::openFile ( char *  file) [inline, virtual]

open video file

Definition at line 65 of file VideoBase.h.

References m_isFile, m_status, and SourceReady.

virtual bool VideoBase::pause ( void  ) [inline, virtual]

pause video

Definition at line 88 of file VideoBase.h.

References m_status, SourcePlaying, and SourceStopped.

virtual bool VideoBase::play ( void  ) [inline, virtual]

play video

Definition at line 78 of file VideoBase.h.

References m_status, SourcePlaying, SourceReady, and SourceStopped.

void VideoBase::process ( BYTE *  sample) [protected]
virtual void VideoBase::setFrameRate ( float  rate) [inline, virtual]

set frame rate

Definition at line 132 of file VideoBase.h.

References m_frameRate, and m_isFile.

Referenced by Video_setFrameRate().

virtual void VideoBase::setRange ( double  start,
double  stop 
) [inline, virtual]

set play range

Definition at line 114 of file VideoBase.h.

References m_isFile, m_range, and stop().

Referenced by Video_setRange().

virtual void VideoBase::setRepeat ( int  rep) [inline, virtual]

set video repeat

Definition at line 126 of file VideoBase.h.

References m_isFile, and m_repeat.

Referenced by Video_setRepeat().

virtual bool VideoBase::stop ( void  ) [inline, virtual]

stop video

Definition at line 98 of file VideoBase.h.

References m_status, SourcePlaying, and SourceStopped.

Referenced by setRange().


Member Data Documentation

video format

Definition at line 137 of file VideoBase.h.

Referenced by process().

float VideoBase::m_frameRate [protected]

frame rate

Definition at line 152 of file VideoBase.h.

Referenced by getFrameRate(), and setFrameRate().

bool VideoBase::m_isFile [protected]

is source file

Definition at line 145 of file VideoBase.h.

Referenced by openCam(), openFile(), setFrameRate(), setRange(), and setRepeat().

short VideoBase::m_orgSize[2] [protected]

original video size

Definition at line 139 of file VideoBase.h.

Referenced by init(), process(), and VideoBase().

double VideoBase::m_range[2] [protected]

replay range

Definition at line 148 of file VideoBase.h.

Referenced by getRange(), setRange(), and VideoBase().

int VideoBase::m_repeat [protected]

repeat count

Definition at line 150 of file VideoBase.h.

Referenced by getRepeat(), and setRepeat().

int VideoBase::m_status [protected]

video status

Definition at line 142 of file VideoBase.h.

Referenced by getStatus(), openCam(), openFile(), pause(), play(), and stop().


The documentation for this class was generated from the following files: