VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtVideoFrameBuffer Class Reference

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 charimageData () 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 charmetadata () 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 charmyImageBuffer
 
int myImageSize
 
int myImageBufferSize
 
DataFormat myType
 
int myY
 
int myX
 
int myRowInBytes
 
int myBpp
 
int myFormat
 
int myDataType
 
unsigned charmyMetadataBuffer
 
int myMetadataSize
 
int myMetadataBufferSize
 

Member Enumeration Documentation

Enumerate the compression types.

Enumerator
RAW 
JPG 
PNG 
BMP 
NITF 
X264 

Constructor & Destructor Documentation

makVrv::DtVideoFrameBuffer::DtVideoFrameBuffer ( int  imgBufferSize = 0,
int  metadataBufferSize = 0 
)

CTOR.

makVrv::DtVideoFrameBuffer::~DtVideoFrameBuffer ( )

DTOR.

Member Function Documentation

unsigned char* makVrv::DtVideoFrameBuffer::imageData ( ) const

Get the pixel data.

void makVrv::DtVideoFrameBuffer::setImageData ( unsigned char imageData,
int  imageDataSize 
)

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.

unsigned char* makVrv::DtVideoFrameBuffer::metadata ( ) const

Get the metadata.

void makVrv::DtVideoFrameBuffer::setMetadata ( unsigned char metadata,
int  metadataSize 
)

Set the metadata.

int makVrv::DtVideoFrameBuffer::metadataSize ( ) const

Get the metadata size in bytes.

void makVrv::DtVideoFrameBuffer::resizeImageBuffer ( int  sizeInBytes)
protected

deletes the current buffer and creates a new buffer with the requested size

void makVrv::DtVideoFrameBuffer::resizeMetadataBuffer ( int  sizeInBytes)
protected

deletes the current buffer and creates a new buffer with the requested size

Member Data Documentation

unsigned char* makVrv::DtVideoFrameBuffer::myImageBuffer
protected
int makVrv::DtVideoFrameBuffer::myImageSize
protected
int makVrv::DtVideoFrameBuffer::myImageBufferSize
protected
DataFormat makVrv::DtVideoFrameBuffer::myType
protected
int makVrv::DtVideoFrameBuffer::myY
protected
int makVrv::DtVideoFrameBuffer::myX
protected
int makVrv::DtVideoFrameBuffer::myRowInBytes
protected
int makVrv::DtVideoFrameBuffer::myBpp
protected
int makVrv::DtVideoFrameBuffer::myFormat
protected
int makVrv::DtVideoFrameBuffer::myDataType
protected
unsigned char* makVrv::DtVideoFrameBuffer::myMetadataBuffer
protected
int makVrv::DtVideoFrameBuffer::myMetadataSize
protected
int makVrv::DtVideoFrameBuffer::myMetadataBufferSize
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)