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

A DtReadFramebufferCallback instance is installed as the draw callback of the camera attached to the channel we wish to stream. More...

Inheritance diagram for makVrv::DtReadFramebufferCallback:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtReadFramebufferCallback ()
 DTOR.
virtual void operator() (osg::RenderInfo &renderInfo) const
 Base class override. This is where the work happens.

Protected Member Functions

 DtReadFramebufferCallback (DtDe &de, DtVideoStream &stream, DtOsgChannel *channel)
 CTOR.
virtual bool init ()
 Initialize the DtReadFramebufferCallback.
virtual void setupPixelBufferObjects (int numBuffers)
 Allocate and bind the pixel buffer objects.
virtual bool createProcessImageTask (DtDe &de, const DtVideoStream &stream)
 Create and initialize a makVrv::DtProcessImageTask.
virtual bool setPixelFormatFromString (const DtUnicode &pxfString)
 set the pixel format GL enum from an initializer string
virtual bool setReadBufferFromString (const DtUnicode &rbString)
 set the read buffer GL enum from an initializer string
virtual bool setDataTypeFromString (const DtUnicode &dtString)
 set the data type GL enum from an initializer string

Protected Attributes

DtVideoStreammyStream
 Current VideoStream.
DtDemyDe
 Copy of the DtDe.
DtOsgChannelmyChannel
 Ptr to the Channel.
double myFrequency
 streaming frequency
bool myUseReadPixels
 if set to true use CPU encoding / false GPU encoding
int myWidth
 width of the image
int myHeight
 height of the image
int myX
 Position in X.
int myY
 Position in Y.
GLenum myPixelFormat
 Pixel format used.
GLenum myDataType
 Data type format.
GLenum myReadBuffer
 GL buffer used (back/front/back_hardware/front_hardware)
std::vector< unsigned intmyPbos
 Pixel Buffer Object.
int myWriteIndex
 Write buffer index.
int myReadIndex
 Read buffer index.
osg::ref_ptr< osg::Image > myImage
 Image pointer.
DtProcessImageTaskmyTask
 Image processing task.
osg::GLExtensions * myGlExtensions
 OpenGL extension pointer.
bool myIsInitialized
 is everything initialized
bool myIsUsingHardware
 Are using hardware encoding.
DtEncoderIOmyEncoderIO
 hardware encoding IO object
DtReadFramebufferProcessData myProcessData
 hardware frame buffer data

Private Member Functions

 DtReadFramebufferCallback ()
 Default CTOR (unimplemented)
 DtReadFramebufferCallback (const DtReadFramebufferCallback &rhs)
 Copy CTOR (unimplemented)
DtReadFramebufferCallbackoperator= (const DtReadFramebufferCallback &orig)
 Assignment operator (unimplemented)

Friends

class DtVideoStream
 Only a DtVideoStream can construct a DtReadFramebufferCallback.

Detailed Description

A DtReadFramebufferCallback instance is installed as the draw callback of the camera attached to the channel we wish to stream.

Constructor & Destructor Documentation

virtual makVrv::DtReadFramebufferCallback::~DtReadFramebufferCallback ( )
virtual

DTOR.

makVrv::DtReadFramebufferCallback::DtReadFramebufferCallback ( DtDe de,
DtVideoStream stream,
DtOsgChannel channel 
)
protected

CTOR.

makVrv::DtReadFramebufferCallback::DtReadFramebufferCallback ( )
private

Default CTOR (unimplemented)

makVrv::DtReadFramebufferCallback::DtReadFramebufferCallback ( const DtReadFramebufferCallback rhs)
private

Copy CTOR (unimplemented)

Member Function Documentation

virtual void makVrv::DtReadFramebufferCallback::operator() ( osg::RenderInfo &  renderInfo) const
virtual

Base class override. This is where the work happens.

virtual bool makVrv::DtReadFramebufferCallback::init ( )
protectedvirtual

Initialize the DtReadFramebufferCallback.

virtual void makVrv::DtReadFramebufferCallback::setupPixelBufferObjects ( int  numBuffers)
protectedvirtual

Allocate and bind the pixel buffer objects.

virtual bool makVrv::DtReadFramebufferCallback::createProcessImageTask ( DtDe de,
const DtVideoStream stream 
)
protectedvirtual

Create and initialize a makVrv::DtProcessImageTask.

virtual bool makVrv::DtReadFramebufferCallback::setPixelFormatFromString ( const DtUnicode pxfString)
protectedvirtual

set the pixel format GL enum from an initializer string

virtual bool makVrv::DtReadFramebufferCallback::setReadBufferFromString ( const DtUnicode rbString)
protectedvirtual

set the read buffer GL enum from an initializer string

virtual bool makVrv::DtReadFramebufferCallback::setDataTypeFromString ( const DtUnicode dtString)
protectedvirtual

set the data type GL enum from an initializer string

DtReadFramebufferCallback& makVrv::DtReadFramebufferCallback::operator= ( const DtReadFramebufferCallback orig)
private

Assignment operator (unimplemented)

Friends And Related Function Documentation

friend class DtVideoStream
friend

Only a DtVideoStream can construct a DtReadFramebufferCallback.

Member Data Documentation

DtVideoStream& makVrv::DtReadFramebufferCallback::myStream
protected

Current VideoStream.

DtDe& makVrv::DtReadFramebufferCallback::myDe
protected

Copy of the DtDe.

DtOsgChannel* makVrv::DtReadFramebufferCallback::myChannel
protected

Ptr to the Channel.

double makVrv::DtReadFramebufferCallback::myFrequency
protected

streaming frequency

bool makVrv::DtReadFramebufferCallback::myUseReadPixels
protected

if set to true use CPU encoding / false GPU encoding

int makVrv::DtReadFramebufferCallback::myWidth
protected

width of the image

int makVrv::DtReadFramebufferCallback::myHeight
protected

height of the image

int makVrv::DtReadFramebufferCallback::myX
protected

Position in X.

int makVrv::DtReadFramebufferCallback::myY
protected

Position in Y.

GLenum makVrv::DtReadFramebufferCallback::myPixelFormat
protected

Pixel format used.

GLenum makVrv::DtReadFramebufferCallback::myDataType
protected

Data type format.

GLenum makVrv::DtReadFramebufferCallback::myReadBuffer
protected

GL buffer used (back/front/back_hardware/front_hardware)

std::vector<unsigned int> makVrv::DtReadFramebufferCallback::myPbos
protected

Pixel Buffer Object.

int makVrv::DtReadFramebufferCallback::myWriteIndex
protected

Write buffer index.

int makVrv::DtReadFramebufferCallback::myReadIndex
protected

Read buffer index.

osg::ref_ptr<osg::Image> makVrv::DtReadFramebufferCallback::myImage
protected

Image pointer.

DtProcessImageTask* makVrv::DtReadFramebufferCallback::myTask
protected

Image processing task.

osg::GLExtensions* makVrv::DtReadFramebufferCallback::myGlExtensions
protected

OpenGL extension pointer.

bool makVrv::DtReadFramebufferCallback::myIsInitialized
protected

is everything initialized

bool makVrv::DtReadFramebufferCallback::myIsUsingHardware
protected

Are using hardware encoding.

DtEncoderIO* makVrv::DtReadFramebufferCallback::myEncoderIO
protected

hardware encoding IO object

DtReadFramebufferProcessData makVrv::DtReadFramebufferCallback::myProcessData
protected

hardware frame buffer data


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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)