diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2012-07-25 14:46:19 +0400 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2012-07-25 14:46:19 +0400 |
commit | 8df10a4018b84d57ed4ff6e2bb09c05e4e607099 (patch) | |
tree | 24dfebf0641881e2cf0d516386ed67131e147f45 /source/blender/compositor/intern/COM_MemoryBuffer.h | |
parent | c3a8894f57fc7560e54a344a4a16ed5b3886a688 (diff) |
Defocus node.
added some maxblur optimizations. Per tile the max blur is calcualted,
will save some unneeded CPU/GPU loops
GPU: 1:09 => 0:21
CPU: 1:50 => 0:35
Diffstat (limited to 'source/blender/compositor/intern/COM_MemoryBuffer.h')
-rw-r--r-- | source/blender/compositor/intern/COM_MemoryBuffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/compositor/intern/COM_MemoryBuffer.h b/source/blender/compositor/intern/COM_MemoryBuffer.h index 9abbfb163e2..411c5b9ad8a 100644 --- a/source/blender/compositor/intern/COM_MemoryBuffer.h +++ b/source/blender/compositor/intern/COM_MemoryBuffer.h @@ -228,6 +228,8 @@ public: MemoryBuffer *duplicate(); float *convertToValueBuffer(); + float getMaximumValue(); + float getMaximumValue(rcti* rect); private: unsigned int determineBufferSize(); |