Tracking: Cleanup pattern match DNA definition

Wrong comment was used for enumerator.

Also made it a real typed enumerator to ease use in the implementation
code.

Should be no functional changes.
This commit is contained in:
Sergey Sharybin
2020-11-30 14:56:47 +01:00
parent f61ad0e101
commit c949062c6e
2 changed files with 9 additions and 7 deletions

View File

@@ -165,7 +165,8 @@ typedef struct MovieTrackingTrack {
short frames_limit;
/** Margin from frame boundaries. */
short margin;
/** Re-adjust every N frames. */
/** Denotes which frame is used for the reference during tracking.
* An enumerator of `eTrackFrameMatch`. */
short pattern_match;
/* tracking parameters */
@@ -268,7 +269,8 @@ typedef struct MovieTrackingSettings {
short default_frames_limit;
/** Margin from frame boundaries. */
short default_margin;
/** Re-adjust every N frames. */
/** Denotes which frame is used for the reference during tracking.
* An enumerator of `eTrackFrameMatch`. */
short default_pattern_match;
/** Default flags like color channels used by default. */
short default_flag;
@@ -518,11 +520,11 @@ enum {
TRACK_ALGORITHM_FLAG_USE_MASK = (1 << 3),
};
/* MovieTrackingTrack->adjframes */
enum {
/* MovieTrackingTrack->pattern_match */
typedef enum eTrackFrameMatch {
TRACK_MATCH_KEYFRAME = 0,
TRACK_MATCH_PREVFRAME = 1,
};
TRACK_MATCH_PREVIOS_FRAME = 1,
} eTrackFrameMatch;
/* MovieTrackingSettings->flag */
enum {

View File

@@ -856,7 +856,7 @@ static const EnumPropertyItem tracker_motion_model[] = {
static const EnumPropertyItem pattern_match_items[] = {
{TRACK_MATCH_KEYFRAME, "KEYFRAME", 0, "Keyframe", "Track pattern from keyframe to next frame"},
{TRACK_MATCH_PREVFRAME,
{TRACK_MATCH_PREVIOS_FRAME,
"PREV_FRAME",
0,
"Previous frame",