base class for using the IBufferObject interface. Derived classes should be based on this class.
More...
#include <BufferObject.h>
base class for using the IBufferObject interface. Derived classes should be based on this class.
◆ CreateBufferObject() [1/2]
virtual bool CBufferObject::CreateBufferObject |
( |
uint32_t | format, |
|
|
uint32_t | width, |
|
|
uint32_t | height ) |
|
overridepure virtual |
◆ CreateBufferObject() [2/2]
bool CBufferObject::CreateBufferObject |
( |
uint64_t | size | ) |
|
|
inlineoverridevirtual |
Create a BufferObject based only on the size of the desired buffer. Not all CBufferObject implementations may support this. This method is required for use with the CAddonVideoCodec as it only knows the decoded buffer size.
- Parameters
-
size | of the requested buffer. |
- Returns
- true BufferObject creation was successful.
-
false BufferObject creation was unsuccessful.
Implements IBufferObject.
Reimplemented in CDMAHeapBufferObject, and CUDMABufferObject.
◆ GetBufferObject()
std::unique_ptr< CBufferObject > CBufferObject::GetBufferObject |
( |
bool | needsCreateBySize | ) |
|
|
static |
◆ GetFd()
int CBufferObject::GetFd |
( |
| ) |
|
|
overridevirtual |
Get the File Descriptor of the BufferObject. The fd is guaranteed to be available after calling CreateBufferObject().
- Returns
- int fd for the BufferObject. Invalid if -1.
Implements IBufferObject.
◆ GetModifier()
uint64_t CBufferObject::GetModifier |
( |
| ) |
|
|
overridevirtual |
◆ GetStride()
uint32_t CBufferObject::GetStride |
( |
| ) |
|
|
overridevirtual |
Get the Stride of the BufferObject. The stride is guaranteed to be available after calling GetMemory().
- Returns
- uint32_t stride of the BufferObject.
Implements IBufferObject.
◆ SyncEnd()
void CBufferObject::SyncEnd |
( |
| ) |
|
|
overridevirtual |
Must be called after reading/writing data to the BufferObject.
Implements IBufferObject.
◆ SyncStart()
void CBufferObject::SyncStart |
( |
| ) |
|
|
overridevirtual |
Must be called before reading/writing data to the BufferObject.
Implements IBufferObject.
◆ m_fd
int CBufferObject::m_fd {-1} |
|
protected |
◆ m_stride
uint32_t CBufferObject::m_stride {0} |
|
protected |
The documentation for this class was generated from the following files: