HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IMX_CPU_Image Class Reference

#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_Imageoperator= (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 ()
 
voiddata () const
 
exint size () const
 The size of the buffer data in bytes. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

IMX_CPU_Image::IMX_CPU_Image ( )
explicitdefault
IMX_CPU_Image::IMX_CPU_Image ( const exint  size)
inlineexplicit

Definition at line 131 of file IMX_Buffer.h.

IMX_CPU_Image::IMX_CPU_Image ( const IMX_CPU_Image other)
inline

Definition at line 138 of file IMX_Buffer.h.

IMX_CPU_Image::IMX_CPU_Image ( IMX_CPU_Image &&  other)
inlinenoexcept

Definition at line 145 of file IMX_Buffer.h.

IMX_CPU_Image::~IMX_CPU_Image ( )
inline

Definition at line 190 of file IMX_Buffer.h.

Member Function Documentation

void IMX_CPU_Image::adoptFromAlignedMalloc ( void data,
const exint  size 
)
inline

Definition at line 163 of file IMX_Buffer.h.

void IMX_CPU_Image::adoptFromMalloc ( void data,
const exint  size 
)
inline

Definition at line 172 of file IMX_Buffer.h.

void IMX_CPU_Image::adoptFromNew ( void data,
const exint  size 
)
inline

Definition at line 181 of file IMX_Buffer.h.

void* IMX_CPU_Image::data ( ) const
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.

IMX_CPU_Image& IMX_CPU_Image::operator= ( const IMX_CPU_Image other)
inline

Definition at line 155 of file IMX_Buffer.h.

exint IMX_CPU_Image::size ( void  ) const
inline

The size of the buffer data in bytes.

Definition at line 201 of file IMX_Buffer.h.


The documentation for this class was generated from the following file: