#include <avcap/CaptureHandler.h>
If an application wants to capture data, it must implement a CaptureHandler and must register it with the VidCapManager of the CaptureDevice. The VidCapManager will call handleCaptureEvent() always a new frame has been captured. If the buffer isn't used anymore the IOBuffer::release() method must be called in order to enable the VidCapManager to reuse or release the buffer.
Public Member Functions | |
CaptureHandler () | |
Consturctor. | |
virtual | ~CaptureHandler () |
Destructor. | |
virtual void | handleCaptureEvent (class IOBuffer *io_buf)=0 |
This method is called if a new frame has been captured by the VidCapManager. |
avcap::CaptureHandler::CaptureHandler | ( | ) | [inline] |
Consturctor.
virtual avcap::CaptureHandler::~CaptureHandler | ( | ) | [inline, virtual] |
Destructor.
virtual void avcap::CaptureHandler::handleCaptureEvent | ( | class IOBuffer * | io_buf | ) | [pure virtual] |
This method is called if a new frame has been captured by the VidCapManager.
If the buffer isn't used anymore, then the method IOBuffer::release() must be called.
io_buf | The buffer containing the captured frame. |