Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Larabell <xgl.asyliax@gmail.com>2012-06-13 23:57:23 +0400
committerPeter Larabell <xgl.asyliax@gmail.com>2012-06-13 23:57:23 +0400
commitceffc2cd50ea1e35757c8834b83b1d55f93d88c6 (patch)
treec4cbbc1d4ad1369d5412c60e8575ee2308cfe296 /source/blender/compositor/operations/COM_MaskOperation.cpp
parent96099688c667dd601d6dc7c795dd508f5d28646c (diff)
add Anti-Aliasing (very rough draft algorithm, NOT FINAL version) to raskter lib. Code is still quite messy but will be replaced when final algo comes in anyway.
Diffstat (limited to 'source/blender/compositor/operations/COM_MaskOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_MaskOperation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_MaskOperation.cpp b/source/blender/compositor/operations/COM_MaskOperation.cpp
index bfbf2b42e82..8f7115659a1 100644
--- a/source/blender/compositor/operations/COM_MaskOperation.cpp
+++ b/source/blender/compositor/operations/COM_MaskOperation.cpp
@@ -32,6 +32,7 @@
extern "C" {
#include "BKE_mask.h"
+ #include "../../../../intern/raskter/raskter.h"
}
MaskOperation::MaskOperation(): NodeOperation()
@@ -74,7 +75,10 @@ void *MaskOperation::initializeTileData(rcti *rect, MemoryBuffer **memoryBuffers
float *buffer;
buffer = (float *)MEM_callocN(sizeof(float) * width * height, "rasterized mask");
- BKE_mask_rasterize(mask, width, height, buffer, TRUE);
+ BKE_mask_rasterize(mask, width, height, buffer, TRUE, this->smooth);
+ if(this->smooth) {
+ PLX_antialias_buffer(buffer, width, height);
+ }
this->rasterizedMask = buffer;
}