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>2011-08-01 19:28:19 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-08-01 19:28:19 +0400
commitb5716beef0c1c8ddd524e43aef182c3d7e651aba (patch)
tree6779f5bed217d95bc272891cbd0c5d7faaf0a1fb /source/blender/blenkernel/BKE_tracking.h
parente9b3225b8d3df25d2b3f87b83398113f87d90854 (diff)
Camera tracking integration
=========================== - Do not show frame boundary border when stabilization isn't enabled. - Separate stabilization settings from display in clip editor. Now clip can contain stabilization data but still be displayed un-stabilized in clip editor. - Internal changes in stabilization: * Use separated location/scale parameters rather than 4x4 matrix. In some ares "decomposed" data is needed (text draw functions, i.e.). Also such decomposed data could be used in compositor. * MovieClip now uses own structure for cache where additional data can be stored. MovieCache structure now one of properties in this new structure. * Get rid of stable image buffer stored in MovieClipStabilization structure. Pre-created buffer for scaling still stored there. This helps to keep playback realtime -- re-creating this buffer introduces ~15% slowdown. - Added sliders to 2D stabilization panel which controls intensity of translation/scale which applies on shot. - Added filter type to Stabilize2D compositor node. Supports nearest, bilinear and bicubic interpolation. - After discussion with Sebastian and Francois added new node called Transformation. It can apply translation, rotation and scale. It's not the same thing as applying this components separately -- all transformation is happening inside "canvas". And it should be more accurate on interpolation and sub-pixel translation. Need to check order of applying translation/scale/rotation btw. - Added output sockets to movie clip compositor node. They holds stabilization data which can be used by Translate or Transform nodes. - Minor fix of UI issues in Display panel.
Diffstat (limited to 'source/blender/blenkernel/BKE_tracking.h')
-rw-r--r--source/blender/blenkernel/BKE_tracking.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_tracking.h b/source/blender/blenkernel/BKE_tracking.h
index 85af75d2656..f3e2b083e17 100644
--- a/source/blender/blenkernel/BKE_tracking.h
+++ b/source/blender/blenkernel/BKE_tracking.h
@@ -87,8 +87,9 @@ void BKE_tracking_detect(struct MovieTracking *tracking, struct ImBuf *imbuf, in
struct MovieTrackingTrack *BKE_tracking_indexed_bundle(struct MovieTracking *tracking, int bundlenr);
-void BKE_tracking_stabilization_matrix(struct MovieTracking *tracking, int framenr, int width, int height, float mat[4][4]);
-struct ImBuf *BKE_tracking_stabilize_shot(struct MovieTracking *tracking, int framenr, struct ImBuf *ibuf, float mat[4][4]);
+void BKE_tracking_stabilization_data(struct MovieTracking *tracking, int framenr, int width, int height, float loc[2], float *scale);
+struct ImBuf *BKE_tracking_stabilize_shot(struct MovieTracking *tracking, int framenr, struct ImBuf *ibuf, float loc[2], float *scale);
+void BKE_tracking_stabdata_to_mat4(float loc[2], float scale, float mat[4][4]);
#define TRACK_SELECTED(track) (((track->flag&TRACK_HIDDEN)==0) && ((track)->flag&SELECT || (track)->pat_flag&SELECT || (track)->search_flag&SELECT))
#define TRACK_AREA_SELECTED(track, area) (((track->flag&TRACK_HIDDEN)==0) && ((area)==TRACK_AREA_POINT?(track)->flag&SELECT : ((area)==TRACK_AREA_PAT?(track)->pat_flag&SELECT:(track)->search_flag&SELECT)))