avcap::AVC_VidCapManager Class Reference

#include <avcap/linux/AVC_VidCapManager.h>

Inheritance diagram for avcap::AVC_VidCapManager:

Inheritance graph
[legend]

Detailed Description

The IEEE 1394 AV/C video capture manager.

This class is used to capture video data from a AV/C-Device (e.g. DV-Cams) connected to the computer via IEEE 1394 (aka Firewire or iLink) under Linux.


Public Types

enum  { MAX_BUFFERS = 32, DEFAULT_BUFFERS = 8 }

Public Member Functions

 AVC_VidCapManager (AVC_DeviceDescriptor *dd, AVC_FormatManager *fmt_mgr, int nbufs=DEFAULT_BUFFERS)
virtual ~AVC_VidCapManager ()
int init ()
 Do basic initialization after startup.
int destroy ()
 Called before object destruction.
int startCapture ()
 Start capturing data.
int stopCapture ()
 Stop capturing data.
void registerCaptureHandler (CaptureHandler *handler)
 Register a capture handler.
void removeCaptureHandler ()
 Remove the current capture handler.
virtual int getNumIOBuffers ()
 Returns the number of IOBuffers currently available.


Member Enumeration Documentation

anonymous enum

Enumerator:
MAX_BUFFERS  The maximum number of IOBuffers.
DEFAULT_BUFFERS  The default number of used IOBuffers.


Constructor & Destructor Documentation

avcap::AVC_VidCapManager::AVC_VidCapManager ( AVC_DeviceDescriptor dd,
AVC_FormatManager fmt_mgr,
int  nbufs = DEFAULT_BUFFERS 
)

virtual avcap::AVC_VidCapManager::~AVC_VidCapManager (  )  [virtual]


Member Function Documentation

int avcap::AVC_VidCapManager::init (  )  [virtual]

Do basic initialization after startup.

Implements avcap::CaptureManager.

int avcap::AVC_VidCapManager::destroy (  )  [virtual]

Called before object destruction.

Implements avcap::CaptureManager.

int avcap::AVC_VidCapManager::startCapture (  )  [virtual]

Start capturing data.

Implements avcap::CaptureManager.

int avcap::AVC_VidCapManager::stopCapture (  )  [virtual]

Stop capturing data.

Implements avcap::CaptureManager.

void avcap::AVC_VidCapManager::registerCaptureHandler ( CaptureHandler handler  )  [virtual]

Register a capture handler.

Only one capture handler can be registered at the same time. The handlers CaptureHandler::handleCaptureEvent() method will be called, if new data has been captured. The ownership of the handler remains at the caller. He is responsible for removing and deleting the handler.

Parameters:
handler The capture handler implementation.

Reimplemented from avcap::CaptureManager.

void avcap::AVC_VidCapManager::removeCaptureHandler (  )  [virtual]

Remove the current capture handler.

If a capture handler was registered before, then this handler will not be notified anymore if data has been captured.

Reimplemented from avcap::CaptureManager.

virtual int avcap::AVC_VidCapManager::getNumIOBuffers (  )  [virtual]

Returns the number of IOBuffers currently available.

The CaptureManager usually waits to capture the next frame until an IOBuffer is available. The application is reponsible to release the IOBuffers to make it available to the capture manager.

Returns:
the number of IOBuffers.

Implements avcap::CaptureManager.


The documentation for this class was generated from the following file:
Generated on Mon Nov 30 11:10:32 2009 for avcap-0.1 by  doxygen 1.5.1