diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-13 18:39:06 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-13 18:39:06 +0400 |
commit | d4c6ac9a60aa3c945fe9fa2d726b7434674832b0 (patch) | |
tree | 9d371953b0575b90ea9cff80ea2ccdda033e4fe5 /source/blender/blenkernel/intern/tracking.c | |
parent | b48deabf4e3dd815d70ffd01942aeaa8dff64d53 (diff) |
Cleanup and small improvements to libmv
- Added const modifiers where it makes sense and
helps keep code safe.
- Reshuffled argument to match <inputs>,<outputs>
convention on parameters.
- Pass values to ApplyRadialDistortionCameraIntrinsics
by a constant reference.
This will save lots of CPU ticks passing relatively
heavy jet objects to this function when running
bundle adjustment.
Diffstat (limited to 'source/blender/blenkernel/intern/tracking.c')
-rw-r--r-- | source/blender/blenkernel/intern/tracking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/tracking.c b/source/blender/blenkernel/intern/tracking.c index 74507b6d543..fd8ae34192a 100644 --- a/source/blender/blenkernel/intern/tracking.c +++ b/source/blender/blenkernel/intern/tracking.c @@ -1572,7 +1572,7 @@ void BKE_tracking_distortion_update(MovieDistortion *distortion, MovieTracking * cameraIntrinscisOptionsFromTracking(&camera_intrinsics_options, tracking, calibration_width, calibration_height); - libmv_CameraIntrinsicsUpdate(distortion->intrinsics, &camera_intrinsics_options); + libmv_CameraIntrinsicsUpdate(&camera_intrinsics_options, distortion->intrinsics); } void BKE_tracking_distortion_set_threads(MovieDistortion *distortion, int threads) |