![]() |
VR-Forces 4.8 Class Documentation
|
This is a non-extendable container class used to send the information to the NVidia encoder. More...
Public Member Functions | |
| DtReadFramebufferProcessData () | |
| CTOR. More... | |
| virtual | ~DtReadFramebufferProcessData () |
| DTOR. More... | |
| virtual unsigned char * | imageData () const |
| Return the image data pointer. More... | |
| virtual void | setImageData (unsigned char *image) |
| Set the image data. More... | |
| virtual size_t | imageSizeInBytes () const |
| Get the image size in bytes. More... | |
| virtual void | setImageSizeInBytes (size_t imageSize) |
| Set the image size in bytes. More... | |
| virtual std::string | encodingFormat () const |
| Get the video encoding format ("h264", "h265") More... | |
| virtual void | setEncodingFormat (const std::string &format) |
| Set the video encoding format ("h264", "h265") More... | |
| virtual size_t | width () const |
| get the width of the image More... | |
| virtual void | setWidth (size_t width) |
| set the width of the image More... | |
| virtual size_t | height () const |
| get the height of the image More... | |
| virtual void | setHeight (size_t height) |
| set the height of the image More... | |
| virtual size_t | rowSizeInBytes () const |
| get the row size in bytes More... | |
| virtual void | setRowSizeInBytes (size_t rowSizeBytes) |
| set the row size in bytes More... | |
| virtual int | pixelFormat () const |
| get the pixel format (ex. BGRA) More... | |
| virtual void | setPixelFormat (int pixelFormat) |
| set the pixel format (ex. BGRA) More... | |
| virtual int | dataType () const |
| get data type (ex. ubyte) More... | |
| virtual void | setDataType (int datatype) |
| set data type (ex. ubyte) More... | |
| virtual int | pixelSizeInBits () const |
| get pixel size (bits) More... | |
| virtual void | setPixelSizeInBits (int pixelSizeInBits) |
| set pixel size (bits) More... | |
| virtual void | deleteImage () |
| if the encoding format is a supported format ("h264" or "h265") delete the image and set the size to zero More... | |
| virtual bool | allocateAndCopyImage (size_t imageSizeInBytes, void *bufferToBeCopied) |
| allocate a new buffer for supported format ("h264" or "h265"), copy it and return true if operation succeed delete previously allocated data More... | |
Protected Attributes | |
| unsigned char * | myData |
| buffer pointer More... | |
| size_t | myDataTotalSizeInBytes |
| buffer used size in bytes More... | |
| size_t | myBufferSizeInBytes |
| internal size of buffer in bytes More... | |
| std::string | myEncodingFormat |
| video encoding format ("h254", h265") More... | |
| size_t | myWidth |
| image width More... | |
| size_t | myHeight |
| image height More... | |
| size_t | myRowSizeInBytes |
| row size in bytes More... | |
| int | myPixelFormat |
| pixel format(ex.BGRA) More... | |
| int | myDataType |
| data type (ex. ubyte) More... | |
| int | myPixelSizeInBits |
| pixel size(bits) More... | |
This is a non-extendable container class used to send the information to the NVidia encoder.
| makVrv::DtReadFramebufferProcessData::DtReadFramebufferProcessData | ( | ) |
CTOR.
|
virtual |
DTOR.
Return the image data pointer.
Set the image data.
|
virtual |
Get the image size in bytes.
|
virtual |
Set the image size in bytes.
|
virtual |
Get the video encoding format ("h264", "h265")
|
virtual |
Set the video encoding format ("h264", "h265")
|
virtual |
get the width of the image
|
virtual |
set the width of the image
|
virtual |
get the height of the image
|
virtual |
set the height of the image
|
virtual |
get the row size in bytes
|
virtual |
set the row size in bytes
|
virtual |
get the pixel format (ex. BGRA)
|
virtual |
set the pixel format (ex. BGRA)
|
virtual |
get data type (ex. ubyte)
|
virtual |
set data type (ex. ubyte)
|
virtual |
get pixel size (bits)
|
virtual |
set pixel size (bits)
|
virtual |
if the encoding format is a supported format ("h264" or "h265") delete the image and set the size to zero
|
virtual |
allocate a new buffer for supported format ("h264" or "h265"), copy it and return true if operation succeed delete previously allocated data
|
protected |
buffer used size in bytes
|
protected |
internal size of buffer in bytes
|
protected |
video encoding format ("h254", h265")
|
protected |
image width
|
protected |
image height
|
protected |
row size in bytes
|
protected |
pixel format(ex.BGRA)
|
protected |
data type (ex. ubyte)
|
protected |
pixel size(bits)