![]() |
VR-Forces Developer's Guide
|
A DtReadFramebufferCallback instance is installed as the draw callback of the camera attached to the channel we wish to stream.

Public Member Functions | |
| virtual | ~DtReadFramebufferCallback () |
| virtual void | operator() (osg::RenderInfo &renderInfo) const |
| virtual void | process (const std::vector< std::vector< uint8_t >> &encodedPackets) |
Protected Member Functions | |
| DtReadFramebufferCallback (DtDe &de, DtVideoStream &stream, DtOsgChannel *channel) | |
| virtual bool | init () |
| virtual void | unInit () |
| virtual void | setupPixelBufferObjects (int numBuffers) |
| virtual bool | createProcessImageTask (DtDe &de, const DtVideoStream &stream) |
| virtual bool | setPixelFormatFromString (const DtUnicode &pxfString) |
| virtual bool | setReadBufferFromString (const DtUnicode &rbString) |
| virtual bool | setDataTypeFromString (const DtUnicode &dtString) |
| virtual void | readPixels (osg::RenderInfo &renderInfo) const |
| virtual void | readPixelsPbo (osg::RenderInfo &renderInfo) const |
| virtual DtVideoStreamPostProcessor * | findVideoStreamPostProcessor (void) const |
| virtual void | registerPbosWithHardwareEncoderIfNecessary (void) |
Protected Attributes | |
| DtVideoStream & | myStream |
| DtDe & | myDe |
| DtOsgChannel * | myChannel |
| double | myFrequency |
| bool | myUseReadPixels |
| int | myWidth |
| int | myHeight |
| int | myX |
| int | myY |
| GLenum | myPixelFormat |
| GLenum | myDataType |
| GLenum | myReadBuffer |
| std::vector< unsigned int > | myPbos |
| int | myMutableWriteIndex |
| int | myMutableReadIndex |
| osg::ref_ptr< osg::Image > | myImage |
| DtProcessImageTask * | myTask |
| bool | myIsInitialized |
| bool | myIsUsingHardware |
| bool | myReadFromTexture |
| DtEncoderIO * | myEncoderIO |
| DtReadFramebufferProcessData | myProcessData |
| DtPostProcessManager & | myPostProcessManager |
| int | myId = 0 |
| DtEncoderIOCallback * | myEncoderCallback = nullptr |
| double | myTimeNextFrame = 0.0 |
Static Protected Attributes | |
| static int | theRunningId |
Private Member Functions | |
| DtReadFramebufferCallback ()=delete | |
| DtReadFramebufferCallback (const DtReadFramebufferCallback &rhs)=delete | |
| DtReadFramebufferCallback & | operator= (const DtReadFramebufferCallback &orig)=delete |
Friends | |
| class | DtVideoStream |
|
virtual |
DTOR.
|
protected |
CTOR.
|
privatedelete |
Default CTOR (unimplemented)
|
privatedelete |
Copy CTOR (unimplemented)
|
virtual |
Base class override. This is where the work happens.
|
virtual |
called indirectly from the hw encoder
|
protectedvirtual |
Initialize the DtReadFramebufferCallback.
|
protectedvirtual |
clean the DtReadFramebufferCallback
|
protectedvirtual |
Allocate and bind the pixel buffer objects.
|
protectedvirtual |
Create and initialize a makVrv::DtProcessImageTask.
|
protectedvirtual |
set the pixel format GL enum from an initializer string
|
protectedvirtual |
set the read buffer GL enum from an initializer string
|
protectedvirtual |
set the data type GL enum from an initializer string
|
protectedvirtual |
read frame buffer using glReadPixels (synchronous)
|
protectedvirtual |
read frame buffer using PBOs (asynchronous)
|
protectedvirtual |
helper
|
protectedvirtual |
helper
|
privatedelete |
Assignment operator (unimplemented)
|
friend |
Only a DtVideoStream can construct a DtReadFramebufferCallback.
|
protected |
Current VideoStream.
|
protected |
Ptr to the Channel.
|
protected |
streaming frequency
|
protected |
if set to true use CPU encoding / false GPU encoding
|
protected |
width of the image
|
protected |
height of the image
|
protected |
Position in X.
|
protected |
Position in Y.
|
protected |
Pixel format used.
|
protected |
Data type format.
|
protected |
GL buffer used (back/front)
|
mutableprotected |
Write buffer index.
|
mutableprotected |
Read buffer index.
|
protected |
Image pointer.
|
protected |
Image processing task.
|
protected |
is everything initialized
|
protected |
Are using hardware encoding.
|
protected |
|
protected |
hardware encoding IO object
|
protected |
hardware frame buffer data
|
protected |
de-reference
|
protected |
|
staticprotected |
|
protected |
|
protected |