Blender V2.61 - r43446
|
Go to the source code of this file.
Defines | |
#define | TRACK_SELECTED(track) ((((track)->flag&TRACK_HIDDEN)==0) && ((track)->flag&SELECT || (track)->pat_flag&SELECT || (track)->search_flag&SELECT)) |
#define | TRACK_AREA_SELECTED(track, area) ((((track)->flag&TRACK_HIDDEN)==0) && ((area)==TRACK_AREA_POINT?(track)->flag&SELECT : ((area)==TRACK_AREA_PAT?(track)->pat_flag&SELECT:(track)->search_flag&SELECT))) |
#define | TRACK_VIEW_SELECTED(sc, track) ((TRACK_AREA_SELECTED(track, TRACK_AREA_POINT) || (((sc)->flag&SC_SHOW_MARKER_PATTERN && TRACK_AREA_SELECTED(track, TRACK_AREA_PAT))) || (((sc)->flag&SC_SHOW_MARKER_SEARCH && TRACK_AREA_SELECTED(track, TRACK_AREA_SEARCH))))) |
#define | MARKER_VISIBLE(sc, marker) (((marker)->flag&MARKER_DISABLED)==0 || ((sc)->flag&SC_HIDE_DISABLED)==0) |
#define | TRACK_CLEAR_UPTO 0 |
#define | TRACK_CLEAR_REMAINED 1 |
#define | TRACK_CLEAR_ALL 2 |
#define | CLAMP_PAT_DIM 1 |
#define | CLAMP_PAT_POS 2 |
#define | CLAMP_SEARCH_DIM 3 |
#define | CLAMP_SEARCH_POS 4 |
#define | CLAMP_PYRAMID_LEVELS 5 |
#define | TRACK_AREA_NONE -1 |
#define | TRACK_AREA_POINT 1 |
#define | TRACK_AREA_PAT 2 |
#define | TRACK_AREA_SEARCH 4 |
#define | TRACK_AREA_ALL (TRACK_AREA_POINT|TRACK_AREA_PAT|TRACK_AREA_SEARCH) |
Functions | |
void | BKE_tracking_init_settings (struct MovieTracking *tracking) |
void | BKE_tracking_clamp_track (struct MovieTrackingTrack *track, int event) |
void | BKE_tracking_track_flag (struct MovieTrackingTrack *track, int area, int flag, int clear) |
struct MovieTrackingTrack * | BKE_tracking_add_track (struct MovieTracking *tracking, struct ListBase *tracksbase, float x, float y, int framenr, int width, int height) |
struct MovieTrackingMarker * | BKE_tracking_insert_marker (struct MovieTrackingTrack *track, struct MovieTrackingMarker *marker) |
void | BKE_tracking_delete_marker (struct MovieTrackingTrack *track, int framenr) |
struct MovieTrackingMarker * | BKE_tracking_get_marker (struct MovieTrackingTrack *track, int framenr) |
struct MovieTrackingMarker * | BKE_tracking_ensure_marker (struct MovieTrackingTrack *track, int framenr) |
struct MovieTrackingMarker * | BKE_tracking_exact_marker (struct MovieTrackingTrack *track, int framenr) |
int | BKE_tracking_has_marker (struct MovieTrackingTrack *track, int framenr) |
void | BKE_tracking_free_track (struct MovieTrackingTrack *track) |
void | BKE_tracking_clear_path (struct MovieTrackingTrack *track, int ref_frame, int action) |
int | BKE_tracking_test_join_tracks (struct MovieTrackingTrack *dst_track, struct MovieTrackingTrack *src_track) |
void | BKE_tracking_join_tracks (struct MovieTrackingTrack *dst_track, struct MovieTrackingTrack *src_track) |
void | BKE_tracking_free (struct MovieTracking *tracking) |
struct ImBuf * | BKE_tracking_get_pattern_imbuf (struct ImBuf *ibuf, struct MovieTrackingTrack *track, struct MovieTrackingMarker *marker, int margin, int anchored, float pos[2], int origin[2]) |
struct ImBuf * | BKE_tracking_get_search_imbuf (struct ImBuf *ibuf, struct MovieTrackingTrack *track, struct MovieTrackingMarker *marker, int margin, int anchored, float pos[2], int origin[2]) |
void | BKE_track_unique_name (struct ListBase *tracksbase, struct MovieTrackingTrack *track) |
struct MovieTrackingTrack * | BKE_tracking_named_track (struct MovieTracking *tracking, struct MovieTrackingObject *object, const char *name) |
struct MovieTrackingTrack * | BKE_tracking_indexed_track (struct MovieTracking *tracking, int tracknr, struct ListBase **tracksbase_r) |
void | BKE_tracking_camera_shift (struct MovieTracking *tracking, int winx, int winy, float *shiftx, float *shifty) |
void | BKE_tracking_camera_to_blender (struct MovieTracking *tracking, struct Scene *scene, struct Camera *camera, int width, int height) |
void | BKE_get_tracking_mat (struct Scene *scene, struct Object *ob, float mat[4][4]) |
void | BKE_tracking_projection_matrix (struct MovieTracking *tracking, struct MovieTrackingObject *object, int framenr, int winx, int winy, float mat[4][4]) |
struct ListBase * | BKE_tracking_get_tracks (struct MovieTracking *tracking) |
struct MovieTrackingReconstruction * | BKE_tracking_get_reconstruction (struct MovieTracking *tracking) |
struct MovieTrackingTrack * | BKE_tracking_active_track (struct MovieTracking *tracking) |
struct MovieTrackingObject * | BKE_tracking_active_object (struct MovieTracking *tracking) |
struct MovieTrackingObject * | BKE_tracking_get_camera_object (struct MovieTracking *tracking) |
struct ListBase * | BKE_tracking_object_tracks (struct MovieTracking *tracking, struct MovieTrackingObject *object) |
struct MovieTrackingReconstruction * | BKE_tracking_object_reconstruction (struct MovieTracking *tracking, struct MovieTrackingObject *object) |
void | BKE_tracking_disable_imbuf_channels (struct ImBuf *ibuf, int disable_red, int disable_green, int disable_blue, int grayscale) |
void | BKE_tracking_free_clipboard (void) |
void | BKE_tracking_clipboard_copy_tracks (struct MovieTracking *tracking, struct MovieTrackingObject *object) |
int | BKE_tracking_clipboard_has_tracks (void) |
void | BKE_tracking_clipboard_paste_tracks (struct MovieTracking *tracking, struct MovieTrackingObject *object) |
struct MovieTrackingContext * | BKE_tracking_context_new (struct MovieClip *clip, struct MovieClipUser *user, short backwards, short sequence) |
void | BKE_tracking_context_free (struct MovieTrackingContext *context) |
void | BKE_tracking_sync (struct MovieTrackingContext *context) |
void | BKE_tracking_sync_user (struct MovieClipUser *user, struct MovieTrackingContext *context) |
int | BKE_tracking_next (struct MovieTrackingContext *context) |
int | BKE_tracking_can_reconstruct (struct MovieTracking *tracking, struct MovieTrackingObject *object, char *error_msg, int error_size) |
struct MovieReconstructContext * | BKE_tracking_reconstruction_context_new (struct MovieTracking *tracking, struct MovieTrackingObject *object, int keyframe1, int keyframe2, int width, int height) |
void | BKE_tracking_reconstruction_context_free (struct MovieReconstructContext *context) |
void | BKE_tracking_solve_reconstruction (struct MovieReconstructContext *context, short *stop, short *do_update, float *progress, char *stats_message, int message_size) |
int | BKE_tracking_finish_reconstruction (struct MovieReconstructContext *context, struct MovieTracking *tracking) |
struct MovieReconstructedCamera * | BKE_tracking_get_reconstructed_camera (struct MovieTracking *tracking, struct MovieTrackingObject *object, int framenr) |
void | BKE_tracking_get_interpolated_camera (struct MovieTracking *tracking, struct MovieTrackingObject *object, int framenr, float mat[4][4]) |
void | BKE_tracking_detect_fast (struct MovieTracking *tracking, struct ListBase *tracksbase, struct ImBuf *imbuf, int framenr, int margin, int min_trackness, int min_distance, struct bGPDlayer *layer, int place_outside_layer) |
void | BKE_tracking_stabilization_data (struct MovieTracking *tracking, int framenr, int width, int height, float loc[2], float *scale, float *angle) |
struct ImBuf * | BKE_tracking_stabilize (struct MovieTracking *tracking, int framenr, struct ImBuf *ibuf, float loc[2], float *scale, float *angle) |
void | BKE_tracking_stabdata_to_mat4 (int width, int height, float loc[2], float scale, float angle, float mat[4][4]) |
void | BKE_tracking_apply_intrinsics (struct MovieTracking *tracking, float co[2], float nco[2]) |
void | BKE_tracking_invert_intrinsics (struct MovieTracking *tracking, float co[2], float nco[2]) |
struct MovieDistortion * | BKE_tracking_distortion_create (void) |
struct MovieDistortion * | BKE_tracking_distortion_copy (struct MovieDistortion *distortion) |
struct ImBuf * | BKE_tracking_distortion_exec (struct MovieDistortion *distortion, struct MovieTracking *tracking, struct ImBuf *ibuf, int width, int height, float overscan, int undistort) |
void | BKE_tracking_distortion_destroy (struct MovieDistortion *distortion) |
struct ImBuf * | BKE_tracking_undistort (struct MovieTracking *tracking, struct ImBuf *ibuf, int width, int height, float overscan) |
struct ImBuf * | BKE_tracking_distort (struct MovieTracking *tracking, struct ImBuf *ibuf, int width, int height, float overscan) |
struct MovieTrackingObject * | BKE_tracking_new_object (struct MovieTracking *tracking, const char *name) |
void | BKE_tracking_remove_object (struct MovieTracking *tracking, struct MovieTrackingObject *object) |
void | BKE_tracking_object_unique_name (struct MovieTracking *tracking, struct MovieTrackingObject *object) |
struct MovieTrackingObject * | BKE_tracking_named_object (struct MovieTracking *tracking, const char *name) |
void | BKE_tracking_select_track (struct ListBase *tracksbase, struct MovieTrackingTrack *track, int area, int extend) |
void | BKE_tracking_deselect_track (struct MovieTrackingTrack *track, int area) |
#define CLAMP_PAT_DIM 1 |
Definition at line 175 of file BKE_tracking.h.
Referenced by BKE_tracking_clamp_track(), marker_block_handler(), recalcData_clip(), and slide_marker_modal().
#define CLAMP_PAT_POS 2 |
Definition at line 176 of file BKE_tracking.h.
Referenced by BKE_tracking_clamp_track(), and recalcData_clip().
#define CLAMP_PYRAMID_LEVELS 5 |
Definition at line 179 of file BKE_tracking.h.
Referenced by BKE_tracking_add_track(), and BKE_tracking_clamp_track().
#define CLAMP_SEARCH_DIM 3 |
Definition at line 177 of file BKE_tracking.h.
Referenced by BKE_tracking_clamp_track(), marker_block_handler(), recalcData_clip(), and slide_marker_modal().
#define CLAMP_SEARCH_POS 4 |
Definition at line 178 of file BKE_tracking.h.
Referenced by BKE_tracking_clamp_track(), marker_block_handler(), recalcData_clip(), and slide_marker_modal().
#define MARKER_VISIBLE | ( | sc, | |
marker | |||
) | (((marker)->flag&MARKER_DISABLED)==0 || ((sc)->flag&SC_HIDE_DISABLED)==0) |
Definition at line 169 of file BKE_tracking.h.
Referenced by border_select_exec(), circle_select_exec(), draw_tracking_tracks(), find_nearest_track(), and select_all_exec().
#define TRACK_AREA_ALL (TRACK_AREA_POINT|TRACK_AREA_PAT|TRACK_AREA_SEARCH) |
Definition at line 186 of file BKE_tracking.h.
Referenced by add_marker(), BKE_tracking_select_track(), border_select_exec(), circle_select_exec(), clean_tracks_exec(), deselect_all_tracks(), mouse_select(), and stabilize_2d_select_exec().
#define TRACK_AREA_NONE -1 |
Definition at line 181 of file BKE_tracking.h.
Referenced by BKE_tracking_track_flag(), and track_mouse_area().
#define TRACK_AREA_PAT 2 |
Definition at line 183 of file BKE_tracking.h.
Referenced by BKE_tracking_track_flag(), clear_invisible_track_selection(), create_slide_marker_data(), recalcData_clip(), slide_marker_customdata(), track_mouse_area(), and trackToTransData().
#define TRACK_AREA_POINT 1 |
Definition at line 182 of file BKE_tracking.h.
Referenced by BKE_tracking_track_flag(), cancel_mouse_slide(), create_slide_marker_data(), flushTransTracking(), markerToTransDataInit(), mouse_select(), slide_marker_customdata(), slide_marker_modal(), track_mouse_area(), and trackToTransData().
#define TRACK_AREA_SEARCH 4 |
Definition at line 184 of file BKE_tracking.h.
Referenced by BKE_tracking_track_flag(), clear_invisible_track_selection(), create_slide_marker_data(), mouse_on_corner(), recalcData_clip(), slide_marker_customdata(), slide_marker_modal(), track_mouse_area(), and trackToTransData().
#define TRACK_AREA_SELECTED | ( | track, | |
area | |||
) | ((((track)->flag&TRACK_HIDDEN)==0) && ((area)==TRACK_AREA_POINT?(track)->flag&SELECT : ((area)==TRACK_AREA_PAT?(track)->pat_flag&SELECT:(track)->search_flag&SELECT))) |
Definition at line 166 of file BKE_tracking.h.
Referenced by mouse_select(), and recalcData_clip().
#define TRACK_CLEAR_ALL 2 |
Definition at line 173 of file BKE_tracking.h.
Referenced by BKE_tracking_clear_path(), clip_keymap(), and CLIP_OT_clear_track_path().
#define TRACK_CLEAR_REMAINED 1 |
Definition at line 172 of file BKE_tracking.h.
Referenced by BKE_tracking_clear_path(), clip_keymap(), CLIP_OT_clear_track_path(), and CLIP_OT_select_grouped().
#define TRACK_CLEAR_UPTO 0 |
Definition at line 171 of file BKE_tracking.h.
Referenced by BKE_tracking_clear_path(), clip_keymap(), and CLIP_OT_clear_track_path().
#define TRACK_SELECTED | ( | track | ) | ((((track)->flag&TRACK_HIDDEN)==0) && ((track)->flag&SELECT || (track)->pat_flag&SELECT || (track)->search_flag&SELECT)) |
Definition at line 165 of file BKE_tracking.h.
Referenced by BKE_tracking_clipboard_copy_tracks(), BKE_tracking_context_new(), bundle_midpoint(), draw_marker_areas(), draw_viewport_object_reconstruction(), mouse_select(), and track_init_markers().
#define TRACK_VIEW_SELECTED | ( | sc, | |
track | |||
) | ((TRACK_AREA_SELECTED(track, TRACK_AREA_POINT) || (((sc)->flag&SC_SHOW_MARKER_PATTERN && TRACK_AREA_SELECTED(track, TRACK_AREA_PAT))) || (((sc)->flag&SC_SHOW_MARKER_SEARCH && TRACK_AREA_SELECTED(track, TRACK_AREA_SEARCH))))) |
Definition at line 167 of file BKE_tracking.h.
Referenced by clear_track_path_exec(), clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate(), count_selected_bundles(), createTransTrackingData(), delete_marker_exec(), delete_track_exec(), disable_markers_exec(), do_set_scale(), draw_marker_areas(), draw_marker_outline(), draw_marker_slide_zones(), draw_marker_texts(), draw_track_path(), find_nearest_track(), hide_tracks_exec(), join_tracks_exec(), lock_tracks_exec(), mouse_select(), recalcData_clip(), select_all_exec(), selected_boundbox(), set_axis_exec(), set_floor_exec(), set_origin_exec(), slide_marker_customdata(), stabilize_2d_add_exec(), track_copy_color_exec(), and track_count_markers().
Definition at line 2074 of file tracking.c.
References Scene::camera, scene_find_camera(), unit_m4(), and where_is_object_mat().
Referenced by bundle_midpoint(), do_set_scale(), draw_viewport_object_reconstruction(), followtrack_evaluate(), set_axis(), set_floor_exec(), and set_origin_exec().
void BKE_track_unique_name | ( | struct ListBase * | tracksbase, |
struct MovieTrackingTrack * | track | ||
) |
Definition at line 1949 of file tracking.c.
References BLI_uniquename(), and MovieTrackingTrack::name.
Referenced by BKE_tracking_add_track(), and BKE_tracking_clipboard_paste_tracks().
struct MovieTrackingObject* BKE_tracking_active_object | ( | struct MovieTracking * | tracking | ) | [read] |
Definition at line 2181 of file tracking.c.
References BLI_findlink(), MovieTracking::objectnr, and MovieTracking::objects.
Referenced by BKE_tracking_context_new(), BKE_tracking_get_reconstruction(), BKE_tracking_get_tracks(), copy_tracks_exec(), do_set_scale(), draw_tracking_tracks(), frame_jump_exec(), get_orientation_object(), paste_tracks_exec(), set_axis_exec(), set_floor_exec(), set_orientation_poll(), set_origin_exec(), set_solution_scale_poll(), solve_camera_initjob(), and tracking_object_remove_exec().
struct MovieTrackingTrack* BKE_tracking_active_track | ( | struct MovieTracking * | tracking | ) | [read] |
Definition at line 2165 of file tracking.c.
References MovieTracking::act_track, BKE_tracking_get_tracks(), BLI_findindex(), and NULL.
Referenced by BKE_movieclip_update_scopes(), clean_tracks_exec(), clip_delete_track(), delete_curve_exec(), delete_knot_exec(), draw_movieclip_cache(), draw_tracking_tracks(), draw_tracks_curves(), frame_jump_exec(), hide_tracks_exec(), join_tracks_exec(), mouse_select(), mouse_select_curve(), mouse_select_knot(), select_groped_exec(), set_floor_exec(), stabilize_2d_set_rotation_exec(), track_copy_color_exec(), and tracks_map_merge().
struct MovieTrackingTrack* BKE_tracking_add_track | ( | struct MovieTracking * | tracking, |
struct ListBase * | tracksbase, | ||
float | x, | ||
float | y, | ||
int | framenr, | ||
int | width, | ||
int | height | ||
) | [read] |
Definition at line 219 of file tracking.c.
References BKE_track_unique_name(), BKE_tracking_clamp_track(), BKE_tracking_insert_marker(), BLI_addtail(), CLAMP_PYRAMID_LEVELS, copy_v2_v2(), MovieTrackingSettings::default_frames_limit, MovieTrackingSettings::default_margin, MovieTrackingSettings::default_minimum_correlation, MovieTrackingSettings::default_pattern_match, MovieTrackingSettings::default_pattern_size, MovieTrackingSettings::default_pyramid_levels, MovieTrackingSettings::default_search_size, MovieTrackingSettings::default_tracker, MovieTrackingMarker::framenr, MovieTrackingTrack::frames_limit, MovieTrackingTrack::margin, MEM_callocN(), MovieTrackingTrack::minimum_correlation, MovieTrackingTrack::name, negate_v2_v2(), MovieTrackingTrack::pat_max, MovieTrackingTrack::pat_min, MovieTrackingTrack::pattern_match, MovieTrackingMarker::pos, MovieTrackingTrack::pyramid_levels, MovieTrackingTrack::search_max, MovieTrackingTrack::search_min, MovieTracking::settings, MovieTrackingTrack::tracker, and TRACKER_KLT.
Referenced by add_marker().
void BKE_tracking_apply_intrinsics | ( | struct MovieTracking * | tracking, |
float | co[2], | ||
float | nco[2] | ||
) |
Definition at line 2225 of file tracking.c.
References MovieTracking::camera, MovieTrackingCamera::focal, MovieTrackingCamera::k1, MovieTrackingCamera::k2, MovieTrackingCamera::k3, MovieTrackingCamera::pixel_aspect, and MovieTrackingCamera::principal.
Referenced by draw_distortion(), draw_tracking_tracks(), and ED_clip_point_stable_pos().
void BKE_tracking_camera_shift | ( | struct MovieTracking * | tracking, |
int | winx, | ||
int | winy, | ||
float * | shiftx, | ||
float * | shifty | ||
) |
Definition at line 2087 of file tracking.c.
References MovieTracking::camera, and MovieTrackingCamera::principal.
Referenced by BKE_tracking_camera_to_blender(), and BKE_tracking_projection_matrix().
void BKE_tracking_camera_to_blender | ( | struct MovieTracking * | tracking, |
struct Scene * | scene, | ||
struct Camera * | camera, | ||
int | width, | ||
int | height | ||
) |
Definition at line 2093 of file tracking.c.
References BKE_tracking_camera_shift(), MovieTracking::camera, CAMERA_SENSOR_FIT_AUTO, MovieTrackingCamera::focal, Camera::lens, MovieTrackingCamera::pixel_aspect, Scene::r, Camera::sensor_fit, MovieTrackingCamera::sensor_width, Camera::sensor_x, Camera::shiftx, Camera::shifty, RenderData::xasp, RenderData::xsch, RenderData::yasp, and RenderData::ysch.
Referenced by solve_camera_freejob().
int BKE_tracking_can_reconstruct | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object, | ||
char * | error_msg, | ||
int | error_size | ||
) |
Definition at line 1755 of file tracking.c.
References BKE_tracking_object_tracks(), and BLI_strncpy().
Referenced by solve_camera_initjob().
void BKE_tracking_clamp_track | ( | struct MovieTrackingTrack * | track, |
int | event | ||
) |
Definition at line 103 of file tracking.c.
References CLAMP_PAT_DIM, CLAMP_PAT_POS, CLAMP_PYRAMID_LEVELS, CLAMP_SEARCH_DIM, CLAMP_SEARCH_POS, MAX2, MIN2, MovieTrackingTrack::pat_max, MovieTrackingTrack::pat_min, MovieTrackingTrack::pyramid_levels, MovieTrackingTrack::search_max, MovieTrackingTrack::search_min, sub_v2_v2v2(), SWAP, MovieTrackingTrack::tracker, and TRACKER_KLT.
Referenced by BKE_tracking_add_track(), marker_block_handler(), recalcData_clip(), and slide_marker_modal().
void BKE_tracking_clear_path | ( | struct MovieTrackingTrack * | track, |
int | ref_frame, | ||
int | action | ||
) |
Definition at line 418 of file tracking.c.
References BKE_tracking_get_marker(), BKE_tracking_insert_marker(), MovieTrackingMarker::framenr, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, MEM_freeN(), MEM_reallocN(), NULL, put_disabled_marker(), TRACK_CLEAR_ALL, TRACK_CLEAR_REMAINED, and TRACK_CLEAR_UPTO.
Referenced by clear_track_path_exec().
void BKE_tracking_clipboard_copy_tracks | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object | ||
) |
Definition at line 615 of file tracking.c.
References BKE_tracking_object_tracks(), BLI_addtail(), duplicate_track(), ListBase::first, MovieTrackingTrack::next, TRACK_SELECTED, and tracking_clipboard.
Referenced by copy_tracks_exec().
int BKE_tracking_clipboard_has_tracks | ( | void | ) |
Definition at line 631 of file tracking.c.
References NULL, and tracking_clipboard.
Referenced by paste_tracks_poll().
void BKE_tracking_clipboard_paste_tracks | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object | ||
) |
Definition at line 636 of file tracking.c.
References BKE_track_unique_name(), BKE_tracking_object_tracks(), BLI_addtail(), duplicate_track(), MovieTrackingTrack::next, and tracking_clipboard.
Referenced by paste_tracks_exec().
void BKE_tracking_context_free | ( | struct MovieTrackingContext * | context | ) |
Definition at line 1000 of file tracking.c.
References BLI_end_threaded_malloc(), MEM_freeN(), MovieTrackingContext::sequence, track_context_free(), MovieTrackingContext::tracks_map, and tracks_map_free().
Referenced by track_markers_exec(), and track_markers_freejob().
struct MovieTrackingContext* BKE_tracking_context_new | ( | struct MovieClip * | clip, |
struct MovieClipUser * | user, | ||
short | backwards, | ||
short | sequence | ||
) | [read] |
Definition at line 866 of file tracking.c.
References MovieTrackingContext::backwards, BKE_movieclip_get_size(), BKE_tracking_active_object(), BKE_tracking_get_marker(), BKE_tracking_get_tracks(), BLI_begin_threaded_malloc(), MovieTrackingContext::clip, MovieTrackingContext::clip_flag, ELEM, ListBase::first, MovieTrackingContext::first_time, MovieClip::flag, MovieTrackingObject::flag, MovieTrackingMarker::flag, MovieTrackingTrack::flag, MovieClipUser::framenr, log(), M_LN2, MARKER_DISABLED, MAX2, MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_TIMECODE_FLAGS, MEM_callocN(), MIN2, MovieTrackingTrack::minimum_correlation, MovieTrackingObject::name, MovieTrackingTrack::next, MovieTrackingTrack::pat_max, MovieTrackingTrack::pat_min, MovieTrackingTrack::pyramid_levels, MovieClipUser::render_flag, MovieClipUser::render_size, MovieTrackingTrack::search_max, MovieTrackingTrack::search_min, MovieTrackingContext::sequence, MovieTrackingContext::settings, MovieTracking::settings, MovieTrackingContext::sync_frame, TRACK_LOCKED, TRACK_SELECTED, MovieTrackingTrack::tracker, TRACKER_HYBRID, TRACKER_KLT, TRACKER_SAD, MovieClip::tracking, TRACKING_OBJECT_CAMERA, MovieTrackingContext::tracks_map, tracks_map_insert(), tracks_map_new(), and MovieTrackingContext::user.
Referenced by track_markers_exec(), and track_markers_initjob().
void BKE_tracking_delete_marker | ( | struct MovieTrackingTrack * | track, |
int | framenr | ||
) |
Definition at line 301 of file tracking.c.
References MovieTrackingMarker::framenr, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, MEM_freeN(), MEM_reallocN(), and NULL.
Referenced by clip_delete_marker().
void BKE_tracking_deselect_track | ( | struct MovieTrackingTrack * | track, |
int | area | ||
) |
Definition at line 2871 of file tracking.c.
References BKE_tracking_track_flag(), and SELECT.
Referenced by deselect_all_tracks(), and mouse_select().
void BKE_tracking_detect_fast | ( | struct MovieTracking * | tracking, |
struct ListBase * | tracksbase, | ||
struct ImBuf * | imbuf, | ||
int | framenr, | ||
int | margin, | ||
int | min_trackness, | ||
int | min_distance, | ||
struct bGPDlayer * | layer, | ||
int | place_outside_layer | ||
) |
Definition at line 2342 of file tracking.c.
References MEM_freeN(), ImBuf::x, and ImBuf::y.
Referenced by detect_features_exec().
void BKE_tracking_disable_imbuf_channels | ( | struct ImBuf * | ibuf, |
int | disable_red, | ||
int | disable_green, | ||
int | disable_blue, | ||
int | grayscale | ||
) |
Definition at line 1013 of file tracking.c.
References g, if(), ImBuf::rect, ImBuf::rect_float, ImBuf::x, and ImBuf::y.
Referenced by disable_imbuf_channels(), and put_postprocessed_frame_to_cache().
struct ImBuf* BKE_tracking_distort | ( | struct MovieTracking * | tracking, |
struct ImBuf * | ibuf, | ||
int | width, | ||
int | height, | ||
float | overscan | ||
) | [read] |
Definition at line 2839 of file tracking.c.
References BKE_tracking_distortion_create(), BKE_tracking_distortion_exec(), MovieTracking::camera, MovieTrackingCamera::intrinsics, and NULL.
struct MovieDistortion* BKE_tracking_distortion_copy | ( | struct MovieDistortion * | distortion | ) | [read] |
Definition at line 2736 of file tracking.c.
References MovieDistortion::intrinsics, and MEM_callocN().
Referenced by local_merge(), and storage_copy().
struct MovieDistortion* BKE_tracking_distortion_create | ( | void | ) | [read] |
Definition at line 2727 of file tracking.c.
References MEM_callocN().
Referenced by BKE_tracking_distort(), BKE_tracking_undistort(), exec(), and proxy_startjob().
void BKE_tracking_distortion_destroy | ( | struct MovieDistortion * | distortion | ) |
Definition at line 2820 of file tracking.c.
References MovieDistortion::intrinsics, and MEM_freeN().
Referenced by BKE_tracking_free(), local_merge(), proxy_startjob(), and storage_free().
struct ImBuf* BKE_tracking_distortion_exec | ( | struct MovieDistortion * | distortion, |
struct MovieTracking * | tracking, | ||
struct ImBuf * | ibuf, | ||
int | width, | ||
int | height, | ||
float | overscan, | ||
int | undistort | ||
) | [read] |
Definition at line 2775 of file tracking.c.
References BKE_tracking_distortion_update(), ImBuf::channels, IB_RECT_INVALID, IMB_dupImBuf(), MovieDistortion::intrinsics, ImBuf::rect, ImBuf::rect_float, ImBuf::userflags, ImBuf::x, and ImBuf::y.
Referenced by BKE_tracking_distort(), BKE_tracking_undistort(), exec(), and get_undistorted_ibuf().
struct MovieTrackingMarker* BKE_tracking_ensure_marker | ( | struct MovieTrackingTrack * | track, |
int | framenr | ||
) | [read] |
Definition at line 366 of file tracking.c.
References BKE_tracking_get_marker(), BKE_tracking_insert_marker(), and MovieTrackingMarker::framenr.
Referenced by create_slide_marker_data(), disable_markers_exec(), marker_block_handler(), marker_update_cb(), recalcData_clip(), track_init_markers(), trackToTransData(), and ui_numedit_but_TRACKPREVIEW().
struct MovieTrackingMarker* BKE_tracking_exact_marker | ( | struct MovieTrackingTrack * | track, |
int | framenr | ||
) | [read] |
Definition at line 383 of file tracking.c.
References BKE_tracking_get_marker(), MovieTrackingMarker::framenr, and NULL.
Referenced by BKE_tracking_has_marker(), BKE_tracking_insert_marker(), BKE_tracking_next(), delete_marker_exec(), frame_jump_exec(), and track_count_markers().
int BKE_tracking_finish_reconstruction | ( | struct MovieReconstructContext * | context, |
struct MovieTracking * | tracking | ||
) |
Definition at line 1922 of file tracking.c.
References BKE_tracking_named_object(), MovieTrackingReconstruction::error, MovieTrackingReconstruction::flag, MovieReconstructContext::is_camera, MovieReconstructContext::object_name, MovieTracking::reconstruction, MovieReconstructContext::reprojection_error, TRACKING_RECONSTRUCTED, MovieReconstructContext::tracks_map, and tracks_map_merge().
Referenced by solve_camera_freejob().
void BKE_tracking_free | ( | struct MovieTracking * | tracking | ) |
Definition at line 572 of file tracking.c.
References BKE_tracking_distortion_destroy(), MovieTracking::camera, IMB_freeImBuf(), MovieTrackingCamera::intrinsics, MovieTracking::objects, MovieTracking::reconstruction, MovieTrackingStabilization::scaleibuf, MovieTracking::stabilization, tracking_objects_free(), tracking_reconstruction_free(), tracking_tracks_free(), and MovieTracking::tracks.
Referenced by free_movieclip().
void BKE_tracking_free_clipboard | ( | void | ) |
Definition at line 601 of file tracking.c.
References BKE_tracking_free_track(), MEM_freeN(), MovieTrackingTrack::next, and tracking_clipboard.
Referenced by WM_exit_ext().
void BKE_tracking_free_track | ( | struct MovieTrackingTrack * | track | ) |
Definition at line 398 of file tracking.c.
References MovieTrackingTrack::markers, and MEM_freeN().
Referenced by BKE_tracking_free_clipboard(), clean_tracks_exec(), clip_delete_track(), join_tracks_exec(), tracking_tracks_free(), tracks_map_free(), and tracks_map_merge().
struct MovieTrackingObject* BKE_tracking_get_camera_object | ( | struct MovieTracking * | tracking | ) | [read] |
Definition at line 2186 of file tracking.c.
References ListBase::first, MovieTrackingObject::flag, MovieTrackingObject::next, NULL, MovieTracking::objects, and TRACKING_OBJECT_CAMERA.
Referenced by camerasolver_evaluate(), followtrack_evaluate(), and test_constraints().
void BKE_tracking_get_interpolated_camera | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object, | ||
int | framenr, | ||
float | mat[4][4] | ||
) |
Definition at line 2047 of file tracking.c.
References BKE_tracking_object_reconstruction(), blend_m4_m4m4(), MovieTrackingReconstruction::cameras, copy_m4_m4(), MovieReconstructedCamera::framenr, reconstruction_camera_index(), scale_reconstructed_camera(), and unit_m4().
Referenced by bundle_midpoint(), camerasolver_evaluate(), draw_viewport_object_reconstruction(), followtrack_evaluate(), and objectsolver_evaluate().
struct MovieTrackingMarker* BKE_tracking_get_marker | ( | struct MovieTrackingTrack * | track, |
int | framenr | ||
) | [read] |
Definition at line 324 of file tracking.c.
References MovieTrackingMarker::framenr, MovieTrackingTrack::last_marker, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, and NULL.
Referenced by BKE_movieclip_update_scopes(), BKE_tracking_clear_path(), BKE_tracking_context_new(), BKE_tracking_ensure_marker(), BKE_tracking_exact_marker(), border_select_exec(), calculate_stabdata(), circle_select_exec(), createTransTrackingData(), draw_track_path(), draw_tracking_tracks(), find_nearest_track(), followtrack_evaluate(), mouse_select_curve(), select_all_exec(), select_groped_exec(), selected_boundbox(), slide_marker_customdata(), stabilization_median_point(), track_mouse_area(), and uiTemplateMarker().
struct ImBuf* BKE_tracking_get_pattern_imbuf | ( | struct ImBuf * | ibuf, |
struct MovieTrackingTrack * | track, | ||
struct MovieTrackingMarker * | marker, | ||
int | margin, | ||
int | anchored, | ||
float | pos[2], | ||
int | origin[2] | ||
) | [read] |
Definition at line 1120 of file tracking.c.
References get_area_imbuf(), MovieTrackingTrack::pat_max, and MovieTrackingTrack::pat_min.
Referenced by BKE_movieclip_update_scopes().
struct MovieReconstructedCamera* BKE_tracking_get_reconstructed_camera | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object, | ||
int | framenr | ||
) | [read] |
Definition at line 2032 of file tracking.c.
References BKE_tracking_object_reconstruction(), MovieTrackingReconstruction::cameras, NULL, and reconstruction_camera_index().
Referenced by BKE_tracking_projection_matrix(), and frame_jump_exec().
struct MovieTrackingReconstruction* BKE_tracking_get_reconstruction | ( | struct MovieTracking * | tracking | ) | [read] |
Definition at line 2218 of file tracking.c.
References BKE_tracking_active_object(), and BKE_tracking_object_reconstruction().
Referenced by clear_solution_exec(), draw_frame_curves(), draw_movieclip_cache(), and solve_camera_invoke().
struct ImBuf* BKE_tracking_get_search_imbuf | ( | struct ImBuf * | ibuf, |
struct MovieTrackingTrack * | track, | ||
struct MovieTrackingMarker * | marker, | ||
int | margin, | ||
int | anchored, | ||
float | pos[2], | ||
int | origin[2] | ||
) | [read] |
Definition at line 1126 of file tracking.c.
References get_area_imbuf(), MovieTrackingTrack::search_max, and MovieTrackingTrack::search_min.
struct ListBase* BKE_tracking_get_tracks | ( | struct MovieTracking * | tracking | ) | [read] |
Definition at line 2154 of file tracking.c.
References BKE_tracking_active_object(), MovieTrackingObject::flag, TRACKING_OBJECT_CAMERA, and MovieTracking::tracks.
Referenced by add_marker(), BKE_tracking_active_track(), BKE_tracking_context_new(), border_select_exec(), circle_select_exec(), clean_tracks_exec(), clear_invisible_track_selection(), clear_solution_exec(), clear_track_path_exec(), clip_graph_tracking_iterate(), clip_graph_tracking_values_iterate(), count_selected_bundles(), createTransTrackingData(), delete_curve_exec(), delete_knot_exec(), delete_marker_exec(), delete_track_exec(), detect_features_exec(), disable_markers_exec(), do_set_scale(), draw_tracking_tracks(), hide_tracks_clear_exec(), hide_tracks_exec(), join_tracks_exec(), lock_tracks_exec(), mouse_select(), recalcData_clip(), select_all_exec(), select_groped_exec(), selected_boundbox(), slide_marker_customdata(), stabilize_2d_add_exec(), stabilize_2d_remove_exec(), stabilize_2d_select_exec(), track_copy_color_exec(), track_count_markers(), and track_init_markers().
int BKE_tracking_has_marker | ( | struct MovieTrackingTrack * | track, |
int | framenr | ||
) |
Definition at line 393 of file tracking.c.
References BKE_tracking_exact_marker().
Referenced by put_disabled_marker().
struct MovieTrackingTrack* BKE_tracking_indexed_track | ( | struct MovieTracking * | tracking, |
int | tracknr, | ||
struct ListBase ** | tracksbase_r | ||
) | [read] |
Definition at line 2372 of file tracking.c.
References BKE_tracking_object_tracks(), ListBase::first, MovieTrackingTrack::flag, MovieTrackingTrack::next, NULL, MovieTracking::objects, and TRACK_HAS_BUNDLE.
Referenced by mouse_select().
void BKE_tracking_init_settings | ( | struct MovieTracking * | tracking | ) |
Definition at line 79 of file tracking.c.
References BKE_tracking_new_object(), MovieTracking::camera, CAMERA_UNITS_MM, MovieTrackingSettings::default_minimum_correlation, MovieTrackingSettings::default_pattern_size, MovieTrackingSettings::default_pyramid_levels, MovieTrackingSettings::default_search_size, MovieTrackingSettings::default_tracker, MovieTrackingSettings::dist, MovieTrackingSettings::keyframe1, MovieTrackingSettings::keyframe2, MovieTrackingStabilization::locinf, MovieTrackingStabilization::maxscale, MovieTrackingSettings::object_distance, MovieTrackingCamera::pixel_aspect, MovieTrackingStabilization::rotinf, MovieTrackingStabilization::scaleinf, MovieTrackingCamera::sensor_width, MovieTracking::settings, MovieTracking::stabilization, TRACKER_HYBRID, and MovieTrackingCamera::units.
Referenced by movieclip_alloc().
struct MovieTrackingMarker* BKE_tracking_insert_marker | ( | struct MovieTrackingTrack * | track, |
struct MovieTrackingMarker * | marker | ||
) | [read] |
Definition at line 268 of file tracking.c.
References BKE_tracking_exact_marker(), MovieTrackingMarker::framenr, MovieTrackingTrack::last_marker, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, MEM_callocN(), MEM_reallocN(), and NULL.
Referenced by BKE_tracking_add_track(), BKE_tracking_clear_path(), BKE_tracking_ensure_marker(), BKE_tracking_next(), and put_disabled_marker().
void BKE_tracking_invert_intrinsics | ( | struct MovieTracking * | tracking, |
float | co[2], | ||
float | nco[2] | ||
) |
Definition at line 2250 of file tracking.c.
References MovieTracking::camera, MovieTrackingCamera::focal, MovieTrackingCamera::k1, MovieTrackingCamera::k2, MovieTrackingCamera::k3, MovieTrackingCamera::pixel_aspect, and MovieTrackingCamera::principal.
Referenced by BKE_movieclip_update_scopes(), draw_distortion(), and ED_clip_point_undistorted_pos().
void BKE_tracking_join_tracks | ( | struct MovieTrackingTrack * | dst_track, |
struct MovieTrackingTrack * | src_track | ||
) |
Definition at line 504 of file tracking.c.
References BKE_tracking_test_join_tracks(), MovieTrackingMarker::flag, MovieTrackingMarker::framenr, i, MARKER_DISABLED, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, MEM_callocN(), and MEM_freeN().
Referenced by join_tracks_exec().
struct MovieTrackingObject* BKE_tracking_named_object | ( | struct MovieTracking * | tracking, |
const char * | name | ||
) | [read] |
Definition at line 2937 of file tracking.c.
References ListBase::first, MovieTrackingObject::name, MovieTrackingObject::next, NULL, and MovieTracking::objects.
Referenced by BKE_tracking_finish_reconstruction(), followtrack_evaluate(), objectsolver_evaluate(), test_constraints(), and tracks_map_merge().
struct MovieTrackingTrack* BKE_tracking_named_track | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object, | ||
const char * | name | ||
) | [read] |
Definition at line 1954 of file tracking.c.
References BKE_tracking_object_tracks(), ListBase::first, MovieTrackingTrack::name, MovieTrackingTrack::next, and NULL.
Referenced by followtrack_evaluate(), and test_constraints().
struct MovieTrackingObject* BKE_tracking_new_object | ( | struct MovieTracking * | tracking, |
const char * | name | ||
) | [read] |
Definition at line 2876 of file tracking.c.
References BKE_tracking_object_unique_name(), BLI_addtail(), BLI_countlist(), BLI_strncpy(), MEM_callocN(), MovieTrackingObject::name, MovieTracking::objectnr, MovieTracking::objects, MovieTracking::tot_object, and TRACKING_OBJECT_CAMERA.
Referenced by BKE_tracking_init_settings(), do_versions(), tracking_object_new_exec(), and tracks_map_merge().
int BKE_tracking_next | ( | struct MovieTrackingContext * | context | ) |
Definition at line 1310 of file tracking.c.
References MovieTrackingContext::backwards, BKE_movieclip_get_ibuf_flag(), BKE_tracking_exact_marker(), BKE_tracking_insert_marker(), MovieTrackingContext::clip, MovieTrackingContext::clip_flag, copy_v2_v2(), ELEM, MovieTrackingContext::first_time, MovieTrackingMarker::flag, MovieTrackingMarker::framenr, MovieClipUser::framenr, MovieTrackingContext::frames, image_new(), IMB_freeImBuf(), MovieTrackingTrack::margin, MARKER_DISABLED, MARKER_TRACKED, MAX2, MEM_callocN(), MEM_freeN(), MovieTrackingTrack::minimum_correlation, NULL, MovieTrackingTrack::pat_max, MovieTrackingTrack::pat_min, MovieTrackingTrack::pattern_match, MovieTrackingMarker::pos, put_disabled_marker(), sub_v2_v2v2(), TRACK_MATCH_KEYFRAME, MovieTrackingTrack::tracker, TRACKER_HYBRID, TRACKER_KLT, TRACKER_SAD, MovieTrackingContext::tracks_map, tracks_map_get(), tracks_map_size(), MovieTrackingContext::user, ImBuf::x, and ImBuf::y.
Referenced by track_markers_exec(), and track_markers_startjob().
struct MovieTrackingReconstruction* BKE_tracking_object_reconstruction | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object | ||
) | [read] |
Definition at line 2209 of file tracking.c.
References MovieTrackingObject::flag, MovieTracking::reconstruction, and TRACKING_OBJECT_CAMERA.
Referenced by BKE_tracking_get_interpolated_camera(), BKE_tracking_get_reconstructed_camera(), BKE_tracking_get_reconstruction(), and draw_viewport_object_reconstruction().
struct ListBase* BKE_tracking_object_tracks | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object | ||
) | [read] |
Definition at line 2200 of file tracking.c.
References MovieTrackingObject::flag, TRACKING_OBJECT_CAMERA, and MovieTracking::tracks.
Referenced by BKE_tracking_can_reconstruct(), BKE_tracking_clipboard_copy_tracks(), BKE_tracking_clipboard_paste_tracks(), BKE_tracking_indexed_track(), BKE_tracking_named_track(), BKE_tracking_reconstruction_context_new(), bundle_midpoint(), deselect_all_tracks(), draw_viewport_object_reconstruction(), set_axis_exec(), set_floor_exec(), and set_origin_exec().
void BKE_tracking_object_unique_name | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object | ||
) |
Definition at line 2932 of file tracking.c.
References BLI_uniquename(), MovieTrackingObject::name, and MovieTracking::objects.
Referenced by BKE_tracking_new_object().
void BKE_tracking_projection_matrix | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object, | ||
int | framenr, | ||
int | winx, | ||
int | winy, | ||
float | mat[4][4] | ||
) |
Definition at line 2110 of file tracking.c.
References BKE_tracking_camera_shift(), BKE_tracking_get_reconstructed_camera(), MovieTracking::camera, copy_m4_m4(), MovieTrackingCamera::focal, invert_m4_m4(), left(), MovieReconstructedCamera::mat, MAX2, mult_m4_m4m4(), perspective_m4(), MovieTrackingCamera::pixel_aspect, and MovieTrackingCamera::sensor_width.
Referenced by draw_tracking_tracks().
void BKE_tracking_reconstruction_context_free | ( | struct MovieReconstructContext * | context | ) |
Definition at line 1846 of file tracking.c.
References MEM_freeN(), NULL, MovieReconstructContext::tracks_map, and tracks_map_free().
Referenced by solve_camera_freejob().
struct MovieReconstructContext* BKE_tracking_reconstruction_context_new | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object, | ||
int | keyframe1, | ||
int | keyframe2, | ||
int | width, | ||
int | height | ||
) | [read] |
Definition at line 1775 of file tracking.c.
References BKE_tracking_object_tracks(), BLI_countlist(), BLI_strncpy(), MovieTracking::camera, MovieReconstructContext::efra, ListBase::first, MovieTrackingMarker::flag, MovieTrackingCamera::focal, MovieReconstructContext::focal_length, MovieTrackingMarker::framenr, MovieReconstructContext::is_camera, MovieTrackingCamera::k1, MovieReconstructContext::k1, MovieTrackingCamera::k2, MovieReconstructContext::k2, MARKER_DISABLED, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, MAX2, MEM_callocN(), MIN2, MovieTrackingObject::name, MovieTrackingTrack::next, NULL, MovieReconstructContext::object_name, MovieTrackingCamera::pixel_aspect, MovieTrackingCamera::principal, MovieReconstructContext::principal_point, MovieReconstructContext::sfra, TRACKING_OBJECT_CAMERA, MovieReconstructContext::tracks_map, tracks_map_insert(), and tracks_map_new().
Referenced by solve_camera_initjob().
void BKE_tracking_remove_object | ( | struct MovieTracking * | tracking, |
struct MovieTrackingObject * | object | ||
) |
Definition at line 2900 of file tracking.c.
References MovieTracking::act_track, BLI_findindex(), BLI_freelinkN(), MovieTrackingObject::flag, MovieTrackingTrack::next, NULL, MovieTracking::objectnr, MovieTracking::objects, MovieTracking::tot_object, TRACKING_OBJECT_CAMERA, and tracking_object_free().
Referenced by tracking_object_remove_exec().
void BKE_tracking_select_track | ( | struct ListBase * | tracksbase, |
struct MovieTrackingTrack * | track, | ||
int | area, | ||
int | extend | ||
) |
Definition at line 2850 of file tracking.c.
References BKE_tracking_track_flag(), ListBase::first, MovieTrackingTrack::next, SELECT, and TRACK_AREA_ALL.
Referenced by add_marker(), and mouse_select().
void BKE_tracking_solve_reconstruction | ( | struct MovieReconstructContext * | context, |
short * | stop, | ||
short * | do_update, | ||
float * | progress, | ||
char * | stats_message, | ||
int | message_size | ||
) |
Definition at line 1887 of file tracking.c.
References ReconstructProgressData::do_update, error(), MovieReconstructContext::focal_length, MovieReconstructContext::k1, MovieReconstructContext::k2, MovieReconstructContext::k3, ReconstructProgressData::message_size, MovieReconstructContext::principal_point, ReconstructProgressData::progress, MovieReconstructContext::reprojection_error, ReconstructProgressData::stats_message, and ReconstructProgressData::stop.
Referenced by solve_camera_startjob().
void BKE_tracking_stabdata_to_mat4 | ( | int | width, |
int | height, | ||
float | loc[2], | ||
float | scale, | ||
float | angle, | ||
float | mat[4][4] | ||
) |
Definition at line 2704 of file tracking.c.
References add_v2_v2(), invert_m4_m4(), mul_serie_m4(), NULL, rotate_m4(), size_to_mat4(), and unit_m4().
Referenced by BKE_tracking_stabilize(), clip_draw_main(), and stabilization_auto_scale_factor().
void BKE_tracking_stabilization_data | ( | struct MovieTracking * | tracking, |
int | framenr, | ||
int | width, | ||
int | height, | ||
float | loc[2], | ||
float * | scale, | ||
float * | angle | ||
) |
Definition at line 2597 of file tracking.c.
References calculate_stabdata(), MovieTrackingStabilization::flag, MovieTrackingStabilization::ok, MovieTrackingStabilization::scale, MovieTracking::stabilization, stabilization_auto_scale_factor(), stabilization_median_point(), TRACKING_2D_STABILIZATION, TRACKING_AUTOSCALE, and zero_v2().
Referenced by BKE_tracking_stabilize(), get_stable_cached_frame(), node_composit_exec_movieclip(), and node_composit_exec_stabilize2d().
struct ImBuf* BKE_tracking_stabilize | ( | struct MovieTracking * | tracking, |
int | framenr, | ||
struct ImBuf * | ibuf, | ||
float | loc[2], | ||
float * | scale, | ||
float * | angle | ||
) | [read] |
Definition at line 2633 of file tracking.c.
References BKE_tracking_stabdata_to_mat4(), BKE_tracking_stabilization_data(), copy_v2_v2(), MovieTrackingStabilization::flag, i, IB_MIPMAP_INVALID, IB_RECT_INVALID, IMB_rectcpy(), IMB_scalefastImBuf(), invert_m4(), mul_v3_m4v3(), neareast_interpolation(), NULL, ImBuf::rect_float, MovieTrackingStabilization::scaleibuf, MovieTracking::stabilization, stabilization_auto_scale_factor(), stabilize_alloc_ibuf(), TRACKING_2D_STABILIZATION, ImBuf::userflags, ImBuf::x, ImBuf::y, and zero_v2().
Referenced by put_stabilized_frame_to_cache().
void BKE_tracking_sync | ( | struct MovieTrackingContext * | context | ) |
Definition at line 1292 of file tracking.c.
References MovieTrackingContext::backwards, MovieTrackingContext::clip, MovieClipUser::framenr, MovieTrackingContext::sync_frame, MovieClip::tracking, MovieTrackingContext::tracks_map, tracks_map_merge(), and MovieTrackingContext::user.
Referenced by track_markers_exec(), track_markers_freejob(), and track_markers_updatejob().
void BKE_tracking_sync_user | ( | struct MovieClipUser * | user, |
struct MovieTrackingContext * | context | ||
) |
Definition at line 1305 of file tracking.c.
References MovieClipUser::framenr, and MovieTrackingContext::sync_frame.
Referenced by clip_main_area_draw().
int BKE_tracking_test_join_tracks | ( | struct MovieTrackingTrack * | dst_track, |
struct MovieTrackingTrack * | src_track | ||
) |
Definition at line 471 of file tracking.c.
References MovieTrackingMarker::flag, MovieTrackingMarker::framenr, MARKER_DISABLED, MovieTrackingTrack::markers, and MovieTrackingTrack::markersnr.
Referenced by BKE_tracking_join_tracks(), and join_tracks_exec().
void BKE_tracking_track_flag | ( | struct MovieTrackingTrack * | track, |
int | area, | ||
int | flag, | ||
int | clear | ||
) |
Definition at line 203 of file tracking.c.
References MovieTrackingTrack::flag, MovieTrackingTrack::pat_flag, MovieTrackingTrack::search_flag, TRACK_AREA_NONE, TRACK_AREA_PAT, TRACK_AREA_POINT, and TRACK_AREA_SEARCH.
Referenced by BKE_tracking_deselect_track(), BKE_tracking_select_track(), border_select_exec(), circle_select_exec(), clean_tracks_exec(), clear_invisible_track_selection(), and stabilize_2d_select_exec().
struct ImBuf* BKE_tracking_undistort | ( | struct MovieTracking * | tracking, |
struct ImBuf * | ibuf, | ||
int | width, | ||
int | height, | ||
float | overscan | ||
) | [read] |
Definition at line 2829 of file tracking.c.
References BKE_tracking_distortion_create(), BKE_tracking_distortion_exec(), MovieTracking::camera, MovieTrackingCamera::intrinsics, and NULL.
Referenced by get_undistorted_ibuf().