Start migrating away from pat_min and pat_max for markers
authorKeir Mierle <mierle@gmail.com>
Mon, 14 May 2012 10:47:25 +0000 (10:47 +0000)
committerKeir Mierle <mierle@gmail.com>
Mon, 14 May 2012 10:47:25 +0000 (10:47 +0000)
commit4f81bdf73cf31e70bdf77701c7201471c659e060
treecb4e9a0ca9c25127ed6a6ab267460f3485ee72b2
parentbac340e6740ea4f5f1ac41a47b6a540d726c4ac6
Start migrating away from pat_min and pat_max for markers

This starts converting markers in the movie clip editor / 2D
tracker from using pat_min and pat_max notation to using the
a more general, 4-corner representation. There is still
considerable porting work to do; in particular:

- The preview widget does not respect the new
  representation
- The corners cannot yet be edited individually.
- The clamping does not do the right thing for general
  corners; e.g. detecting a convex quad.
- The tracking code in Blender does not actually invoke the
  corner tracking version of libmv's tracking API.

Next steps:

- Convert libmv's legacy ESM tracker and brute tracker to
  work under the new TrackRegion() API.
- Make Blender use the new TrackRegion() API; this will
  allow real planar tracking tests.
- Everything else (UI, etc).

This patch is mostly the work of Sergey Sharybin.
source/blender/blenkernel/BKE_tracking.h
source/blender/blenkernel/intern/movieclip.c
source/blender/blenkernel/intern/tracking.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_clip/clip_buttons.c
source/blender/editors/space_clip/clip_draw.c
source/blender/editors/space_clip/space_clip.c
source/blender/editors/space_clip/tracking_ops.c
source/blender/editors/transform/transform_conversions.c
source/blender/makesdna/DNA_tracking_types.h