avcap::QT_VidCapManager Class Reference

#include <avcap/osx/QT_VidCapManager.h>

Inheritance diagram for avcap::QT_VidCapManager:

Inheritance graph
[legend]

Detailed Description

Implementation of the CaptureManager for the QuickTime-implementation of a CaptureDevice.

This CaptureManager captures the data in an ow thread. Decompression is performed, if neccessary (e.g. for DV-Cams).


Public Member Functions

 QT_VidCapManager (QT_DeviceDescriptor *dd, QT_FormatManager *fmt_mgr, int nbufs)
virtual ~QT_VidCapManager ()
int init ()
 Do basic initialization after startup.
int destroy ()
 Called before object destruction.
int startCapture ()
 Start capturing data.
int stopCapture ()
 Stop capturing data.
virtual IOBufferdequeue ()
 Dequeue the next buffer.
virtual int enqueue (IOBuffer *buf)
 Enqueue a buffer.
virtual int getNumIOBuffers ()
 Returns the number of IOBuffers currently available.


Constructor & Destructor Documentation

avcap::QT_VidCapManager::QT_VidCapManager ( QT_DeviceDescriptor dd,
QT_FormatManager fmt_mgr,
int  nbufs 
)

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


Member Function Documentation

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

Do basic initialization after startup.

Implements avcap::CaptureManager.

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

Called before object destruction.

Implements avcap::CaptureManager.

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

Start capturing data.

Implements avcap::CaptureManager.

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

Stop capturing data.

Implements avcap::CaptureManager.

virtual IOBuffer* avcap::QT_VidCapManager::dequeue (  )  [virtual]

Dequeue the next buffer.

Returns:
the next buffer with captured data.

Implements avcap::CaptureManager.

virtual int avcap::QT_VidCapManager::enqueue ( IOBuffer buf  )  [virtual]

Enqueue a buffer.

Parameters:
buf the buffer that isn't used by the application anymore and that can be reused now.
Returns:
0 success, -1 on failure

Implements avcap::CaptureManager.

virtual int avcap::QT_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:33 2009 for avcap-0.1 by  doxygen 1.5.1