Common interface to a FrameGrabber.
More...
#include <yarp/dev/IFrameGrabber.h>
|
virtual | ~IFrameGrabber () |
|
virtual bool | getRawBuffer (unsigned char *buffer)=0 |
| Get the raw buffer from the frame grabber.
|
|
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).
|
|
virtual int | height () const =0 |
| Return the height of each frame.
|
|
virtual int | width () const =0 |
| Return the width of each frame.
|
|
Common interface to a FrameGrabber.
- Deprecated:
- Since YARP 3.5
Definition at line 28 of file IFrameGrabber.h.
◆ ~IFrameGrabber()
yarp::dev::IFrameGrabber::~IFrameGrabber |
( |
| ) |
|
|
virtualdefault |
◆ getRawBuffer()
virtual bool yarp::dev::IFrameGrabber::getRawBuffer |
( |
unsigned char * |
buffer | ) |
|
|
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().
- Parameters
-
buffer | pointer to the buffer to be filled (must be previously allocated) |
- Returns
- true/false upon success/failure
◆ getRawBufferSize()
virtual int yarp::dev::IFrameGrabber::getRawBufferSize |
( |
| ) |
|
|
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).
- Returns
- the size of the internal buffer, in bytes.
◆ height()
virtual int yarp::dev::IFrameGrabber::height |
( |
| ) |
const |
|
pure virtual |
Return the height of each frame.
- Returns
- image height
◆ width()
virtual int yarp::dev::IFrameGrabber::width |
( |
| ) |
const |
|
pure virtual |
Return the width of each frame.
- Returns
- image width
The documentation for this class was generated from the following files: