HDK
|
#include <IMX_Buffer.h>
Public Member Functions | |
IMX_CPU_Image ()=default | |
IMX_CPU_Image (const exint size) | |
IMX_CPU_Image (const IMX_CPU_Image &other) | |
IMX_CPU_Image (IMX_CPU_Image &&other) noexcept | |
IMX_CPU_Image & | operator= (const IMX_CPU_Image &other) |
void | adoptFromAlignedMalloc (void *data, const exint size) |
void | adoptFromMalloc (void *data, const exint size) |
void | adoptFromNew (void *data, const exint size) |
~IMX_CPU_Image () | |
void * | data () const |
exint | size () const |
The size of the buffer data in bytes. More... | |
The traditional allocator will align to the size of the type, which in this case is char - however, in order to maximize the chances of vectorized instructions being generated, we'll align to the size of the cache line.
Note: We don't have a cross-platform method to determine the size of the cache line, so we'll just assume 64 bytes.
Definition at line 126 of file IMX_Buffer.h.
|
explicitdefault |
|
inlineexplicit |
Definition at line 131 of file IMX_Buffer.h.
|
inline |
Definition at line 138 of file IMX_Buffer.h.
|
inlinenoexcept |
Definition at line 145 of file IMX_Buffer.h.
|
inline |
Definition at line 190 of file IMX_Buffer.h.
Definition at line 163 of file IMX_Buffer.h.
Definition at line 172 of file IMX_Buffer.h.
Definition at line 181 of file IMX_Buffer.h.
|
inline |
The buffer data. It's the user's responsibility to interpret this in the correct data type. The IMX_CPU_Image retains ownership of this buffer.
Definition at line 198 of file IMX_Buffer.h.
|
inline |
Definition at line 155 of file IMX_Buffer.h.
The size of the buffer data in bytes.
Definition at line 201 of file IMX_Buffer.h.