Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/intern/COM_MemoryBuffer.h
| Context not available. | |||||
| void writePixel(int x, int y, const float color[4]); | void writePixel(int x, int y, const float color[4]); | ||||
| void addPixel(int x, int y, const float color[4]); | void addPixel(int x, int y, const float color[4]); | ||||
| inline void readBilinear(float *result, float x, float y, | inline void readBilinear(float *result, float x, float y, | ||||
| MemoryBufferExtend extend_x = COM_MB_CLIP, | MemoryBufferExtend extend_x = COM_MB_CLIP, | ||||
| MemoryBufferExtend extend_y = COM_MB_CLIP) | MemoryBufferExtend extend_y = COM_MB_CLIP) | ||||
| { | { | ||||
| float u = x; | float u = x; | ||||
| float v = y; | float v = y; | ||||
| this->wrap_pixel(u, v, extend_x, extend_y); | this->wrap_pixel(u, v, extend_x, extend_y); | ||||
| BLI_bilinear_interpolation_fl(this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u, v); | BLI_bilinear_interpolation_fl(this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u, v); | ||||
| } | } | ||||
| inline void readBicubic(float *result, float x, float y, | |||||
| MemoryBufferExtend extend_x = COM_MB_CLIP, | |||||
| MemoryBufferExtend extend_y = COM_MB_CLIP) | |||||
| { | |||||
| float u = x; | |||||
| float v = y; | |||||
| this->wrap_pixel(u, v, extend_x, extend_y); | |||||
| BLI_bicubic_interpolation_fl(this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u, v); | |||||
| } | |||||
| void readEWA(float *result, const float uv[2], const float derivatives[2][2], PixelSampler sampler); | void readEWA(float *result, const float uv[2], const float derivatives[2][2], PixelSampler sampler); | ||||
| Context not available. | |||||