![]() |
VR-Forces 5.0.3 Developer's Guide
|
The image as initially captured from the camera is placed into a DtVideoFrameBuffer. Instances of DtVideoFrameBuffer are placed on a queue for further processing by the process image task elements.
Public Types | |
| enum | DataFormat { RAW, JPG, PNG, BMP, NITF, X264 } |
Public Member Functions | |
| DtVideoFrameBuffer (int imgBufferSize=0, int metadataBufferSize=0) | |
| ~DtVideoFrameBuffer () | |
| unsigned char * | imageData () const |
| void | setImageData (unsigned char *imageData, int imageDataSize) |
| int | imageSize () const |
| DataFormat | type () const |
| void | setType (DataFormat type) |
| int | y () const |
| void | setY (int y) |
| int | x () const |
| void | setX (int x) |
| int | rowInBytes () const |
| void | setRowInBytes (int rowInBytes) |
| int | bpp () const |
| void | setBpp (int bpp) |
| int | format () const |
| void | setFormat (int format) |
| int | dataType () const |
| void | setDataType (int dataType) |
| unsigned char * | metadata () const |
| void | setMetadata (unsigned char *metadata, int metadataSize) |
| int | metadataSize () const |
Protected Member Functions | |
| void | resizeImageBuffer (int sizeInBytes) |
| void | resizeMetadataBuffer (int sizeInBytes) |
Protected Attributes | |
| unsigned char * | myImageBuffer |
| int | myImageSize |
| int | myImageBufferSize |
| DataFormat | myType |
| int | myY |
| int | myX |
| int | myRowInBytes |
| int | myBpp |
| int | myFormat |
| int | myDataType |
| unsigned char * | myMetadataBuffer |
| int | myMetadataSize |
| int | myMetadataBufferSize |
| makVrv::DtVideoFrameBuffer::DtVideoFrameBuffer | ( | int | imgBufferSize = 0, |
| int | metadataBufferSize = 0 |
||
| ) |
CTOR.
| makVrv::DtVideoFrameBuffer::~DtVideoFrameBuffer | ( | ) |
DTOR.
Set the pixel data. This class creates a copy of the passed in image data.
| int makVrv::DtVideoFrameBuffer::imageSize | ( | ) | const |
Get the number of bytes (may not be the size of the data in the buffer)
| DataFormat makVrv::DtVideoFrameBuffer::type | ( | ) | const |
Get how the data is compressed, if at all.
| void makVrv::DtVideoFrameBuffer::setType | ( | DataFormat | type | ) |
Set how the data is compressed, if at all.
| int makVrv::DtVideoFrameBuffer::y | ( | ) | const |
Get the buffer height.
| void makVrv::DtVideoFrameBuffer::setY | ( | int | y | ) |
Set the buffer height.
| int makVrv::DtVideoFrameBuffer::x | ( | ) | const |
Get the buffer width.
| void makVrv::DtVideoFrameBuffer::setX | ( | int | x | ) |
Set the buffer width.
| int makVrv::DtVideoFrameBuffer::rowInBytes | ( | ) | const |
Get the row size, in bytes.
| void makVrv::DtVideoFrameBuffer::setRowInBytes | ( | int | rowInBytes | ) |
Set the row size, in bytes.
| int makVrv::DtVideoFrameBuffer::bpp | ( | ) | const |
Get the bits per pixel.
| void makVrv::DtVideoFrameBuffer::setBpp | ( | int | bpp | ) |
Set the bits per pixel.
| int makVrv::DtVideoFrameBuffer::format | ( | ) | const |
Get the openGL image format.
| void makVrv::DtVideoFrameBuffer::setFormat | ( | int | format | ) |
Set the openGL image format.
| int makVrv::DtVideoFrameBuffer::dataType | ( | ) | const |
Get the openGL image format.
| void makVrv::DtVideoFrameBuffer::setDataType | ( | int | dataType | ) |
Set the openGL image format.
Set the metadata.
| int makVrv::DtVideoFrameBuffer::metadataSize | ( | ) | const |
Get the metadata size in bytes.
|
protected |
deletes the current buffer and creates a new buffer with the requested size
|
protected |
deletes the current buffer and creates a new buffer with the requested size
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |