1#include "..\include\core\mat.h"
27 m_datamanager =
nullptr;
35 m_stride = cols *
sizeof(_T);
36 m_stride = m_stride + m_stride % 32;
38 this->allocateMemory(m_rows, m_stride);
52 m_data =
reinterpret_cast<char*
>(malloc(rows * m_stride));
56void Mat<_T>::releaseMemory()
58 if (
nullptr != m_data) {
65void Mat<_T>::release()
67 if (
nullptr == m_datamanager)
69 if ((m_datamanager->m_refcount--) != 1)
71 this->releaseMemory();