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.
This commit is contained in:
Sergey Sharybin 2020-11-30 14:48:48 +01:00
parent 2f08906c47
commit 6fba2726c7
1 changed files with 13 additions and 1 deletions

View File

@ -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;