Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_tile_data_store.h File Reference
#include "kritaimage_export.h"
#include <QReadWriteLock>
#include "kis_tile_data_interface.h"
#include "kis_tile_data_pooler.h"
#include "swap/kis_tile_data_swapper.h"
#include "swap/kis_swapped_data_store.h"
#include "3rdparty/lock_free_map/concurrent_map.h"

Go to the source code of this file.

Classes

class  KisTileDataStore
 
struct  KisTileDataStore::MemoryStatistics
 

Functions

template<typename T >
MiB_TO_METRIC (T value)
 

Function Documentation

◆ MiB_TO_METRIC()

template<typename T >
T MiB_TO_METRIC ( T value)
inline

Definition at line 175 of file kis_tile_data_store.h.

176{
177 unsigned long long __MiB = 1ULL << 20;
178 return value * (__MiB / (KisTileData::WIDTH * KisTileData::HEIGHT));
179}
float value(const T *src, size_t ch)
static const qint32 HEIGHT
static const qint32 WIDTH

References KisTileData::HEIGHT, value(), and KisTileData::WIDTH.