Common interface to a FrameGrabber. More...
#include <yarp/dev/FrameGrabberInterfaces.h>
Public Member Functions | |
virtual | ~IFrameGrabber () |
virtual bool | getRawBuffer (unsigned char *buffer)=0 |
Get the raw buffer from the frame grabber. More... | |
virtual int | getRawBufferSize ()=0 |
Get the size of the card's internal buffer, the user should use this method to allocate the storage to contain a raw frame (getRawBuffer). More... | |
virtual int | height () const =0 |
Return the height of each frame. More... | |
virtual int | width () const =0 |
Return the width of each frame. More... | |
Common interface to a FrameGrabber.
Definition at line 168 of file FrameGrabberInterfaces.h.
|
inlinevirtual |
Definition at line 171 of file FrameGrabberInterfaces.h.
|
pure virtual |
Get the raw buffer from the frame grabber.
The driver returns a copy of the internal memory buffer acquired by the frame grabber, no post processing is applied (e.g. no color reconstruction/demosaicking). The user must allocate the buffer; the size of the buffer, in bytes, is determined by calling getRawBufferSize().
buffer | pointer to the buffer to be filled (must be previously allocated) |
Implemented in V4L_camera, and USBCameraDriver.
|
pure virtual |
Get the size of the card's internal buffer, the user should use this method to allocate the storage to contain a raw frame (getRawBuffer).
Implemented in V4L_camera, and USBCameraDriver.
|
pure virtual |
Return the height of each frame.
Implemented in V4L_camera, USBCameraDriverRaw, USBCameraDriverRgb, and USBCameraDriver.
|
pure virtual |
Return the width of each frame.
Implemented in V4L_camera, USBCameraDriverRaw, USBCameraDriverRgb, and USBCameraDriver.