VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
makVrv::DtVideoFrameBuffer Class Reference

The image as initially captured from the camera is placed into a DtVideoFrameBuffer. More...

Public Types

enum  DataFormat {
  RAW, JPG, PNG, BMP,
  NITF
}
 Enumerate the compression types. More...

Public Member Functions

 DtVideoFrameBuffer ()
 CTOR.
 ~DtVideoFrameBuffer ()
 DTOR.
unsigned charimageData () const
 Get the pixel data.
void setImageData (unsigned char *imageData)
 Set the pixel data. This class takes ownership of the image data.
int imageDataSize () const
 Get the number of bytes (may not be the size of the data in the buffer)
void setImageDataSize (int imageDataSize)
 Set the number of bytes (may not be the size of the data in the buffer)
void resetImageData ()
 deletes existing memory and reallocates new buffer for image data based on bytes per row and number of rows
void resizeImageBuffer (int sizeInBytes)
 deletes the current buffer and creates a new buffer with the requested size
void resizeMetadataBuffer (int sizeInBytes)
 deletes the current buffer and creates a new buffer with the requested size
DataFormat type () const
 Get how the data is compressed, if at all.
void setType (DataFormat type)
 Set how the data is compressed, if at all.
int y () const
 Get the buffer height.
void setY (int y)
 Set the buffer height.
int x () const
 Get the buffer width.
void setX (int x)
 Set the buffer width.
int rowInBytes () const
 Get the row size, in bytes.
void setRowInBytes (int rowInBytes)
 Set the row size, in bytes.
int bpp () const
 Get the bits per pixel.
void setBpp (int bpp)
 Set the bits per pixel.
int format () const
 Get the openGL image format.
void setFormat (int format)
 Wet the openGL image format.
unsigned charmetadata () const
 Get the metadata.
void setMetadata (unsigned char *metadata)
 Set the metadata.
int metadataSize () const
 Get the metadata size in bytes.
void setMetadataSize (int metadataSize)
 Set the metadata size in bytes.

Protected Attributes

unsigned charmyImageData
int myImageDataSize
DataFormat myType
int myY
int myX
int myRowInBytes
int myBpp
int myFormat
unsigned charmyMetadata
int myMetadataSize

Detailed Description

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.

Member Enumeration Documentation

Enumerate the compression types.

Enumerator:
RAW 
JPG 
PNG 
BMP 
NITF 

Constructor & Destructor Documentation

makVrv::DtVideoFrameBuffer::DtVideoFrameBuffer ( )

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)

Set the pixel data. This class takes ownership of the image data.

int makVrv::DtVideoFrameBuffer::imageDataSize ( ) const

Get the number of bytes (may not be the size of the data in the buffer)

void makVrv::DtVideoFrameBuffer::setImageDataSize ( int  imageDataSize)

Set the number of bytes (may not be the size of the data in the buffer)

void makVrv::DtVideoFrameBuffer::resetImageData ( )

deletes existing memory and reallocates new buffer for image data based on bytes per row and number of rows

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

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

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

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

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)

Wet the openGL image format.

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

Get the metadata.

void makVrv::DtVideoFrameBuffer::setMetadata ( unsigned char metadata)

Set the metadata.

int makVrv::DtVideoFrameBuffer::metadataSize ( ) const

Get the metadata size in bytes.

void makVrv::DtVideoFrameBuffer::setMetadataSize ( int  metadataSize)

Set the metadata size in bytes.

Member Data Documentation

unsigned char* makVrv::DtVideoFrameBuffer::myImageData
protected
int makVrv::DtVideoFrameBuffer::myImageDataSize
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
unsigned char* makVrv::DtVideoFrameBuffer::myMetadata
protected
int makVrv::DtVideoFrameBuffer::myMetadataSize
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)