Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/intern/COM_MemoryBuffer.h
| Show First 20 Lines • Show All 367 Lines • ▼ Show 20 Lines | public: | ||||
| * \brief get the data of this MemoryBuffer | * \brief get the data of this MemoryBuffer | ||||
| * \note buffer should already be available in memory | * \note buffer should already be available in memory | ||||
| */ | */ | ||||
| float *getBuffer() | float *getBuffer() | ||||
| { | { | ||||
| return this->m_buffer; | return this->m_buffer; | ||||
| } | } | ||||
| float *release_ownership_buffer() | |||||
| { | |||||
| owns_data_ = false; | |||||
| return this->m_buffer; | |||||
| } | |||||
| MemoryBuffer *inflate() const; | MemoryBuffer *inflate() const; | ||||
| inline void wrap_pixel(int &x, int &y, MemoryBufferExtend extend_x, MemoryBufferExtend extend_y) | inline void wrap_pixel(int &x, int &y, MemoryBufferExtend extend_x, MemoryBufferExtend extend_y) | ||||
| { | { | ||||
| const int w = getWidth(); | const int w = getWidth(); | ||||
| const int h = getHeight(); | const int h = getHeight(); | ||||
| x = x - m_rect.xmin; | x = x - m_rect.xmin; | ||||
| y = y - m_rect.ymin; | y = y - m_rect.ymin; | ||||
| ▲ Show 20 Lines • Show All 316 Lines • Show Last 20 Lines | |||||