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@blender.org>2020-11-30 16:48:48 +0300
committerSergey Sharybin <sergey@blender.org>2020-11-30 16:48:48 +0300
commit6fba2726c77167f8a4746312cb0d522fd43e4c63 (patch)
tree29a32a248564a3359d4db33c05866817e9070700 /source/blender/blenkernel/intern/tracking_auto.c
parent2f08906c4766f84685365ee681d04649c9ca13c5 (diff)
Tracking: Cleanup, finish pass of comments in the context
Some fields are still not really documented, but they are subject of refactor/fix which will happen shortly.
Diffstat (limited to 'source/blender/blenkernel/intern/tracking_auto.c')
-rw-r--r--source/blender/blenkernel/intern/tracking_auto.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/tracking_auto.c b/source/blender/blenkernel/intern/tracking_auto.c
index 995e25a1536..faa1f207788 100644
--- a/source/blender/blenkernel/intern/tracking_auto.c
+++ b/source/blender/blenkernel/intern/tracking_auto.c
@@ -91,11 +91,23 @@ typedef struct AutoTrackContext {
int num_input_tracks;
MovieTrackingTrack **input_tracks;
+ /* Dimensions of movie frame, in pixels.
+ *
+ * NOTE: All clips and frames within a clip are expected to have match3ed dimensions.
+ *
+ * TODO(sergey): Make it more flexible to fully support multiple-clip tracking. Could either be
+ * stored as a `pair<MovieClip, Dimensions>` or even be replaced with actual frame size access
+ * to support variadic frame dimensions. */
int frame_width, frame_height;
- struct libmv_AutoTrack *autotrack;
+ /* Accessor for images of clip. Used by the autotrack context. */
TrackingImageAccessor *image_accessor;
+ /* Auto-track context.
+ *
+ * NOTE: Is accessed from multiple threads at once. */
+ struct libmv_AutoTrack *autotrack;
+
AutoTrackOptions *track_options; /* Per-tracking track options. */
int sync_frame;