1 #ifndef QCEPALLOCATOR_H
2 #define QCEPALLOCATOR_H
47 int width,
int height,
65 static void allocate(
int sz,
int width,
int height);
66 static void deallocate(
int sz,
int width,
int height);
91 Q_PROPERTY(
int max READ get_Max WRITE set_Max)
100 Q_PROPERTY(
int reserve READ get_Reserve WRITE set_Reserve)
103 Q_PROPERTY(
int allocated READ get_Allocated WRITE set_Allocated STORED false)
107 #endif // QCEPALLOCATOR_H
static void deallocate(int sz, int width, int height)
static QcepIntegratedDataPtr newIntegratedData(AllocationStrategy strat, QcepDoubleImageDataPtr image, QcepObject *parent)
void readSettings(QSettings *settings, QString section)
int int16SizeMB(int width, int height)
QcepAllocator(QcepSettingsSaverPtr saver)
void changedSizeMB(int newMB)
static void newDoubleImageAndIntegratedData(AllocationStrategy strat, int width, int height, QcepObject *parent, QcepDoubleImageDataPtr &img, QcepIntegratedDataPtr &integ)
QSharedPointer< QcepIntegratedData > QcepIntegratedDataPtr
static quint64 allocatedMemory()
int int32SizeMB(int width, int height)
void writeSettings(QSettings *settings, QString section)
static QcepDoubleImageDataPtr newDoubleImage(AllocationStrategy strat, int width, int height, QcepObject *parent)
#define QCEP_INTEGER_PROPERTY(propname)
int doubleSizeMB(int width, int height)
int maskSizeMB(int width, int height)
double allocatedMemoryMB()
QSharedPointer< QcepSettingsSaver > QcepSettingsSaverPtr
int waitTillAvailable(AllocationStrategy strat, int sizeMB)
QAtomicInt m_AllocatedMemoryMB
void allocatorHeartbeat()
static void allocate(int sz, int width, int height)
static QcepInt16ImageDataPtr newInt16Image(AllocationStrategy strat, int width, int height, QcepObject *parent)
QSharedPointer< QcepInt32ImageData > QcepInt32ImageDataPtr
int integratedSizeMB(int nrows)
static QcepMaskDataPtr newMask(AllocationStrategy strat, int width, int height, int def, QcepObject *parent)
void allocateBytes(quint64 amt)
QSharedPointer< QcepInt16ImageData > QcepInt16ImageDataPtr
QSharedPointer< QcepMaskData > QcepMaskDataPtr
static QcepInt32ImageDataPtr newInt32Image(AllocationStrategy strat, int width, int height, QcepObject *parent)
void deallocateBytes(quint64 amt)
QSharedPointer< QcepDoubleImageData > QcepDoubleImageDataPtr