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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-24 19:29:43 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-24 19:29:43 +0400
commit09e31a41bf2cfa6af910f8d468f2f323c90ac752 (patch)
tree8e6753514a7c8c8be4727685d0479a78745e151e /source/blender/compositor/operations/COM_KeyingScreenOperation.h
parent46b4f53a1b031bb90ca0694daba7cb02b2b09c8b (diff)
Optimization of keying screen node
Use AABB check before calculating barycentric coordinates. In simple tests with FullHD image and 4-9 tracks used for gradient gave 1.5-2x speedup.
Diffstat (limited to 'source/blender/compositor/operations/COM_KeyingScreenOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_KeyingScreenOperation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_KeyingScreenOperation.h b/source/blender/compositor/operations/COM_KeyingScreenOperation.h
index 9d3f44f6be2..a539ecf696e 100644
--- a/source/blender/compositor/operations/COM_KeyingScreenOperation.h
+++ b/source/blender/compositor/operations/COM_KeyingScreenOperation.h
@@ -47,6 +47,7 @@ protected:
VoronoiTriangulationPoint *triangulated_points;
int (*triangles)[3];
int triangulated_points_total, triangles_total;
+ rctf *triangles_AABB;
} TriangulationData;
MovieClip *movieClip;