|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "DNA_camera_types.h"#include "DNA_object_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_lib_id.hh"#include "BKE_movieclip.h"#include "BKE_report.hh"#include "BKE_tracking.h"#include "DEG_depsgraph.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_clip.hh"#include "clip_intern.hh"Go to the source code of this file.
Classes | |
| struct | SolveCameraJob |
Functions | |
| static bool | solve_camera_initjob (bContext *C, SolveCameraJob *scj, wmOperator *op, char *error_msg, int max_error) |
| static void | solve_camera_updatejob (void *scv) |
| static void | solve_camera_startjob (void *scv, wmJobWorkerStatus *worker_status) |
| static void | solve_camera_freejob (void *scv) |
| static int | solve_camera_exec (bContext *C, wmOperator *op) |
| static int | solve_camera_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static int | solve_camera_modal (bContext *C, wmOperator *, const wmEvent *event) |
| void | CLIP_OT_solve_camera (wmOperatorType *ot) |
| static int | clear_solution_exec (bContext *C, wmOperator *) |
| void | CLIP_OT_clear_solution (wmOperatorType *ot) |
|
static |
Definition at line 285 of file tracking_ops_solve.cc.
References BKE_tracking_object_get_active(), CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), MovieTrackingReconstruction::flag, LISTBASE_FOREACH, MEM_SAFE_FREE, NA_EVALUATED, NC_MOVIECLIP, NC_SPACE, ND_SPACE_VIEW3D, OPERATOR_FINISHED, MovieTrackingObject::reconstruction, reconstruction, MovieTrackingObject::tracks, and WM_event_add_notifier().
Referenced by CLIP_OT_clear_solution().
| void CLIP_OT_clear_solution | ( | wmOperatorType * | ot | ) |
Definition at line 309 of file tracking_ops_solve.cc.
References clear_solution_exec(), wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by clip_operatortypes().
| void CLIP_OT_solve_camera | ( | wmOperatorType * | ot | ) |
Definition at line 266 of file tracking_ops_solve.cc.
References wmOperatorType::description, ED_space_clip_tracking_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, solve_camera_exec(), solve_camera_invoke(), and solve_camera_modal().
Referenced by clip_operatortypes().
|
static |
Definition at line 179 of file tracking_ops_solve.cc.
References BKE_report(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, solve_camera_freejob(), solve_camera_initjob(), and solve_camera_startjob().
Referenced by CLIP_OT_solve_camera().
|
static |
Definition at line 106 of file tracking_ops_solve.cc.
References BKE_movieclip_get_size(), BKE_report(), BKE_reportf(), BKE_tracking_camera_to_blender(), BKE_tracking_object_get_active(), BKE_tracking_reconstruction_context_free(), BKE_tracking_reconstruction_error_message_get(), BKE_tracking_reconstruction_finish(), SolveCameraJob::clip, SolveCameraJob::context, DEG_id_tag_update(), MovieTrackingReconstruction::error, GS, ID_CA, ID_RECALC_SYNC_TO_EVAL, id_us_min(), id_us_plus(), MEM_freeN(), NA_EVALUATED, NC_MOVIECLIP, NC_OBJECT, NC_SCENE, ND_TRANSFORM, MovieTrackingObject::reconstruction, SolveCameraJob::reports, RPT_ERROR, RPT_INFO, RPT_WARNING, SolveCameraJob::scene, MovieClip::tracking, SolveCameraJob::user, SolveCameraJob::wm, WM_main_add_notifier(), and WM_set_locked_interface().
Referenced by solve_camera_exec(), and solve_camera_invoke().
|
static |
Definition at line 50 of file tracking_ops_solve.cc.
References BKE_movieclip_get_size(), BKE_tracking_object_get_active(), BKE_tracking_reconstruction_check(), BKE_tracking_reconstruction_context_new(), SolveCameraJob::clip, SolveCameraJob::context, CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_clip(), ED_space_clip_get_clip(), MovieTrackingObject::keyframe1, MovieTrackingObject::keyframe2, SolveCameraJob::reports, wmOperator::reports, scene, SolveCameraJob::scene, SolveCameraJob::user, SpaceClip::user, SolveCameraJob::wm, and WM_set_locked_interface().
Referenced by solve_camera_exec(), and solve_camera_invoke().
|
static |
Definition at line 197 of file tracking_ops_solve.cc.
References BKE_report(), BKE_tracking_object_get_active(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_clip(), CTX_wm_window(), ED_space_clip_get_clip(), G, NA_EVALUATED, NC_MOVIECLIP, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, MovieTrackingObject::reconstruction, reconstruction, wmOperator::reports, RPT_ERROR, solve_camera_freejob(), solve_camera_initjob(), solve_camera_startjob(), solve_camera_updatejob(), STRNCPY, WM_cursor_wait(), WM_event_add_modal_handler(), WM_event_add_notifier(), WM_JOB_PROGRESS, WM_JOB_TYPE_CLIP_SOLVE_CAMERA, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), WM_jobs_test(), and WM_jobs_timer().
Referenced by CLIP_OT_solve_camera().
|
static |
Definition at line 250 of file tracking_ops_solve.cc.
References CTX_wm_area(), CTX_wm_manager(), EVT_ESCKEY, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmEvent::type, WM_JOB_TYPE_CLIP_SOLVE_CAMERA, and WM_jobs_test().
Referenced by CLIP_OT_solve_camera().
|
static |
Definition at line 95 of file tracking_ops_solve.cc.
References BKE_tracking_reconstruction_solve(), SolveCameraJob::context, wmJobWorkerStatus::do_update, wmJobWorkerStatus::progress, SolveCameraJob::stats_message, and wmJobWorkerStatus::stop.
Referenced by solve_camera_exec(), and solve_camera_invoke().
|
static |
Definition at line 87 of file tracking_ops_solve.cc.
References SolveCameraJob::clip, SolveCameraJob::stats_message, STRNCPY, and MovieClip::tracking.
Referenced by solve_camera_invoke().