diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-26 13:42:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-26 13:44:43 +0300 |
commit | c8d2ebe13c1a93a7390df60607525c47614b4984 (patch) | |
tree | f6c5f8403db37778e4905d4f865070cec187089e /source/blender/blenkernel/BKE_tracking.h | |
parent | f1f42c6172c7e656f42cb4895c0badf10f33a1ad (diff) |
Compositor: Speedup movie (un)distortion operation
Avoid per-pixel camera intrincs object construction and synchronization.
Here on a bit synthetic file it gives about 40% speedup with a single node.
Diffstat (limited to 'source/blender/blenkernel/BKE_tracking.h')
-rw-r--r-- | source/blender/blenkernel/BKE_tracking.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_tracking.h b/source/blender/blenkernel/BKE_tracking.h index 264bf2bd8fa..2ca88425c29 100644 --- a/source/blender/blenkernel/BKE_tracking.h +++ b/source/blender/blenkernel/BKE_tracking.h @@ -200,6 +200,12 @@ void BKE_tracking_distortion_set_threads(struct MovieDistortion *distortion, int struct MovieDistortion *BKE_tracking_distortion_copy(struct MovieDistortion *distortion); struct ImBuf *BKE_tracking_distortion_exec(struct MovieDistortion *distortion, struct MovieTracking *tracking, struct ImBuf *ibuf, int width, int height, float overscan, bool undistort); +void BKE_tracking_distortion_distort_v2(struct MovieDistortion *distortion, + const float co[2], + float r_co[2]); +void BKE_tracking_distortion_undistort_v2(struct MovieDistortion *distortion, + const float co[2], + float r_co[2]); void BKE_tracking_distortion_free(struct MovieDistortion *distortion); void BKE_tracking_distort_v2(struct MovieTracking *tracking, const float co[2], float r_co[2]); |