Blender
V3.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.h"
#include "BKE_global.h"
#include "BKE_lib_id.h"
#include "BKE_movieclip.h"
#include "BKE_report.h"
#include "BKE_tracking.h"
#include "DEG_depsgraph.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_clip.h"
#include "clip_intern.h"
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, short *stop, short *do_update, float *progress) |
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 *UNUSED(event)) |
static int | solve_camera_modal (bContext *C, wmOperator *UNUSED(op), const wmEvent *event) |
void | CLIP_OT_solve_camera (wmOperatorType *ot) |
static int | clear_solution_exec (bContext *C, wmOperator *UNUSED(op)) |
void | CLIP_OT_clear_solution (wmOperatorType *ot) |
|
static |
Definition at line 274 of file tracking_ops_solve.c.
References BKE_tracking_get_active_reconstruction(), BKE_tracking_get_active_tracks(), C, CTX_wm_space_clip(), DEG_id_tag_update(), ED_space_clip_get_clip(), ListBase::first, MovieClip::id, MEM_SAFE_FREE, NA_EVALUATED, NC_MOVIECLIP, NC_SPACE, ND_SPACE_VIEW3D, NULL, OPERATOR_FINISHED, reconstruction, TRACK_HAS_BUNDLE, MovieClip::tracking, TRACKING_RECONSTRUCTED, and WM_event_add_notifier().
Referenced by CLIP_OT_clear_solution().
void CLIP_OT_clear_solution | ( | wmOperatorType * | ot | ) |
Definition at line 299 of file tracking_ops_solve.c.
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 255 of file tracking_ops_solve.c.
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 168 of file tracking_ops_solve.c.
References BKE_report(), C, MEM_callocN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, solve_camera_freejob(), solve_camera_initjob(), and solve_camera_startjob().
Referenced by CLIP_OT_solve_camera().
Definition at line 97 of file tracking_ops_solve.c.
References BKE_movieclip_get_size(), BKE_report(), BKE_reportf(), BKE_tracking_camera_to_blender(), BKE_tracking_get_active_reconstruction(), BKE_tracking_reconstruction_context_free(), BKE_tracking_reconstruction_error_message_get(), BKE_tracking_reconstruction_finish(), Scene::camera, camera, SolveCameraJob::clip, Scene::clip, SolveCameraJob::context, Object::data, DEG_id_tag_update(), error(), MovieReconstructContext::error_message, GS, height, MovieClip::id, ID_CA, ID_RECALC_COPY_ON_WRITE, id_us_min(), id_us_plus(), MEM_freeN, NA_EVALUATED, NC_MOVIECLIP, NC_OBJECT, NC_SCENE, ND_TRANSFORM, NULL, SolveCameraJob::reports, RPT_ERROR, RPT_INFO, RPT_WARNING, scene, SolveCameraJob::scene, MovieTracking::stats, MovieClip::tracking, SolveCameraJob::user, width, SolveCameraJob::wm, WM_main_add_notifier(), and WM_set_locked_interface().
Referenced by solve_camera_exec(), and solve_camera_invoke().
|
static |
Definition at line 49 of file tracking_ops_solve.c.
References BKE_movieclip_get_size(), BKE_tracking_object_get_active(), BKE_tracking_reconstruction_check(), BKE_tracking_reconstruction_context_new(), C, SolveCameraJob::clip, SolveCameraJob::context, CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_clip(), ED_space_clip_get_clip(), height, MovieTrackingObject::keyframe1, MovieTrackingObject::keyframe2, MEM_callocN, SolveCameraJob::reports, wmOperator::reports, scene, SolveCameraJob::scene, MovieTracking::stats, MovieClip::tracking, SolveCameraJob::user, SpaceClip::user, width, SolveCameraJob::wm, and WM_set_locked_interface().
Referenced by solve_camera_exec(), and solve_camera_invoke().
|
static |
Definition at line 185 of file tracking_ops_solve.c.
References BKE_report(), BKE_tracking_get_active_reconstruction(), BLI_strncpy(), C, CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_clip(), CTX_wm_window(), ED_space_clip_get_clip(), G, MEM_callocN, MovieTrackingStats::message, NA_EVALUATED, NC_MOVIECLIP, NULL, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, reconstruction, wmOperator::reports, RPT_ERROR, solve_camera_freejob(), solve_camera_initjob(), solve_camera_startjob(), solve_camera_updatejob(), MovieTracking::stats, MovieClip::tracking, TRACKING_RECONSTRUCTED, 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 239 of file tracking_ops_solve.c.
References C, 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 90 of file tracking_ops_solve.c.
References BKE_tracking_reconstruction_solve(), SolveCameraJob::context, and SolveCameraJob::stats_message.
Referenced by solve_camera_exec(), and solve_camera_invoke().
Definition at line 82 of file tracking_ops_solve.c.
References BLI_strncpy(), SolveCameraJob::clip, MovieTrackingStats::message, MovieTracking::stats, SolveCameraJob::stats_message, and MovieClip::tracking.
Referenced by solve_camera_invoke().