#include <DMAHeapBufferObject.h>
◆ CDMAHeapBufferObject()
CDMAHeapBufferObject::CDMAHeapBufferObject |
( |
| ) |
|
|
default |
◆ ~CDMAHeapBufferObject()
CDMAHeapBufferObject::~CDMAHeapBufferObject |
( |
| ) |
|
|
overridevirtual |
◆ Create()
std::unique_ptr< CBufferObject > CDMAHeapBufferObject::Create |
( |
| ) |
|
|
static |
◆ CreateBufferObject() [1/2]
bool CDMAHeapBufferObject::CreateBufferObject |
( |
uint32_t | format, |
|
|
uint32_t | width, |
|
|
uint32_t | height ) |
|
overridevirtual |
Create a BufferObject based on the format, width, and height of the desired buffer.
- Parameters
-
- Returns
- true BufferObject creation was successful.
-
false BufferObject creation was unsuccessful.
Implements CBufferObject.
◆ CreateBufferObject() [2/2]
bool CDMAHeapBufferObject::CreateBufferObject |
( |
uint64_t | size | ) |
|
|
overridevirtual |
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.
Reimplemented from CBufferObject.
◆ DestroyBufferObject()
void CDMAHeapBufferObject::DestroyBufferObject |
( |
| ) |
|
|
overridevirtual |
◆ GetMemory()
uint8_t * CDMAHeapBufferObject::GetMemory |
( |
| ) |
|
|
overridevirtual |
Get the Memory location of the BufferObject. This method needs to be called to be able to copy data into the BufferObject.
- Returns
- uint8_t* pointer to the memory location of the BufferObject.
Implements IBufferObject.
◆ GetName()
std::string CDMAHeapBufferObject::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the Name of the BufferObject type in use.
- Returns
- std::string name of the BufferObject type in use
Implements IBufferObject.
◆ Register()
void CDMAHeapBufferObject::Register |
( |
| ) |
|
|
static |
◆ ReleaseMemory()
void CDMAHeapBufferObject::ReleaseMemory |
( |
| ) |
|
|
overridevirtual |
Release the mapped memory of the BufferObject. After calling this the memory location pointed to by GetMemory() will be invalid.
Implements IBufferObject.
The documentation for this class was generated from the following files: