#include <avcap/linux/AVC_VidCapManager.h>
Inheritance diagram for avcap::AVC_VidCapManager:
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. |
anonymous enum |
avcap::AVC_VidCapManager::AVC_VidCapManager | ( | AVC_DeviceDescriptor * | dd, | |
AVC_FormatManager * | fmt_mgr, | |||
int | nbufs = DEFAULT_BUFFERS | |||
) |
virtual avcap::AVC_VidCapManager::~AVC_VidCapManager | ( | ) | [virtual] |
int avcap::AVC_VidCapManager::init | ( | ) | [virtual] |
int avcap::AVC_VidCapManager::destroy | ( | ) | [virtual] |
int avcap::AVC_VidCapManager::startCapture | ( | ) | [virtual] |
int avcap::AVC_VidCapManager::stopCapture | ( | ) | [virtual] |
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.
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.
Implements avcap::CaptureManager.