|
Blender V4.3
|
#include <cstdio>#include <cstring>#include <fcntl.h>#include <optional>#include <unistd.h>#include <ctime>#include "MEM_guardedalloc.h"#include "DNA_defaults.h"#include "DNA_gpencil_legacy_types.h"#include "DNA_movieclip_types.h"#include "DNA_node_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_view3d_types.h"#include "BLI_utildefines.h"#include "BLI_blenlib.h"#include "BLI_ghash.h"#include "BLI_math_vector.h"#include "BLI_threads.h"#include "BLT_translation.hh"#include "BKE_bpath.hh"#include "BKE_colortools.hh"#include "BKE_idtype.hh"#include "BKE_image.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_main.hh"#include "BKE_movieclip.h"#include "BKE_node_tree_update.hh"#include "BKE_tracking.h"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_moviecache.hh"#include "IMB_openexr.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "DRW_engine.hh"#include "GPU_texture.hh"#include "BLO_read_write.hh"Go to the source code of this file.
Classes | |
| struct | MovieClipCache |
| struct | MovieClipImBufCacheKey |
| struct | MovieClipCachePriorityData |
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
Variables | |
| IDTypeInfo | IDType_ID_MC |
| #define DNA_DEPRECATED_ALLOW |
Definition at line 25 of file movieclip.cc.
| ImBuf * BKE_movieclip_anim_ibuf_for_frame_no_lock | ( | MovieClip * | clip, |
| const MovieClipUser * | user ) |
Definition at line 1908 of file movieclip.cc.
References MovieClipUser::framenr, MCLIP_SRC_MOVIE, and movieclip_load_movie_file().
| void BKE_movieclip_build_proxy_frame | ( | struct MovieClip * | clip, |
| int | clip_flag, | ||
| struct MovieDistortion * | distortion, | ||
| int | cfra, | ||
| const int * | build_sizes, | ||
| int | build_count, | ||
| bool | undistorted ) |
Definition at line 1800 of file movieclip.cc.
References BKE_movieclip_get_ibuf_flag(), MovieClipUser::framenr, get_undistorted_ibuf(), IMB_freeImBuf(), MCLIP_PROXY_RENDER_SIZE_FULL, movieclip_build_proxy_ibuf(), MOVIECLIP_CACHE_SKIP, MovieClipUser::render_flag, and MovieClipUser::render_size.
Referenced by do_movie_proxy().
| void BKE_movieclip_build_proxy_frame_for_ibuf | ( | struct MovieClip * | clip, |
| struct ImBuf * | ibuf, | ||
| struct MovieDistortion * | distortion, | ||
| int | cfra, | ||
| const int * | build_sizes, | ||
| int | build_count, | ||
| bool | undistorted ) |
Definition at line 1841 of file movieclip.cc.
References get_undistorted_ibuf(), IMB_freeImBuf(), and movieclip_build_proxy_ibuf().
Referenced by proxy_task_func().
| void BKE_movieclip_clear_cache | ( | MovieClip * | clip | ) |
Definition at line 1634 of file movieclip.cc.
References free_buffers().
Referenced by ED_space_clip_set_clip().
| void BKE_movieclip_clear_proxy_cache | ( | MovieClip * | clip | ) |
Definition at line 1639 of file movieclip.cc.
References IMB_moviecache_cleanup(), and moviecache_check_free_proxy().
Referenced by proxy_endjob().
| void BKE_movieclip_convert_multilayer_ibuf | ( | struct ImBuf * | ibuf | ) |
Will try to make image buffer usable when originating from the multi-layer source. Internally finds a first combined pass and uses that as a buffer. Not ideal, but is better than a complete empty buffer.
Definition at line 505 of file movieclip.cc.
References BLI_assert, ImBuf::channels, ImBufFloatBuffer::data, ImBuf::float_buffer, ImBuf::ftype, IB_TAKE_OWNERSHIP, IMB_assign_float_buffer(), IMB_exr_close(), IMB_exr_multilayer_convert(), IMB_FTYPE_OPENEXR, and ImBuf::userdata.
Referenced by movieclip_load_sequence_file(), and prefetch_task_func().
Definition at line 1959 of file movieclip.cc.
References DEG_debug_print_eval(), depsgraph, ID_RECALC_SOURCE, movieclip_eval_update_generic(), and movieclip_eval_update_reload().
Referenced by blender::deg::DepsgraphNodeBuilder::build_movieclip().
Checks if image was already loaded, then returns same image otherwise creates new. does not load ibuf itself pass on optional frame for filepath images.
Definition at line 941 of file movieclip.cc.
References BKE_main_blendfile_path(), BLI_open(), BLI_path_abs(), BLI_path_basename(), detect_clip_source(), file, FILE_MAX, movieclip_alloc(), movieclip_calc_length(), movieclip_load_get_size(), O_BINARY, and STRNCPY.
Referenced by BKE_movieclip_file_add_exists_ex().
Definition at line 1007 of file movieclip.cc.
References BKE_movieclip_file_add_exists_ex().
Referenced by open_exec().
| MovieClip * BKE_movieclip_file_add_exists_ex | ( | Main * | bmain, |
| const char * | filepath, | ||
| bool * | r_exists ) |
Definition at line 977 of file movieclip.cc.
References BKE_main_blendfile_path(), BKE_movieclip_file_add(), BLI_path_abs(), BLI_path_cmp, FILE_MAX, ListBase::first, ID_BLEND_PATH, id_us_plus(), Main::movieclips, and STRNCPY.
Referenced by BKE_movieclip_file_add_exists().
| void BKE_movieclip_filepath_for_frame | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| char * | filepath ) |
Definition at line 1886 of file movieclip.cc.
References BLI_path_abs(), BLI_strncpy(), FILE_MAX, MovieClipUser::framenr, get_proxy_filepath(), get_sequence_filepath(), ID_BLEND_PATH_FROM_GLOBAL, MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_PROXY_RENDER_UNDISTORT, MCLIP_SRC_SEQUENCE, MCLIP_USE_PROXY, MovieClipUser::render_flag, MovieClipUser::render_size, and use_proxy().
| void BKE_movieclip_free_gputexture | ( | MovieClip * | clip | ) |
Definition at line 2036 of file movieclip.cc.
References BLI_listbase_count(), BLI_pophead(), GPU_texture_free(), MEM_freeN(), tex, and TEXTARGET_COUNT.
Referenced by blender::nodes::node_composite_movieclip_cc::MovieClipOperation::free_movie_clip_texture(), blender::draw::overlay::Resources::free_movieclips_textures(), and OVERLAY_image_free_movieclips_textures().
Definition at line 1565 of file movieclip.cc.
Referenced by BKE_mask_coord_from_movieclip(), BKE_mask_coord_to_movieclip(), BKE_mask_point_parent_matrix_get(), and ED_space_clip_get_aspect().
| void BKE_movieclip_get_cache_segments | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| int * | r_totseg, | ||
| int ** | r_points ) |
Definition at line 1573 of file movieclip.cc.
References BLI_thread_lock(), BLI_thread_unlock(), IMB_moviecache_get_cache_segments(), LOCK_MOVIECLIP, MovieClipUser::render_flag, and rendersize_to_proxy().
Definition at line 1539 of file movieclip.cc.
References movieclip_calc_length().
Referenced by clip_set_scene_frames_exec(), prefetch_check_early_out(), SEQ_add_movieclip_strip(), and SEQ_add_reload_new_file().
Definition at line 1548 of file movieclip.cc.
References float, IMB_anim_get_fps(), MCLIP_SRC_MOVIE, and movieclip_open_anim_file().
Referenced by SEQ_time_sequence_get_fps().
| GPUTexture * BKE_movieclip_get_gpu_texture | ( | MovieClip * | clip, |
| MovieClipUser * | cuser ) |
Definition at line 2004 of file movieclip.cc.
References BKE_movieclip_get_ibuf(), ImBufFloatBuffer::data, false, ImBuf::float_buffer, GPU_texture_create_error(), GPU_texture_mipmap_mode(), IMB_create_gpu_texture(), IMB_freeImBuf(), movieclip_get_gputexture_ptr(), tex, and TEXTARGET_2D.
Referenced by blender::nodes::node_composite_movieclip_cc::MovieClipOperation::get_movie_clip_texture(), and image_camera_background_texture_get().
| ImBuf * BKE_movieclip_get_ibuf | ( | MovieClip * | clip, |
| const MovieClipUser * | user ) |
Definition at line 1303 of file movieclip.cc.
References BKE_movieclip_get_ibuf_flag().
Referenced by BKE_movieclip_get_gpu_texture(), BKE_movieclip_get_size(), BKE_movieclip_has_frame(), and BKE_movieclip_update_scopes().
| ImBuf * BKE_movieclip_get_ibuf_flag | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| const int | flag, | ||
| const int | cache_flag ) |
Definition at line 1308 of file movieclip.cc.
References flag, and movieclip_get_postprocessed_ibuf().
Referenced by BKE_movieclip_build_proxy_frame(), and BKE_movieclip_get_ibuf().
| ImBuf * BKE_movieclip_get_postprocessed_ibuf | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| const int | postprocess_flag ) |
Definition at line 1316 of file movieclip.cc.
References movieclip_get_postprocessed_ibuf().
Referenced by BKE_movieclip_get_stable_ibuf().
| void BKE_movieclip_get_size | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| int * | r_width, | ||
| int * | r_height ) |
Definition at line 1504 of file movieclip.cc.
References BKE_movieclip_get_ibuf(), IMB_freeImBuf(), real_ibuf_size(), ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_get_size_fl(), BKE_movieclip_update_scopes(), and movieclip_load_get_size().
| void BKE_movieclip_get_size_fl | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| float | r_size[2] ) |
Definition at line 1530 of file movieclip.cc.
References BKE_movieclip_get_size(), and float.
| ImBuf * BKE_movieclip_get_stable_ibuf | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| const int | postprocess_flag, | ||
| float | r_loc[2], | ||
| float * | r_scale, | ||
| float * | r_angle ) |
Definition at line 1431 of file movieclip.cc.
References MovieClipCache::angle, BKE_movieclip_get_postprocessed_ibuf(), copy_v2_v2(), MovieClipUser::framenr, get_stable_cached_frame(), IMB_freeImBuf(), MovieClipCache::loc, put_stabilized_frame_to_cache(), MovieClipCache::scale, MovieClipCache::stabilized, TRACKING_2D_STABILIZATION, and zero_v2().
| bool BKE_movieclip_has_cached_frame | ( | MovieClip * | clip, |
| const MovieClipUser * | user ) |
Definition at line 1919 of file movieclip.cc.
References BLI_thread_lock(), BLI_thread_unlock(), has_imbuf_cache(), and LOCK_MOVIECLIP.
| bool BKE_movieclip_has_frame | ( | MovieClip * | clip, |
| const MovieClipUser * | user ) |
Definition at line 1492 of file movieclip.cc.
References BKE_movieclip_get_ibuf(), and IMB_freeImBuf().
| bool BKE_movieclip_proxy_enabled | ( | MovieClip * | clip | ) |
Definition at line 1871 of file movieclip.cc.
References MCLIP_USE_PROXY.
Referenced by seq_render_movieclip_strip().
| bool BKE_movieclip_put_frame_if_possible | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| ImBuf * | ibuf ) |
Definition at line 1930 of file movieclip.cc.
References BLI_thread_lock(), BLI_thread_unlock(), LOCK_MOVIECLIP, put_imbuf_cache(), and result.
Definition at line 1646 of file movieclip.cc.
References BKE_ntree_update_tag_id_changed(), detect_clip_source(), free_buffers(), movieclip_calc_length(), and movieclip_load_get_size().
Referenced by movieclip_eval_update_reload(), and reload_exec().
Definition at line 1881 of file movieclip.cc.
References float.
Referenced by movieclip_load_get_size().
Definition at line 1876 of file movieclip.cc.
References float.
Referenced by BKE_movieclip_update_scopes(), get_stable_cached_frame(), and put_stabilized_frame_to_cache().
| void BKE_movieclip_update_scopes | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| MovieClipScopes * | scopes ) |
Definition at line 1663 of file movieclip.cc.
References MovieTrackingObject::active_track, BKE_movieclip_get_ibuf(), BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_get_search_imbuf(), BKE_tracking_marker_get(), BKE_tracking_marker_pattern_minmax(), BKE_tracking_object_get_active(), BKE_tracking_undistort_v2(), ImBuf::byte_buffer, ImBufByteBuffer::data, ImBufFloatBuffer::data, MovieTrackingMarker::flag, MovieTrackingTrack::flag, ImBuf::float_buffer, MovieClipScopes::frame_height, MovieClipScopes::frame_width, MovieClipUser::framenr, IMB_freeImBuf(), MovieClipScopes::marker, MARKER_DISABLED, MCLIP_PROXY_RENDER_UNDISTORT, MovieClipScopes::ok, MovieTrackingMarker::pos, MovieClipUser::render_flag, MovieClipScopes::scene_framenr, MovieClipScopes::slide_scale, MovieClipScopes::track, MovieClipScopes::track_disabled, TRACK_LOCKED, MovieClipScopes::track_locked, MovieClipScopes::track_preview, TRACK_PREVIEW_ALPHA, MovieClipScopes::track_search, MovieClipScopes::undist_marker, MovieClipScopes::use_track_mask, ImBuf::x, and ImBuf::y.
| void BKE_movieclip_user_set_frame | ( | MovieClipUser * | user, |
| int | framenr ) |
Definition at line 1591 of file movieclip.cc.
References MovieClipUser::framenr.
Referenced by accessor_get_mask_for_track_callback(), accessor_get_preprocessed_ibuf(), BKE_mask_point_parent_matrix_get(), clip_area_sync_frame_from_scene(), clip_refresh(), blender::compositor::KeyingScreenOperation::compute_marker_points(), blender::compositor::KeyingScreenOperation::determine_canvas(), blender::compositor::PlaneTrackCommon::determine_canvas(), ED_clip_update_frame(), blender::nodes::node_composite_planetrackdeform_cc::PlaneTrackDeformOperation::get_movie_clip_size(), blender::realtime_compositor::get_movie_clip_size(), blender::nodes::node_composite_movieclip_cc::MovieClipOperation::get_movie_clip_texture(), blender::realtime_compositor::get_movie_clip_user(), blender::nodes::node_composite_keyingscreen_cc::KeyingScreenOperation::get_size(), blender::nodes::node_composite_trackpos_cc::TrackPositionOperation::get_size(), image_camera_background_texture_get(), blender::compositor::MovieDistortionOperation::init_data(), blender::compositor::MovieClipBaseOperation::init_execution(), reference_keyframed_image_buffers(), and seq_render_movieclip_strip().
|
static |
Definition at line 1074 of file movieclip.cc.
References MovieClipCache::brown_k, MovieClipCache::brown_p, MovieClipCache::distortion_model, MovieClipCache::division_k, equals_v2v2(), equals_v3v3(), equals_v4v4(), MovieClipCache::focal_length, MovieClipCache::nuke_k, MovieClipCache::polynomial_k, MovieClipCache::postprocessed, and MovieClipCache::principal_point.
Referenced by get_postprocessed_cached_frame().
Definition at line 923 of file movieclip.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), FILE_MAX, IB_multilayer, IB_rect, IMB_freeImBuf(), IMB_testiffname(), MCLIP_SRC_MOVIE, MCLIP_SRC_SEQUENCE, and STRNCPY.
Referenced by BKE_movieclip_file_add(), and BKE_movieclip_reload().
|
static |
Definition at line 232 of file movieclip.cc.
References BLO_read_pointer_array(), BLO_read_struct, BLO_read_struct_array, BLO_read_struct_list, and LISTBASE_FOREACH.
Referenced by movieclip_blend_read_data().
|
static |
Definition at line 216 of file movieclip.cc.
References BLO_read_struct_array, and reconstruction.
Referenced by movieclip_blend_read_data().
|
static |
Definition at line 223 of file movieclip.cc.
References BLO_read_struct_array, BLO_read_struct_list, and LISTBASE_FOREACH.
Referenced by movieclip_blend_read_data().
|
static |
Definition at line 1598 of file movieclip.cc.
References BLI_freelistN(), GPU_texture_free(), IMB_free_anim(), IMB_freeImBuf(), IMB_moviecache_free(), MEM_freeN(), tex, and TEXTARGET_COUNT.
Referenced by BKE_movieclip_clear_cache(), BKE_movieclip_reload(), and movie_clip_free_data().
|
static |
Definition at line 786 of file movieclip.cc.
References flag, MovieClipImBufCacheKey::framenr, MovieClipUser::framenr, IMB_moviecache_get(), IMB_PROXY_NONE, MCLIP_USE_PROXY, MovieClipImBufCacheKey::proxy, MovieClipImBufCacheKey::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), and user_frame_to_cache_frame().
Referenced by movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 1114 of file movieclip.cc.
References check_undistortion_cache_flags(), flag, MovieClipCache::flag, MovieClipCache::framenr, MovieClipUser::framenr, MovieClipCache::ibuf, IMB_PROXY_NONE, IMB_refImBuf(), MCLIP_USE_PROXY, need_undistortion_postprocess(), MovieClipCache::postprocessed, MovieClipCache::proxy, MovieClipCache::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), and MovieClipCache::undistortion_used.
Referenced by movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 416 of file movieclip.cc.
References BKE_main_blendfile_path_from_global(), BLI_path_abs(), BLI_path_frame(), BLI_path_split_dir_file(), BLI_snprintf(), BLI_strncat(), FILE_MAX, MCLIP_USE_PROXY_CUSTOM_DIR, rendersize_to_number(), SEP_STR, SNPRINTF, and STRNCPY.
Referenced by BKE_movieclip_filepath_for_frame(), movieclip_build_proxy_ibuf(), and movieclip_load_sequence_file().
|
static |
Definition at line 385 of file movieclip.cc.
References BLI_path_abs(), BLI_path_sequence_decode(), BLI_path_sequence_encode(), BLI_strncpy(), FILE_MAX, ID_BLEND_PATH_FROM_GLOBAL, and sequence_guess_offset().
Referenced by BKE_movieclip_filepath_for_frame(), movieclip_calc_length(), and movieclip_load_sequence_file().
|
static |
Definition at line 1323 of file movieclip.cc.
References MovieClipCache::angle, MovieClipCache::aspect, BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_stabilization_data_get(), equals_v2v2(), MovieClipCache::filter, MovieClipCache::framenr, MovieClipCache::ibuf, IMB_PROXY_NONE, IMB_refImBuf(), MovieClipCache::loc, MCLIP_USE_PROXY, MovieClipCache::postprocess_flag, MovieClipCache::proxy, MovieClipCache::reference_ibuf, MovieClipCache::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), MovieClipCache::scale, MovieClipCache::stabilized, ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_get_stable_ibuf().
Definition at line 376 of file movieclip.cc.
References flag, IMB_TC_NONE, and MCLIP_USE_PROXY.
Referenced by movieclip_load_movie_file().
|
static |
Definition at line 1038 of file movieclip.cc.
References BKE_tracking_distortion_exec(), BKE_tracking_undistort_frame(), Box, IMB_scale(), ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_build_proxy_frame(), BKE_movieclip_build_proxy_frame_for_ibuf(), and postprocess_frame().
|
static |
Definition at line 813 of file movieclip.cc.
References flag, MovieClipImBufCacheKey::framenr, MovieClipUser::framenr, IMB_moviecache_has_frame(), IMB_PROXY_NONE, MCLIP_USE_PROXY, MovieClipImBufCacheKey::proxy, MovieClipImBufCacheKey::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), and user_frame_to_cache_frame().
Referenced by BKE_movieclip_has_cached_frame().
|
static |
Definition at line 85 of file movieclip.cc.
References MovieClip::anim, BKE_color_managed_colorspace_settings_copy(), BKE_tracking_copy(), BLI_listbase_clear(), MovieClip::cache, MovieClip::colorspace_settings, MovieClip::drawdata, flag, LIB_ID_CREATE_NO_USER_REFCOUNT, MovieClip::tracking, and MovieClip::tracking_context.
|
static |
Definition at line 137 of file movieclip.cc.
References MovieClip::cache, MovieTracking::camera, IDCacheKey::id_session_uid, MovieTrackingCamera::intrinsics, offsetof, and MovieClip::tracking.
|
static |
Definition at line 120 of file movieclip.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, MovieClip::gpd, IDWALK_CB_USER, LISTBASE_FOREACH, and MovieClip::tracking.
|
static |
Definition at line 151 of file movieclip.cc.
References BKE_bpath_foreach_path_fixed_process(), and MovieClip::filepath.
|
static |
Definition at line 109 of file movieclip.cc.
References BKE_tracking_free(), DRW_drawdata_free(), free_buffers(), and MovieClip::tracking.
|
static |
Definition at line 74 of file movieclip.cc.
References BKE_color_managed_colorspace_settings_init(), BKE_tracking_settings_init(), BLI_assert, MovieClip::colorspace_settings, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, MEMCPY_STRUCT_AFTER, and MovieClip::tracking.
|
static |
Definition at line 891 of file movieclip.cc.
References IMB_PROXY_NONE, MovieClipImBufCacheKey::proxy, and MovieClipImBufCacheKey::render_flag.
Referenced by BKE_movieclip_clear_proxy_cache().
|
static |
Definition at line 771 of file movieclip.cc.
References abs(), MovieClipCachePriorityData::framenr, and MovieClipImBufCacheKey::framenr.
Referenced by put_imbuf_cache().
|
static |
Definition at line 759 of file movieclip.cc.
References MovieClipCachePriorityData::framenr, MovieClipImBufCacheKey::framenr, and MEM_callocN.
Referenced by put_imbuf_cache().
|
static |
|
static |
Definition at line 742 of file movieclip.cc.
References MovieClipImBufCacheKey::framenr.
Referenced by put_imbuf_cache().
|
static |
Definition at line 733 of file movieclip.cc.
References MovieClipImBufCacheKey::framenr, MovieClipImBufCacheKey::proxy, and MovieClipImBufCacheKey::render_flag.
Referenced by put_imbuf_cache().
|
static |
Definition at line 779 of file movieclip.cc.
References MEM_freeN().
Referenced by put_imbuf_cache().
Definition at line 901 of file movieclip.cc.
References BKE_id_new(), and ID_MC.
Referenced by BKE_movieclip_file_add().
|
static |
Definition at line 248 of file movieclip.cc.
References BLI_listbase_clear(), BLO_read_struct, BLO_read_struct_list, direct_link_moviePlaneTracks(), direct_link_movieReconstruction(), direct_link_movieTracks(), and LISTBASE_FOREACH.
|
static |
Definition at line 194 of file movieclip.cc.
References MovieClip::anim, BKE_id_blend_write(), BLO_write_id_struct, BLO_write_struct, MovieClip::id, LISTBASE_FOREACH, write_moviePlaneTracks(), write_movieReconstruction(), and write_movieTracks().
|
static |
Definition at line 1760 of file movieclip.cc.
References Bilinear, BLI_file_ensure_parent_dir_exists(), BLI_thread_lock(), BLI_thread_unlock(), FILE_MAX, ImBuf::foptions, ImBuf::ftype, get_proxy_filepath(), IB_rect, IMB_dupImBuf(), IMB_freeImBuf(), IMB_FTYPE_JPG, IMB_saveiff(), IMB_scale(), LOCK_MOVIECLIP, ImBuf::planes, ImbFormatOptions::quality, rendersize_to_number(), ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_build_proxy_frame(), and BKE_movieclip_build_proxy_frame_for_ibuf().
|
static |
Definition at line 616 of file movieclip.cc.
References BLI_exists(), BLI_path_sequence_decode(), FILE_MAX, get_sequence_filepath(), IMB_anim_get_duration(), MCLIP_SRC_MOVIE, MCLIP_SRC_SEQUENCE, and movieclip_open_anim_file().
Referenced by BKE_movieclip_file_add(), BKE_movieclip_get_duration(), and BKE_movieclip_reload().
|
static |
Definition at line 1950 of file movieclip.cc.
References BKE_tracking_dopesheet_tag_update(), DEG_get_original_id(), DEG_is_active(), depsgraph, and MovieClip::tracking.
Referenced by BKE_movieclip_eval_update().
|
static |
Definition at line 1941 of file movieclip.cc.
References BKE_movieclip_reload(), DEG_get_original_id(), DEG_is_active(), and depsgraph.
Referenced by BKE_movieclip_eval_update().
|
static |
Definition at line 1974 of file movieclip.cc.
References BLI_addtail(), MEM_mallocN, tex, and TEXTARGET_COUNT.
Referenced by BKE_movieclip_get_gpu_texture().
|
static |
Definition at line 1230 of file movieclip.cc.
References BLI_thread_lock(), BLI_thread_unlock(), flag, MovieClipUser::framenr, get_imbuf_cache(), get_postprocessed_cached_frame(), IMB_freeImBuf(), LOCK_MOVIECLIP, MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_PROXY_RENDER_UNDISTORT, MCLIP_PROXY_RENDER_USE_FALLBACK_RENDER, MCLIP_SRC_SEQUENCE, MOVIECLIP_CACHE_SKIP, movieclip_get_postprocessed_ibuf(), movieclip_load_movie_file(), movieclip_load_sequence_file(), need_postprocessed_frame(), postprocess_frame(), put_imbuf_cache(), put_postprocessed_frame_to_cache(), real_ibuf_size(), MovieClipUser::render_flag, and MovieClipUser::render_size.
Referenced by BKE_movieclip_get_ibuf_flag(), BKE_movieclip_get_postprocessed_ibuf(), and movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 910 of file movieclip.cc.
References BKE_movieclip_get_size(), BKE_movieclip_remap_clip_to_scene_frame(), DNA_struct_default_get, MovieClipUser::framenr, and IMG_SIZE_FALLBACK.
Referenced by BKE_movieclip_file_add(), and BKE_movieclip_reload().
|
static |
Definition at line 596 of file movieclip.cc.
References flag, get_timecode(), IMB_anim_absolute(), movieclip_open_anim_file(), and rendersize_to_proxy().
Referenced by BKE_movieclip_anim_ibuf_for_frame_no_lock(), and movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 532 of file movieclip.cc.
References BKE_movieclip_convert_multilayer_ibuf(), FILE_MAX, flag, get_proxy_filepath(), get_sequence_filepath(), IB_alphamode_detect, IB_metadata, IB_multilayer, IB_rect, IMB_loadiffname(), MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_PROXY_RENDER_UNDISTORT, MCLIP_SRC_MOVIE, MCLIP_USE_PROXY, MovieClipUser::render_flag, MovieClipUser::render_size, and use_proxy().
Referenced by movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 574 of file movieclip.cc.
References BKE_main_blendfile_path_from_global(), BLI_path_abs(), FILE_MAX, IB_rect, ID_BLEND_PATH_FROM_GLOBAL, IMB_anim_set_index_dir(), MCLIP_USE_PROXY_CUSTOM_DIR, openanim(), and STRNCPY.
Referenced by BKE_movieclip_get_fps(), movieclip_calc_length(), and movieclip_load_movie_file().
|
static |
Definition at line 1065 of file movieclip.cc.
References need_undistortion_postprocess(), and result.
Referenced by movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 1055 of file movieclip.cc.
References MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_PROXY_RENDER_UNDISTORT, MCLIP_USE_PROXY, MovieClipUser::render_flag, MovieClipUser::render_size, and result.
Referenced by get_postprocessed_cached_frame(), need_postprocessed_frame(), postprocess_frame(), and put_postprocessed_frame_to_cache().
|
static |
Definition at line 1162 of file movieclip.cc.
References BKE_tracking_disable_channels(), flag, get_undistorted_ibuf(), IMB_dupImBuf(), MOVIECLIP_DISABLE_BLUE, MOVIECLIP_DISABLE_GREEN, MOVIECLIP_DISABLE_RED, MOVIECLIP_PREVIEW_GRAYSCALE, and need_undistortion_postprocess().
Referenced by movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 835 of file movieclip.cc.
References BLI_path_sequence_decode(), flag, MovieClipImBufCacheKey::framenr, MovieClipUser::framenr, IMB_moviecache_create(), IMB_moviecache_put(), IMB_moviecache_put_if_possible(), IMB_moviecache_set_getdata_callback(), IMB_moviecache_set_priority_callback(), IMB_PROXY_NONE, MCLIP_SRC_SEQUENCE, MCLIP_USE_PROXY, MEM_callocN, moviecache_getitempriority(), moviecache_getprioritydata(), moviecache_hashcmp(), moviecache_hashhash(), moviecache_keydata(), moviecache_prioritydeleter(), MovieClipImBufCacheKey::proxy, MovieClipImBufCacheKey::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), and user_frame_to_cache_frame().
Referenced by BKE_movieclip_put_frame_if_possible(), and movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 1188 of file movieclip.cc.
References MovieClipCache::brown_k, MovieClipCache::brown_p, copy_v2_v2(), copy_v3_v3(), copy_v4_v4(), MovieClipCache::distortion_model, MovieClipCache::division_k, flag, MovieClipCache::flag, MovieClipCache::focal_length, MovieClipCache::framenr, MovieClipUser::framenr, MovieClipCache::ibuf, IMB_freeImBuf(), IMB_PROXY_NONE, IMB_refImBuf(), MCLIP_USE_PROXY, need_undistortion_postprocess(), MovieClipCache::nuke_k, MovieClipCache::polynomial_k, MovieClipCache::postprocessed, MovieClipCache::principal_point, MovieClipCache::proxy, MovieClipCache::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), and MovieClipCache::undistortion_used.
Referenced by movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 1386 of file movieclip.cc.
References MovieClipCache::angle, MovieClipCache::aspect, BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_stabilize_frame(), copy_v2_v2(), MovieClipCache::filter, MovieClipCache::framenr, MovieClipCache::ibuf, IMB_freeImBuf(), IMB_PROXY_NONE, IMB_refImBuf(), MovieClipCache::loc, MCLIP_USE_PROXY, MovieClipCache::postprocess_flag, MovieClipCache::proxy, MovieClipCache::reference_ibuf, MovieClipCache::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), MovieClipCache::scale, and MovieClipCache::stabilized.
Referenced by BKE_movieclip_get_stable_ibuf().
|
static |
Definition at line 1012 of file movieclip.cc.
References float, MCLIP_PROXY_RENDER_SIZE_25, MCLIP_PROXY_RENDER_SIZE_50, MCLIP_PROXY_RENDER_SIZE_75, MCLIP_USE_PROXY, MovieClipUser::render_size, ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_get_size(), and movieclip_get_postprocessed_ibuf().
Definition at line 354 of file movieclip.cc.
References MCLIP_PROXY_RENDER_SIZE_100, MCLIP_PROXY_RENDER_SIZE_25, MCLIP_PROXY_RENDER_SIZE_50, MCLIP_PROXY_RENDER_SIZE_75, and MCLIP_PROXY_RENDER_SIZE_FULL.
Referenced by get_proxy_filepath(), and movieclip_build_proxy_ibuf().
|
static |
Definition at line 328 of file movieclip.cc.
References flag, IMB_PROXY_100, IMB_PROXY_25, IMB_PROXY_50, IMB_PROXY_75, IMB_PROXY_NONE, MCLIP_PROXY_RENDER_SIZE_100, MCLIP_PROXY_RENDER_SIZE_25, MCLIP_PROXY_RENDER_SIZE_50, MCLIP_PROXY_RENDER_SIZE_75, MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_USE_PROXY, and MovieClipUser::render_size.
Referenced by BKE_movieclip_get_cache_segments(), get_imbuf_cache(), get_postprocessed_cached_frame(), get_stable_cached_frame(), has_imbuf_cache(), movieclip_load_movie_file(), put_imbuf_cache(), put_postprocessed_frame_to_cache(), and put_stabilized_frame_to_cache().
Definition at line 319 of file movieclip.cc.
References BLI_strncpy(), and FILE_MAX.
Referenced by get_sequence_filepath(), and user_frame_to_cache_frame().
Definition at line 706 of file movieclip.cc.
References BLI_path_sequence_decode(), FILE_MAX, MCLIP_SRC_SEQUENCE, and sequence_guess_offset().
Referenced by get_imbuf_cache(), has_imbuf_cache(), and put_imbuf_cache().
|
static |
Definition at line 174 of file movieclip.cc.
References BLO_write_pointer_array(), BLO_write_struct, BLO_write_struct_array, and LISTBASE_FOREACH.
Referenced by movieclip_blend_write().
|
static |
Definition at line 185 of file movieclip.cc.
References BLO_write_struct_array, and reconstruction.
Referenced by movieclip_blend_write().
|
static |
Definition at line 158 of file movieclip.cc.
References BLO_write_struct, BLO_write_struct_array, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, and MovieTrackingTrack::next.
Referenced by movieclip_blend_write().
| IDTypeInfo IDType_ID_MC |
Definition at line 287 of file movieclip.cc.