diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-11-27 01:09:29 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-11-27 01:09:29 +0400 |
commit | f5f4348e10774fb1f90aaf718f144240137f4281 (patch) | |
tree | 859e03c620ba10bf6d16dd8d1fa85847a7a19a46 /source/blender/makesdna/DNA_tracking_types.h | |
parent | 804ec83185d88150908fa0afddd15ccfc1f583f8 (diff) |
Camera tracking: presets for default tracking settings
Internal changes are almost finished, changes in the interface need to be discussed.
Diffstat (limited to 'source/blender/makesdna/DNA_tracking_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_tracking_types.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_tracking_types.h b/source/blender/makesdna/DNA_tracking_types.h index 88173e6cac3..635be805d1b 100644 --- a/source/blender/makesdna/DNA_tracking_types.h +++ b/source/blender/makesdna/DNA_tracking_types.h @@ -107,16 +107,25 @@ typedef struct MovieTrackingTrack { float minimum_correlation; /* minimal correlation which is still treated as successful tracking */ /* ** KLT tracker settings ** */ - int pyramid_levels; /* number of pyramid levels to use for KLT tracking */ - char pad5[4]; + short pyramid_levels; /* number of pyramid levels to use for KLT tracking */ + char pad5[6]; } MovieTrackingTrack; typedef struct MovieTrackingSettings { + /* ** default tracker settings */ + short default_tracker; /* tracking algorithm used by default */ + short default_pyramid_levels; /* number of pyramid levels to use for KLT tracking */ + float default_minimum_correlation; /* minimal correlation which is still treated as successful tracking */ + short default_pattern_size; /* size of pattern area for new tracks */ + short default_search_size; /* size of search area for new tracks */ + /* ** common tracker settings ** */ short speed; /* speed of tracking */ short frames_limit; /* number of frames to be tarcked during single tracking session (if TRACKING_FRAMES_LIMIT is set) */ short margin; /* margin from frame boundaries */ - char pad[2]; + + short pad; + int flag; int adjframes; /* re-adjust every N frames */ @@ -125,8 +134,7 @@ typedef struct MovieTrackingSettings { /* ** which camera intrinsics to refine. uses on the REFINE_* flags */ short refine_camera_intrinsics; - - char pad2[6]; + short pad2; /* ** tool settings ** */ @@ -172,8 +180,6 @@ typedef struct MovieTrackingStats { typedef struct MovieTracking { MovieTrackingSettings settings; /* different tracking-related settings */ - char pad2[4]; - MovieTrackingCamera camera; /* camera intrinsics */ ListBase tracks; /* all tracks */ MovieTrackingReconstruction reconstruction; /* reconstruction data */ @@ -204,6 +210,9 @@ enum { #define TRACK_CUSTOMCOLOR (1<<7) #define TRACK_USE_2D_STAB (1<<8) +/* MovieTrackingSettings->flag */ +#define TRACKING_SETTINGS_SHOW_DEFAULT_EXPANDED (1<<0) + /* MovieTrackingSettings->tracker */ #define TRACKER_KLT 0 #define TRACKER_SAD 1 |