Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

XVVideo Template Class Reference

Base class for all Video Devices of the System Video is designed to provide a generic front end to video sources. More...

#include <XVVideo.h>

Inheritance diagram for XVVideo:

List of all members.

Public Methods

Protected Methods

Protected Attributes


Detailed Description

template<class PIXTYPE> template class XVVideo

Base class for all Video Devices of the System Video is designed to provide a generic front end to video sources.

It also provide minimal buffer management (See VideoManager for a fully buffered video source). Most devices are expected to look at the passed type of a pixel and make their function correspond to that type. There is a means of passing character arguments to directly set device parameters.

Definition at line 38 of file XVVideo.h.


Member Function Documentation

template<classPIXTYPE>
int XVVideo<PIXTYPE>::next_buffer ( ) [inline, protected, virtual]
 

Definition at line 65 of file XVVideo.h.

template<classPIXTYPE>
XVImageBase< PIXTYPE >* XVVideo<PIXTYPE>::frame_addr<PIXTYPE> ( int i ) const [inline, protected]
 

Definition at line 75 of file XVVideo.h.

template<classPIXTYPE>
int XVVideo<PIXTYPE>::buffer_count ( void ) const [inline]
 

Functions to get at data.

Definition at line 97 of file XVVideo.h.

template<classPIXTYPE>
XVImageBase< PIXTYPE >& XVVideo<PIXTYPE>::frame ( int i ) const [inline]
 

Returns the data in frame i.

Definition at line 100 of file XVVideo.h.

Referenced by current_frame().

template<classPIXTYPE>
XVImageBase< PIXTYPE >& XVVideo<PIXTYPE>::current_frame ( ) const [inline]
 

Returns the data in currently active frame.

Definition at line 103 of file XVVideo.h.

template<classPIXTYPE>
int XVVideo<PIXTYPE>::initiate_acquire ( int frame ) [pure virtual]
 

These are the basic functions to implement to acquire data.

The first schedules an acquisition; the second waits for its completion. Although available for "raw" use, most will probably just use either of the "next frame" functions below.

Referenced by request_frame_poll().

template<classPIXTYPE>
int XVVideo<PIXTYPE>::release_buffer ( int buffernum ) [inline]
 

Definition at line 112 of file XVVideo.h.

template<classPIXTYPE>
int & XVVideo<PIXTYPE>::request_frame_continuous ( int framenum ) [inline]
 

Continous grab where you just get the next frame down the line.

If in polling mode, it schedules the first two frames and then waits for the first to complete.

Definition at line 119 of file XVVideo.h.

template<classPIXTYPE>
XVImageBase< PIXTYPE >& XVVideo<PIXTYPE>::next_frame_continuous<PIXTYPE> ( ) [inline]
 

Definition at line 126 of file XVVideo.h.

template<classPIXTYPE>
int XVVideo<PIXTYPE>::request_frame_poll ( int framenum ) [inline]
 

Poll until a specific frame arives and return the index of the buffer containing it.

Definition at line 141 of file XVVideo.h.

template<classPIXTYPE>
const XVImageBase< PIXTYPE >& XVVideo<PIXTYPE>::next_frame_poll<PIXTYPE> ( void ) [inline]
 

Definition at line 157 of file XVVideo.h.


Member Data Documentation

template<classPIXTYPE>
const char * XVVideo<PIXTYPE>::name [protected]
 

Definition at line 42 of file XVVideo.h.

template<classPIXTYPE>
XVSize XVVideo<PIXTYPE>::size [protected]
 

Definition at line 43 of file XVVideo.h.

template<classPIXTYPE>
XVImageBase< PIXTYPE >* XVVideo<PIXTYPE>::image_buffers [protected]
 

Definition at line 49 of file XVVideo.h.

template<classPIXTYPE>
int XVVideo<PIXTYPE>::n_buffers [protected]
 

Definition at line 51 of file XVVideo.h.

template<classPIXTYPE>
int XVVideo<PIXTYPE>::current_buffer [protected]
 

Definition at line 52 of file XVVideo.h.

template<classPIXTYPE>
int XVVideo<PIXTYPE>::frame_count [protected]
 

Definition at line 56 of file XVVideo.h.

template<classPIXTYPE>
XVCapture_Mode XVVideo<PIXTYPE>::capture_mode [protected]
 

Definition at line 57 of file XVVideo.h.

template<classPIXTYPE>
int XVVideo<PIXTYPE>::own_buffers [protected]
 

Definition at line 81 of file XVVideo.h.


The documentation for this class was generated from the following file:
Generated at Thu Mar 29 22:37:29 2001 for XVision by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000