|
Blender V4.5
|
#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_scene_types.h"#include "DNA_space_types.h"#include "BLI_fileops.h"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_threads.h"#include "BLI_utildefines.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_library.hh"#include "BKE_main.hh"#include "BKE_movieclip.h"#include "BKE_node_tree_update.hh"#include "BKE_tracking.h"#include "IMB_colormanagement.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_moviecache.hh"#include "IMB_openexr.hh"#include "MOV_read.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 |
Functions | |
| static void | free_buffers (MovieClip *clip) |
| static void | movie_clip_runtime_reset (MovieClip *clip) |
| static void | movie_clip_init_data (ID *id) |
| static void | movie_clip_copy_data (Main *, std::optional< Library * >, ID *id_dst, const ID *id_src, const int flag) |
| static void | movie_clip_free_data (ID *id) |
| static void | movie_clip_foreach_id (ID *id, LibraryForeachIDData *data) |
| static void | movie_clip_foreach_cache (ID *id, IDTypeForeachCacheFunctionCallback function_callback, void *user_data) |
| static void | movie_clip_foreach_path (ID *id, BPathForeachPathData *bpath_data) |
| static void | write_movieTracks (BlendWriter *writer, ListBase *tracks) |
| static void | write_moviePlaneTracks (BlendWriter *writer, ListBase *plane_tracks_base) |
| static void | write_movieReconstruction (BlendWriter *writer, MovieTrackingReconstruction *reconstruction) |
| static void | movieclip_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
| static void | direct_link_movieReconstruction (BlendDataReader *reader, MovieTrackingReconstruction *reconstruction) |
| static void | direct_link_movieTracks (BlendDataReader *reader, ListBase *tracksbase) |
| static void | direct_link_moviePlaneTracks (BlendDataReader *reader, ListBase *plane_tracks_base) |
| static void | movieclip_blend_read_data (BlendDataReader *reader, ID *id) |
| static int | sequence_guess_offset (const char *full_name, int head_len, ushort numlen) |
| static int | rendersize_to_proxy (const MovieClipUser *user, int flag) |
| static int | rendersize_to_number (int render_size) |
| static int | get_timecode (MovieClip *clip, int flag) |
| static void | get_sequence_filepath (const MovieClip *clip, const int framenr, char filepath[FILE_MAX]) |
| static void | get_proxy_filepath (const MovieClip *clip, int proxy_render_size, bool undistorted, int framenr, char filepath[FILE_MAX]) |
| void | BKE_movieclip_convert_multilayer_ibuf (ImBuf *ibuf) |
| static ImBuf * | movieclip_load_sequence_file (MovieClip *clip, const MovieClipUser *user, int framenr, int flag) |
| static void | movieclip_open_anim_file (MovieClip *clip) |
| static ImBuf * | movieclip_load_movie_file (MovieClip *clip, const MovieClipUser *user, int framenr, int flag) |
| static void | movieclip_calc_length (MovieClip *clip) |
| static int | user_frame_to_cache_frame (MovieClip *clip, int framenr) |
| static void | moviecache_keydata (void *userkey, int *framenr, int *proxy, int *render_flags) |
| static uint | moviecache_hashhash (const void *keyv) |
| static bool | moviecache_hashcmp (const void *av, const void *bv) |
| static void * | moviecache_getprioritydata (void *key_v) |
| static int | moviecache_getitempriority (void *last_userkey_v, void *priority_data_v) |
| static void | moviecache_prioritydeleter (void *priority_data_v) |
| static ImBuf * | get_imbuf_cache (MovieClip *clip, const MovieClipUser *user, int flag) |
| static bool | has_imbuf_cache (MovieClip *clip, const MovieClipUser *user, int flag) |
| static bool | put_imbuf_cache (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf, int flag, bool destructive) |
| static bool | moviecache_check_free_proxy (ImBuf *, void *userkey, void *) |
| static MovieClip * | movieclip_alloc (Main *bmain, const char *name) |
| static void | movieclip_load_get_size (MovieClip *clip) |
| static void | detect_clip_source (Main *bmain, MovieClip *clip) |
| MovieClip * | BKE_movieclip_file_add (Main *bmain, const char *filepath) |
| MovieClip * | BKE_movieclip_file_add_exists_ex (Main *bmain, const char *filepath, bool *r_exists) |
| MovieClip * | BKE_movieclip_file_add_exists (Main *bmain, const char *filepath) |
| static void | real_ibuf_size (const MovieClip *clip, const MovieClipUser *user, const ImBuf *ibuf, int *width, int *height) |
| static ImBuf * | get_undistorted_ibuf (MovieClip *clip, MovieDistortion *distortion, ImBuf *ibuf) |
| static bool | need_undistortion_postprocess (const MovieClipUser *user, int clip_flag) |
| static bool | need_postprocessed_frame (const MovieClipUser *user, int clip_flag, int postprocess_flag) |
| static bool | check_undistortion_cache_flags (const MovieClip *clip) |
| static ImBuf * | get_postprocessed_cached_frame (const MovieClip *clip, const MovieClipUser *user, int flag, int postprocess_flag) |
| static ImBuf * | postprocess_frame (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf, int flag, int postprocess_flag) |
| static void | put_postprocessed_frame_to_cache (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf, int flag, int postprocess_flag) |
| static ImBuf * | movieclip_get_postprocessed_ibuf (MovieClip *clip, const MovieClipUser *user, int flag, int postprocess_flag, int cache_flag) |
| ImBuf * | BKE_movieclip_get_ibuf (MovieClip *clip, const MovieClipUser *user) |
| ImBuf * | BKE_movieclip_get_ibuf_flag (MovieClip *clip, const MovieClipUser *user, const int flag, const int cache_flag) |
| ImBuf * | BKE_movieclip_get_postprocessed_ibuf (MovieClip *clip, const MovieClipUser *user, const int postprocess_flag) |
| static ImBuf * | get_stable_cached_frame (MovieClip *clip, const MovieClipUser *user, ImBuf *reference_ibuf, const int framenr, const int postprocess_flag) |
| static ImBuf * | put_stabilized_frame_to_cache (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf, const int framenr, const int postprocess_flag) |
| 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) |
| bool | BKE_movieclip_has_frame (MovieClip *clip, const MovieClipUser *user) |
| void | BKE_movieclip_get_size (MovieClip *clip, const MovieClipUser *user, int *r_width, int *r_height) |
| void | BKE_movieclip_get_size_fl (MovieClip *clip, const MovieClipUser *user, float r_size[2]) |
| int | BKE_movieclip_get_duration (MovieClip *clip) |
| float | BKE_movieclip_get_fps (MovieClip *clip) |
| void | BKE_movieclip_get_aspect (MovieClip *clip, float *aspx, float *aspy) |
| void | BKE_movieclip_get_cache_segments (MovieClip *clip, const MovieClipUser *user, int *r_totseg, int **r_points) |
| void | BKE_movieclip_user_set_frame (MovieClipUser *user, int framenr) |
| void | BKE_movieclip_clear_cache (MovieClip *clip) |
| void | BKE_movieclip_clear_proxy_cache (MovieClip *clip) |
| void | BKE_movieclip_reload (Main *bmain, MovieClip *clip) |
| void | BKE_movieclip_update_scopes (MovieClip *clip, const MovieClipUser *user, MovieClipScopes *scopes) |
| static void | movieclip_build_proxy_ibuf (const MovieClip *clip, const ImBuf *ibuf, int cfra, int proxy_render_size, bool undistorted, bool threaded) |
| void | BKE_movieclip_build_proxy_frame (MovieClip *clip, int clip_flag, MovieDistortion *distortion, int cfra, const int *build_sizes, int build_count, bool undistorted) |
| void | BKE_movieclip_build_proxy_frame_for_ibuf (MovieClip *clip, ImBuf *ibuf, MovieDistortion *distortion, int cfra, const int *build_sizes, int build_count, bool undistorted) |
| bool | BKE_movieclip_proxy_enabled (MovieClip *clip) |
| float | BKE_movieclip_remap_scene_to_clip_frame (const MovieClip *clip, const float framenr) |
| float | BKE_movieclip_remap_clip_to_scene_frame (const MovieClip *clip, const float framenr) |
| void | BKE_movieclip_filepath_for_frame (MovieClip *clip, const MovieClipUser *user, char *filepath) |
| ImBuf * | BKE_movieclip_anim_ibuf_for_frame_no_lock (MovieClip *clip, const MovieClipUser *user) |
| bool | BKE_movieclip_has_cached_frame (MovieClip *clip, const MovieClipUser *user) |
| bool | BKE_movieclip_put_frame_if_possible (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf) |
| static void | movieclip_eval_update_reload (Depsgraph *depsgraph, Main *bmain, MovieClip *clip) |
| static void | movieclip_eval_update_generic (Depsgraph *depsgraph, MovieClip *clip) |
| void | BKE_movieclip_eval_update (Depsgraph *depsgraph, Main *bmain, MovieClip *clip) |
GPU textures | |
| static GPUTexture ** | movieclip_get_gputexture_ptr (MovieClip *clip, MovieClipUser *cuser, eGPUTextureTarget textarget) |
| GPUTexture * | BKE_movieclip_get_gpu_texture (MovieClip *clip, MovieClipUser *cuser) |
| void | BKE_movieclip_free_gputexture (MovieClip *clip) |
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 1917 of file movieclip.cc.
References BKE_movieclip_anim_ibuf_for_frame_no_lock(), MovieClip::flag, MovieClipUser::framenr, MCLIP_SRC_MOVIE, movieclip_load_movie_file(), and MovieClip::source.
| 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 1809 of file movieclip.cc.
References BKE_movieclip_build_proxy_frame(), BKE_movieclip_get_ibuf_flag(), MovieClipUser::framenr, get_undistorted_ibuf(), i, IMB_freeImBuf(), MCLIP_PROXY_RENDER_SIZE_FULL, movieclip_build_proxy_ibuf(), MOVIECLIP_CACHE_SKIP, MovieClipUser::render_flag, and MovieClipUser::render_size.
Referenced by BKE_movieclip_build_proxy_frame(), BKE_movieclip_get_cache_segments(), and 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 1850 of file movieclip.cc.
References BKE_movieclip_build_proxy_frame_for_ibuf(), get_undistorted_ibuf(), i, IMB_freeImBuf(), and movieclip_build_proxy_ibuf().
Referenced by BKE_movieclip_build_proxy_frame_for_ibuf(), BKE_movieclip_get_cache_segments(), and proxy_task_func().
| void BKE_movieclip_clear_cache | ( | MovieClip * | clip | ) |
Definition at line 1641 of file movieclip.cc.
References BKE_movieclip_clear_cache(), and free_buffers().
Referenced by BKE_movieclip_clear_cache(), and ED_space_clip_set_clip().
| void BKE_movieclip_clear_proxy_cache | ( | MovieClip * | clip | ) |
Definition at line 1646 of file movieclip.cc.
References BKE_movieclip_clear_proxy_cache(), MovieClip::cache, IMB_moviecache_cleanup(), MovieClipCache::moviecache, and moviecache_check_free_proxy().
Referenced by BKE_movieclip_clear_proxy_cache(), and 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 516 of file movieclip.cc.
References BKE_movieclip_convert_multilayer_ibuf(), 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 BKE_movieclip_convert_multilayer_ibuf(), blender::seq::convert_multilayer_ibuf(), movieclip_load_sequence_file(), and prefetch_task_func().
Definition at line 1968 of file movieclip.cc.
References BKE_movieclip_eval_update(), DEG_debug_print_eval(), DEG_get_update_count(), MovieClip::id, ID_RECALC_SOURCE, MovieClip_Runtime::last_update, movieclip_eval_update_generic(), movieclip_eval_update_reload(), ID::name, ID::recalc, and MovieClip::runtime.
Referenced by BKE_movieclip_eval_update(), BKE_movieclip_put_frame_if_possible(), and 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 953 of file movieclip.cc.
References BKE_main_blendfile_path(), BKE_movieclip_file_add(), BLI_open(), BLI_path_abs(), BLI_path_basename(), MovieTracking::camera, detect_clip_source(), FILE_MAX, MovieClip::filepath, MovieTrackingCamera::focal, MovieClip::lastsize, movieclip_alloc(), movieclip_calc_length(), movieclip_load_get_size(), O_BINARY, MovieTrackingCamera::sensor_width, STRNCPY(), and MovieClip::tracking.
Referenced by BKE_movieclip_file_add(), and BKE_movieclip_file_add_exists_ex().
Definition at line 1019 of file movieclip.cc.
References BKE_movieclip_file_add_exists(), and BKE_movieclip_file_add_exists_ex().
Referenced by BKE_movieclip_file_add_exists(), and open_exec().
| MovieClip * BKE_movieclip_file_add_exists_ex | ( | Main * | bmain, |
| const char * | filepath, | ||
| bool * | r_exists ) |
Definition at line 989 of file movieclip.cc.
References BKE_main_blendfile_path(), BKE_movieclip_file_add(), BKE_movieclip_file_add_exists_ex(), BLI_path_abs(), BLI_path_cmp, FILE_MAX, MovieClip::filepath, ListBase::first, MovieClip::id, ID_BLEND_PATH, id_us_plus(), Main::movieclips, ID::next, and STRNCPY().
Referenced by BKE_movieclip_file_add_exists(), and BKE_movieclip_file_add_exists_ex().
| void BKE_movieclip_filepath_for_frame | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| char * | filepath ) |
Definition at line 1895 of file movieclip.cc.
References BKE_movieclip_filepath_for_frame(), BLI_path_abs(), BLI_strncpy(), FILE_MAX, MovieClip::filepath, MovieClip::flag, MovieClipUser::framenr, get_proxy_filepath(), get_sequence_filepath(), MovieClip::id, 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 MovieClip::source.
| void BKE_movieclip_free_gputexture | ( | MovieClip * | clip | ) |
Definition at line 2045 of file movieclip.cc.
References BKE_movieclip_free_gputexture(), BLI_listbase_count(), BLI_pophead(), GPU_texture_free(), MovieClip_RuntimeGPUTexture::gputexture, MovieClip_Runtime::gputextures, i, MEM_freeN(), MovieClip::runtime, and TEXTARGET_COUNT.
Referenced by BKE_movieclip_free_gputexture(), BKE_movieclip_put_frame_if_possible(), and blender::draw::overlay::Resources::free_movieclips_textures().
| void BKE_movieclip_get_aspect | ( | MovieClip * | clip, |
| float * | aspx, | ||
| float * | aspy ) |
Definition at line 1572 of file movieclip.cc.
References MovieClip::aspx, MovieClip::aspy, BKE_movieclip_get_aspect(), MovieTracking::camera, MovieTrackingCamera::pixel_aspect, and MovieClip::tracking.
Referenced by BKE_mask_coord_from_movieclip(), BKE_mask_coord_to_movieclip(), BKE_mask_point_parent_matrix_get(), BKE_movieclip_get_aspect(), BKE_movieclip_get_size_fl(), 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 1580 of file movieclip.cc.
References BKE_movieclip_get_cache_segments(), BLI_thread_lock(), BLI_thread_unlock(), MovieClip::cache, MovieClip::flag, IMB_moviecache_get_cache_segments(), LOCK_MOVIECLIP, MovieClipCache::moviecache, MovieClipUser::render_flag, and rendersize_to_proxy().
| int BKE_movieclip_get_duration | ( | MovieClip * | clip | ) |
Definition at line 1551 of file movieclip.cc.
References BKE_movieclip_get_duration(), MovieClip::len, and movieclip_calc_length().
Referenced by blender::seq::add_movieclip_strip(), blender::seq::add_reload_new_file(), BKE_movieclip_get_duration(), BKE_movieclip_get_size_fl(), clip_set_scene_frames_exec(), and prefetch_check_early_out().
| float BKE_movieclip_get_fps | ( | MovieClip * | clip | ) |
Definition at line 1560 of file movieclip.cc.
References MovieClip::anim, BKE_movieclip_get_fps(), MCLIP_SRC_MOVIE, MOV_get_fps(), movieclip_open_anim_file(), and MovieClip::source.
Referenced by BKE_movieclip_get_fps(), BKE_movieclip_get_size_fl(), and blender::seq::time_strip_fps_get().
| GPUTexture * BKE_movieclip_get_gpu_texture | ( | MovieClip * | clip, |
| MovieClipUser * | cuser ) |
Definition at line 2013 of file movieclip.cc.
References BKE_movieclip_get_gpu_texture(), BKE_movieclip_get_ibuf(), ImBufFloatBuffer::data, false, ImBuf::float_buffer, GPU_texture_create_error(), GPU_texture_mipmap_mode(), MovieClip::id, IMB_create_gpu_texture(), IMB_freeImBuf(), movieclip_get_gputexture_ptr(), ID::name, and TEXTARGET_2D.
Referenced by BKE_movieclip_get_gpu_texture(), and BKE_movieclip_put_frame_if_possible().
| ImBuf * BKE_movieclip_get_ibuf | ( | MovieClip * | clip, |
| const MovieClipUser * | user ) |
Definition at line 1315 of file movieclip.cc.
References BKE_movieclip_get_ibuf(), BKE_movieclip_get_ibuf_flag(), and MovieClip::flag.
| ImBuf * BKE_movieclip_get_ibuf_flag | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| const int | flag, | ||
| const int | cache_flag ) |
Definition at line 1320 of file movieclip.cc.
References BKE_movieclip_get_ibuf_flag(), and movieclip_get_postprocessed_ibuf().
| ImBuf * BKE_movieclip_get_postprocessed_ibuf | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| const int | postprocess_flag ) |
Definition at line 1328 of file movieclip.cc.
References BKE_movieclip_get_postprocessed_ibuf(), MovieClip::flag, and movieclip_get_postprocessed_ibuf().
| void BKE_movieclip_get_size | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| int * | r_width, | ||
| int * | r_height ) |
Definition at line 1516 of file movieclip.cc.
References BKE_movieclip_get_ibuf(), BKE_movieclip_get_size(), IMB_freeImBuf(), MovieClip::lastsize, real_ibuf_size(), ImBuf::x, and ImBuf::y.
| void BKE_movieclip_get_size_fl | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| float | r_size[2] ) |
Definition at line 1542 of file movieclip.cc.
References BKE_movieclip_get_size(), and BKE_movieclip_get_size_fl().
| 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 1443 of file movieclip.cc.
References BKE_movieclip_get_postprocessed_ibuf(), BKE_movieclip_get_stable_ibuf(), MovieClip::cache, copy_v2_v2(), MovieTrackingStabilization::flag, MovieClipUser::framenr, get_stable_cached_frame(), IMB_freeImBuf(), put_stabilized_frame_to_cache(), MovieTracking::stabilization, MovieClipCache::stabilized, MovieClip::tracking, TRACKING_2D_STABILIZATION, and zero_v2().
| bool BKE_movieclip_has_cached_frame | ( | MovieClip * | clip, |
| const MovieClipUser * | user ) |
Definition at line 1928 of file movieclip.cc.
References BKE_movieclip_has_cached_frame(), BLI_thread_lock(), BLI_thread_unlock(), MovieClip::flag, has_imbuf_cache(), and LOCK_MOVIECLIP.
| bool BKE_movieclip_has_frame | ( | MovieClip * | clip, |
| const MovieClipUser * | user ) |
Definition at line 1504 of file movieclip.cc.
References BKE_movieclip_get_ibuf(), BKE_movieclip_has_frame(), and IMB_freeImBuf().
| bool BKE_movieclip_proxy_enabled | ( | MovieClip * | clip | ) |
Definition at line 1880 of file movieclip.cc.
References BKE_movieclip_proxy_enabled(), MovieClip::flag, and MCLIP_USE_PROXY.
Referenced by BKE_movieclip_get_cache_segments(), BKE_movieclip_proxy_enabled(), and blender::seq::seq_render_movieclip_strip().
| bool BKE_movieclip_put_frame_if_possible | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| ImBuf * | ibuf ) |
Definition at line 1939 of file movieclip.cc.
References BKE_movieclip_put_frame_if_possible(), BLI_thread_lock(), BLI_thread_unlock(), MovieClip::flag, LOCK_MOVIECLIP, put_imbuf_cache(), and result.
Definition at line 1653 of file movieclip.cc.
References BKE_movieclip_reload(), BKE_ntree_update_tag_id_changed(), detect_clip_source(), free_buffers(), MovieClip::id, MovieClip::lastsize, movieclip_calc_length(), and movieclip_load_get_size().
Referenced by BKE_movieclip_reload(), movieclip_eval_update_reload(), and reload_exec().
| float BKE_movieclip_remap_clip_to_scene_frame | ( | const MovieClip * | clip, |
| const float | framenr ) |
Definition at line 1890 of file movieclip.cc.
References BKE_movieclip_remap_clip_to_scene_frame(), and MovieClip::start_frame.
| float BKE_movieclip_remap_scene_to_clip_frame | ( | const MovieClip * | clip, |
| const float | framenr ) |
Definition at line 1885 of file movieclip.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), and MovieClip::start_frame.
| void BKE_movieclip_update_scopes | ( | MovieClip * | clip, |
| const MovieClipUser * | user, | ||
| MovieClipScopes * | scopes ) |
Definition at line 1670 of file movieclip.cc.
References MovieTrackingObject::active_track, BKE_movieclip_get_ibuf(), BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BKE_movieclip_update_scopes(), 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, MovieTracking::camera, 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, MovieTrackingCamera::pixel_aspect, 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, MovieClip::tracking, 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 1598 of file movieclip.cc.
References BKE_movieclip_user_set_frame(), and MovieClipUser::framenr.
Referenced by accessor_get_mask_for_track_callback(), accessor_get_preprocessed_ibuf(), BKE_mask_point_parent_matrix_get(), BKE_movieclip_has_frame(), BKE_movieclip_user_set_frame(), clip_area_sync_frame_from_scene(), clip_refresh(), ED_clip_update_frame(), blender::nodes::node_composite_movieclip_cc::MovieClipOperation::get_movie_clip_buffer(), blender::compositor::get_movie_clip_size(), blender::nodes::node_composite_planetrackdeform_cc::PlaneTrackDeformOperation::get_movie_clip_size(), blender::compositor::get_movie_clip_user(), blender::nodes::node_composite_keyingscreen_cc::KeyingScreenOperation::get_size(), blender::nodes::node_composite_trackpos_cc::TrackPositionOperation::get_size(), reference_keyframed_image_buffers(), and blender::seq::seq_render_movieclip_strip().
|
static |
Definition at line 1086 of file movieclip.cc.
References MovieTrackingCamera::brown_k1, MovieTrackingCamera::brown_p1, MovieClip::cache, MovieTracking::camera, check_undistortion_cache_flags(), MovieTrackingCamera::distortion_model, MovieTrackingCamera::division_k1, equals_v2v2(), equals_v3v3(), equals_v4v4(), MovieTrackingCamera::focal, MovieTrackingCamera::k1, MovieTrackingCamera::nuke_k1, MovieClipCache::postprocessed, MovieTrackingCamera::principal_point, and MovieClip::tracking.
Referenced by check_undistortion_cache_flags(), and get_postprocessed_cached_frame().
Definition at line 935 of file movieclip.cc.
References BKE_main_blendfile_path(), BLI_path_abs(), detect_clip_source(), FILE_MAX, MovieClip::filepath, IB_byte_data, IB_multilayer, IB_test, IMB_freeImBuf(), IMB_load_image_from_filepath(), MCLIP_SRC_MOVIE, MCLIP_SRC_SEQUENCE, MovieClip::source, and STRNCPY().
Referenced by BKE_movieclip_file_add(), BKE_movieclip_reload(), and detect_clip_source().
|
static |
Definition at line 241 of file movieclip.cc.
References BLO_read_pointer_array(), BLO_read_struct, BLO_read_struct_array, BLO_read_struct_list, direct_link_moviePlaneTracks(), i, and LISTBASE_FOREACH.
Referenced by direct_link_moviePlaneTracks(), and movieclip_blend_read_data().
|
static |
Definition at line 225 of file movieclip.cc.
References BLO_read_struct_array, MovieTrackingReconstruction::cameras, MovieTrackingReconstruction::camnr, and direct_link_movieReconstruction().
Referenced by direct_link_movieReconstruction(), and movieclip_blend_read_data().
|
static |
Definition at line 232 of file movieclip.cc.
References BLO_read_struct_array, BLO_read_struct_list, direct_link_movieTracks(), and LISTBASE_FOREACH.
Referenced by direct_link_movieTracks(), and movieclip_blend_read_data().
|
static |
Definition at line 1605 of file movieclip.cc.
References MovieClip::anim, BLI_freelistN(), MovieClip::cache, ListBase::first, free_buffers(), GPU_texture_free(), MovieClip_RuntimeGPUTexture::gputexture, MovieClip_Runtime::gputextures, i, IMB_freeImBuf(), IMB_moviecache_free(), MEM_freeN(), MOV_close(), MovieClipCache::moviecache, MovieClip_RuntimeGPUTexture::next, MovieClipCache::postprocessed, MovieClip::runtime, MovieClipCache::stabilized, and TEXTARGET_COUNT.
Referenced by BKE_movieclip_clear_cache(), BKE_movieclip_reload(), free_buffers(), and movie_clip_free_data().
|
static |
Definition at line 799 of file movieclip.cc.
References MovieClip::cache, MovieClipImBufCacheKey::framenr, MovieClipUser::framenr, get_imbuf_cache(), IMB_moviecache_get(), IMB_PROXY_NONE, MovieClipCache::is_still_sequence, MCLIP_USE_PROXY, MovieClipCache::moviecache, MovieClipImBufCacheKey::proxy, MovieClipImBufCacheKey::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), and user_frame_to_cache_frame().
Referenced by get_imbuf_cache(), and movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 1126 of file movieclip.cc.
References MovieClip::cache, check_undistortion_cache_flags(), MovieClipUser::framenr, get_postprocessed_cached_frame(), IMB_PROXY_NONE, IMB_refImBuf(), MCLIP_USE_PROXY, need_undistortion_postprocess(), MovieClipCache::postprocessed, MovieClipUser::render_flag, and rendersize_to_proxy().
Referenced by get_postprocessed_cached_frame(), and movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 423 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(), MovieClipProxy::dir, FILE_MAX, MovieClip::filepath, MovieClip::flag, MovieClip::frame_offset, get_proxy_filepath(), MCLIP_USE_PROXY_CUSTOM_DIR, MovieClip::proxy, rendersize_to_number(), SEP_STR, size(), SNPRINTF, MovieClip::start_frame, and STRNCPY().
Referenced by BKE_movieclip_filepath_for_frame(), get_proxy_filepath(), get_proxy_filepath(), MOV_get_existing_proxies(), MOV_proxy_builder_start(), movie_open_proxy(), movieclip_build_proxy_ibuf(), and movieclip_load_sequence_file().
|
static |
Definition at line 392 of file movieclip.cc.
References BLI_path_abs(), BLI_path_sequence_decode(), BLI_path_sequence_encode(), BLI_strncpy(), FILE_MAX, MovieClip::filepath, MovieClip::frame_offset, get_sequence_filepath(), MovieClip::id, ID_BLEND_PATH_FROM_GLOBAL, sequence_guess_offset(), and MovieClip::start_frame.
Referenced by BKE_movieclip_filepath_for_frame(), get_sequence_filepath(), movieclip_calc_length(), and movieclip_load_sequence_file().
|
static |
Definition at line 1335 of file movieclip.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_stabilization_data_get(), MovieClip::cache, MovieTracking::camera, equals_v2v2(), MovieTrackingStabilization::filter, MovieClip::flag, get_stable_cached_frame(), IMB_PROXY_NONE, IMB_refImBuf(), MCLIP_USE_PROXY, MovieTrackingCamera::pixel_aspect, MovieClipUser::render_flag, rendersize_to_proxy(), MovieTracking::stabilization, MovieClipCache::stabilized, MovieClip::tracking, ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_get_stable_ibuf(), and get_stable_cached_frame().
|
static |
Definition at line 383 of file movieclip.cc.
References get_timecode(), IMB_TC_NONE, MCLIP_USE_PROXY, MovieClip::proxy, and MovieClipProxy::tc.
Referenced by get_timecode(), and movieclip_load_movie_file().
|
static |
Definition at line 1050 of file movieclip.cc.
References BKE_tracking_distortion_exec(), BKE_tracking_undistort_frame(), Box, get_undistorted_ibuf(), IMB_scale(), MovieClip::tracking, ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_build_proxy_frame(), BKE_movieclip_build_proxy_frame_for_ibuf(), get_undistorted_ibuf(), and postprocess_frame().
|
static |
Definition at line 826 of file movieclip.cc.
References MovieClip::cache, MovieClipImBufCacheKey::framenr, MovieClipUser::framenr, has_imbuf_cache(), IMB_moviecache_has_frame(), IMB_PROXY_NONE, MCLIP_USE_PROXY, MovieClipCache::moviecache, MovieClipImBufCacheKey::proxy, MovieClipImBufCacheKey::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), and user_frame_to_cache_frame().
Referenced by BKE_movieclip_has_cached_frame(), and has_imbuf_cache().
|
static |
Definition at line 97 of file movieclip.cc.
References MovieClip::anim, BKE_color_managed_colorspace_settings_copy(), BKE_tracking_copy(), MovieClip::cache, MovieClip::colorspace_settings, LIB_ID_CREATE_NO_USER_REFCOUNT, movie_clip_copy_data(), MovieClip::tracking, and MovieClip::tracking_context.
Referenced by movie_clip_copy_data().
|
static |
Definition at line 146 of file movieclip.cc.
References MovieClip::cache, MovieTracking::camera, IDCacheKey::id_session_uid, IDCacheKey::identifier, MovieTrackingCamera::intrinsics, movie_clip_foreach_cache(), offsetof, and MovieClip::tracking.
Referenced by movie_clip_foreach_cache().
|
static |
Definition at line 129 of file movieclip.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, data, MovieClip::gpd, IDWALK_CB_USER, LISTBASE_FOREACH, movie_clip_foreach_id(), MovieTracking::objects, and MovieClip::tracking.
Referenced by movie_clip_foreach_id().
|
static |
Definition at line 160 of file movieclip.cc.
References BKE_bpath_foreach_path_fixed_process(), MovieClip::filepath, and movie_clip_foreach_path().
Referenced by movie_clip_foreach_path().
|
static |
Definition at line 119 of file movieclip.cc.
References BKE_tracking_free(), free_buffers(), movie_clip_free_data(), and MovieClip::tracking.
Referenced by movie_clip_free_data().
|
static |
Definition at line 86 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, movie_clip_init_data(), and MovieClip::tracking.
Referenced by movie_clip_init_data().
|
static |
Reset runtime mask fields when data-block is being initialized.
Definition at line 77 of file movieclip.cc.
References BLI_listbase_clear(), MovieClip_Runtime::gputextures, MovieClip_Runtime::last_update, movie_clip_runtime_reset(), and MovieClip::runtime.
Referenced by movie_clip_runtime_reset(), and movieclip_blend_read_data().
|
static |
Definition at line 903 of file movieclip.cc.
References IMB_PROXY_NONE, moviecache_check_free_proxy(), MovieClipImBufCacheKey::proxy, and MovieClipImBufCacheKey::render_flag.
Referenced by BKE_movieclip_clear_proxy_cache(), and moviecache_check_free_proxy().
|
static |
Definition at line 784 of file movieclip.cc.
References abs, MovieClipCachePriorityData::framenr, MovieClipImBufCacheKey::framenr, and moviecache_getitempriority().
Referenced by moviecache_getitempriority(), and put_imbuf_cache().
|
static |
Definition at line 773 of file movieclip.cc.
References MovieClipCachePriorityData::framenr, MovieClipImBufCacheKey::framenr, MEM_callocN(), and moviecache_getprioritydata().
Referenced by moviecache_getprioritydata(), and put_imbuf_cache().
|
static |
Definition at line 764 of file movieclip.cc.
References b, MovieClipImBufCacheKey::framenr, moviecache_hashcmp(), MovieClipImBufCacheKey::proxy, and MovieClipImBufCacheKey::render_flag.
Referenced by IMB_moviecache_create(), moviecache_hashcmp(), moviecache_hashcmp(), and put_imbuf_cache().
|
static |
Definition at line 756 of file movieclip.cc.
References MovieClipImBufCacheKey::framenr, and moviecache_hashhash().
Referenced by IMB_moviecache_create(), moviecache_hashhash(), moviecache_hashhash(), and put_imbuf_cache().
|
static |
Definition at line 747 of file movieclip.cc.
References MovieClipImBufCacheKey::framenr, moviecache_keydata(), MovieClipImBufCacheKey::proxy, and MovieClipImBufCacheKey::render_flag.
Referenced by moviecache_keydata(), and put_imbuf_cache().
|
static |
Definition at line 792 of file movieclip.cc.
References MEM_freeN(), and moviecache_prioritydeleter().
Referenced by moviecache_prioritydeleter(), and put_imbuf_cache().
Definition at line 913 of file movieclip.cc.
References BKE_id_new(), and movieclip_alloc().
Referenced by BKE_movieclip_file_add(), and movieclip_alloc().
|
static |
Definition at line 257 of file movieclip.cc.
References MovieTracking::act_plane_track_legacy, MovieTracking::act_track_legacy, MovieClip::anim, BLI_listbase_clear(), BLO_read_struct, BLO_read_struct_list, MovieTrackingDopesheet::channels, MovieTrackingDopesheet::coverage_segments, direct_link_moviePlaneTracks(), direct_link_movieReconstruction(), direct_link_movieTracks(), MovieTracking::dopesheet, LISTBASE_FOREACH, movie_clip_runtime_reset(), movieclip_blend_read_data(), MovieTracking::objects, MovieTrackingDopesheet::ok, MovieTracking::plane_tracks_legacy, MovieTracking::reconstruction_legacy, MovieTrackingStabilization::rot_track_legacy, MovieTracking::stabilization, MovieTracking::stats, MovieClip::tracking, MovieClip::tracking_context, and MovieTracking::tracks_legacy.
Referenced by movieclip_blend_read_data().
|
static |
Definition at line 203 of file movieclip.cc.
References MovieClip::anim, BKE_id_blend_write(), BLO_write_id_struct, BLO_write_struct, MovieClip::id, LISTBASE_FOREACH, movieclip_blend_write(), MovieTracking::objects, MovieTracking::stats, MovieClip::tracking, MovieClip::tracking_context, write_moviePlaneTracks(), write_movieReconstruction(), and write_movieTracks().
Referenced by movieclip_blend_write().
|
static |
Definition at line 1767 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_byte_data, IMB_freeImBuf(), IMB_FTYPE_JPG, IMB_save_image(), IMB_scale_into_new(), LOCK_MOVIECLIP, movieclip_build_proxy_ibuf(), ImBuf::planes, MovieClip::proxy, ImbFormatOptions::quality, MovieClipProxy::quality, rendersize_to_number(), size(), ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_build_proxy_frame(), BKE_movieclip_build_proxy_frame_for_ibuf(), and movieclip_build_proxy_ibuf().
|
static |
Definition at line 630 of file movieclip.cc.
References MovieClip::anim, BLI_exists(), BLI_path_sequence_decode(), FILE_MAX, MovieClip::filepath, get_sequence_filepath(), MovieClip::len, MCLIP_SRC_MOVIE, MCLIP_SRC_SEQUENCE, MOV_get_duration_frames(), movieclip_calc_length(), movieclip_open_anim_file(), MovieClip::proxy, MovieClip::source, MovieClip::start_frame, and MovieClipProxy::tc.
Referenced by BKE_movieclip_file_add(), BKE_movieclip_get_duration(), BKE_movieclip_reload(), and movieclip_calc_length().
|
static |
Definition at line 1959 of file movieclip.cc.
References BKE_tracking_dopesheet_tag_update(), DEG_get_original(), DEG_is_active(), movieclip_eval_update_generic(), and MovieClip::tracking.
Referenced by BKE_movieclip_eval_update(), and movieclip_eval_update_generic().
Definition at line 1950 of file movieclip.cc.
References BKE_movieclip_reload(), DEG_get_original(), DEG_is_active(), and movieclip_eval_update_reload().
Referenced by BKE_movieclip_eval_update(), and movieclip_eval_update_reload().
|
static |
Definition at line 1984 of file movieclip.cc.
References BLI_addtail(), ListBase::first, MovieClip_RuntimeGPUTexture::gputexture, MovieClip_Runtime::gputextures, i, MEM_mallocN(), movieclip_get_gputexture_ptr(), MovieClip_RuntimeGPUTexture::next, MovieClip::runtime, TEXTARGET_COUNT, and MovieClip_RuntimeGPUTexture::user.
Referenced by BKE_movieclip_get_gpu_texture(), and movieclip_get_gputexture_ptr().
|
static |
Definition at line 1242 of file movieclip.cc.
References BLI_thread_lock(), BLI_thread_unlock(), MovieClipUser::framenr, get_imbuf_cache(), get_postprocessed_cached_frame(), IMB_freeImBuf(), MovieClip::lastsize, 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, MovieClipUser::render_size, and MovieClip::source.
Referenced by BKE_movieclip_get_ibuf_flag(), BKE_movieclip_get_postprocessed_ibuf(), and movieclip_get_postprocessed_ibuf().
|
static |
Definition at line 922 of file movieclip.cc.
References BKE_movieclip_get_size(), BKE_movieclip_remap_clip_to_scene_frame(), DNA_struct_default_get, MovieClipUser::framenr, IMG_SIZE_FALLBACK, MovieClip::lastsize, and movieclip_load_get_size().
Referenced by BKE_movieclip_file_add(), BKE_movieclip_reload(), and movieclip_load_get_size().
|
static |
Definition at line 607 of file movieclip.cc.
References MovieClip::anim, colormanage_imbuf_make_linear(), MovieClip::colorspace_settings, MovieClip::frame_offset, get_timecode(), MOV_decode_frame(), movieclip_load_movie_file(), movieclip_open_anim_file(), ColorManagedColorspaceSettings::name, rendersize_to_proxy(), and MovieClip::start_frame.
Referenced by BKE_movieclip_anim_ibuf_for_frame_no_lock(), movieclip_get_postprocessed_ibuf(), and movieclip_load_movie_file().
|
static |
Definition at line 543 of file movieclip.cc.
References BKE_movieclip_convert_multilayer_ibuf(), MovieClip::colorspace_settings, FILE_MAX, get_proxy_filepath(), get_sequence_filepath(), IB_alphamode_detect, IB_byte_data, IB_metadata, IB_multilayer, IMB_load_image_from_filepath(), MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_PROXY_RENDER_UNDISTORT, MCLIP_SRC_MOVIE, MCLIP_USE_PROXY, movieclip_load_sequence_file(), ColorManagedColorspaceSettings::name, MovieClipUser::render_flag, MovieClipUser::render_size, and MovieClip::source.
Referenced by movieclip_get_postprocessed_ibuf(), and movieclip_load_sequence_file().
|
static |
Definition at line 585 of file movieclip.cc.
References MovieClip::anim, BKE_main_blendfile_path_from_global(), BLI_path_abs(), MovieClip::colorspace_settings, MovieClipProxy::dir, FILE_MAX, MovieClip::filepath, MovieClip::flag, IB_byte_data, MovieClip::id, ID_BLEND_PATH_FROM_GLOBAL, MCLIP_USE_PROXY_CUSTOM_DIR, MOV_set_custom_proxy_dir(), movieclip_open_anim_file(), ColorManagedColorspaceSettings::name, openanim(), MovieClip::proxy, and STRNCPY().
Referenced by BKE_movieclip_get_fps(), movieclip_calc_length(), movieclip_load_movie_file(), and movieclip_open_anim_file().
|
static |
Definition at line 1077 of file movieclip.cc.
References need_postprocessed_frame(), need_undistortion_postprocess(), and result.
Referenced by movieclip_get_postprocessed_ibuf(), and need_postprocessed_frame().
|
static |
Definition at line 1067 of file movieclip.cc.
References MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_PROXY_RENDER_UNDISTORT, MCLIP_USE_PROXY, need_undistortion_postprocess(), MovieClipUser::render_flag, MovieClipUser::render_size, and result.
Referenced by get_postprocessed_cached_frame(), need_postprocessed_frame(), need_undistortion_postprocess(), postprocess_frame(), and put_postprocessed_frame_to_cache().
|
static |
Definition at line 1174 of file movieclip.cc.
References BKE_tracking_disable_channels(), get_undistorted_ibuf(), IMB_dupImBuf(), MOVIECLIP_DISABLE_BLUE, MOVIECLIP_DISABLE_GREEN, MOVIECLIP_DISABLE_RED, MOVIECLIP_PREVIEW_GRAYSCALE, need_undistortion_postprocess(), and postprocess_frame().
Referenced by movieclip_get_postprocessed_ibuf(), and postprocess_frame().
|
static |
Definition at line 848 of file movieclip.cc.
References BLI_path_sequence_decode(), MovieClip::cache, MovieClip::filepath, 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, MovieClipCache::is_still_sequence, MCLIP_SRC_SEQUENCE, MCLIP_USE_PROXY, MEM_callocN(), MovieClipCache::moviecache, moviecache_getitempriority(), moviecache_getprioritydata(), moviecache_hashcmp(), moviecache_hashhash(), moviecache_keydata(), moviecache_prioritydeleter(), MovieClipImBufCacheKey::proxy, put_imbuf_cache(), MovieClipImBufCacheKey::render_flag, MovieClipUser::render_flag, rendersize_to_proxy(), MovieClipCache::sequence_offset, MovieClip::source, and user_frame_to_cache_frame().
Referenced by BKE_movieclip_put_frame_if_possible(), movieclip_get_postprocessed_ibuf(), and put_imbuf_cache().
|
static |
Definition at line 1200 of file movieclip.cc.
References MovieTrackingCamera::brown_k1, MovieTrackingCamera::brown_p1, MovieClip::cache, MovieTracking::camera, copy_v2_v2(), copy_v3_v3(), copy_v4_v4(), MovieTrackingCamera::distortion_model, MovieTrackingCamera::division_k1, MovieTrackingCamera::focal, MovieClipUser::framenr, IMB_freeImBuf(), IMB_PROXY_NONE, IMB_refImBuf(), MovieTrackingCamera::k1, MCLIP_USE_PROXY, need_undistortion_postprocess(), MovieTrackingCamera::nuke_k1, MovieClipCache::postprocessed, MovieTrackingCamera::principal_point, put_postprocessed_frame_to_cache(), MovieClipUser::render_flag, rendersize_to_proxy(), and MovieClip::tracking.
Referenced by movieclip_get_postprocessed_ibuf(), and put_postprocessed_frame_to_cache().
|
static |
Definition at line 1398 of file movieclip.cc.
References BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_stabilize_frame(), MovieClip::cache, MovieTracking::camera, copy_v2_v2(), MovieTrackingStabilization::filter, MovieClip::flag, IMB_freeImBuf(), IMB_PROXY_NONE, IMB_refImBuf(), MCLIP_USE_PROXY, MovieTrackingCamera::pixel_aspect, put_stabilized_frame_to_cache(), MovieClipUser::render_flag, rendersize_to_proxy(), MovieTracking::stabilization, MovieClipCache::stabilized, and MovieClip::tracking.
Referenced by BKE_movieclip_get_stable_ibuf(), and put_stabilized_frame_to_cache().
|
static |
Definition at line 1024 of file movieclip.cc.
References MovieClip::flag, MCLIP_PROXY_RENDER_SIZE_25, MCLIP_PROXY_RENDER_SIZE_50, MCLIP_PROXY_RENDER_SIZE_75, MCLIP_USE_PROXY, real_ibuf_size(), MovieClipUser::render_size, ImBuf::x, and ImBuf::y.
Referenced by BKE_movieclip_get_size(), movieclip_get_postprocessed_ibuf(), and real_ibuf_size().
|
static |
Definition at line 361 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, MCLIP_PROXY_RENDER_SIZE_FULL, and rendersize_to_number().
Referenced by get_proxy_filepath(), movieclip_build_proxy_ibuf(), and rendersize_to_number().
|
static |
Definition at line 335 of file movieclip.cc.
References 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, MovieClipUser::render_size, and rendersize_to_proxy().
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(), put_stabilized_frame_to_cache(), and rendersize_to_proxy().
|
static |
Definition at line 326 of file movieclip.cc.
References BLI_strncpy(), FILE_MAX, num, and sequence_guess_offset().
Referenced by get_sequence_filepath(), sequence_guess_offset(), and user_frame_to_cache_frame().
|
static |
Definition at line 720 of file movieclip.cc.
References BLI_path_sequence_decode(), MovieClip::cache, FILE_MAX, MovieClip::filepath, MovieClip::frame_offset, MCLIP_SRC_SEQUENCE, sequence_guess_offset(), MovieClipCache::sequence_offset, MovieClip::source, MovieClip::start_frame, and user_frame_to_cache_frame().
Referenced by get_imbuf_cache(), has_imbuf_cache(), put_imbuf_cache(), and user_frame_to_cache_frame().
|
static |
Definition at line 183 of file movieclip.cc.
References BLO_write_pointer_array(), BLO_write_struct, BLO_write_struct_array, LISTBASE_FOREACH, and write_moviePlaneTracks().
Referenced by movieclip_blend_write(), and write_moviePlaneTracks().
|
static |
Definition at line 194 of file movieclip.cc.
References BLO_write_struct_array, MovieTrackingReconstruction::cameras, MovieTrackingReconstruction::camnr, and write_movieReconstruction().
Referenced by movieclip_blend_write(), and write_movieReconstruction().
|
static |
Definition at line 167 of file movieclip.cc.
References BLO_write_struct, BLO_write_struct_array, ListBase::first, MovieTrackingTrack::markers, MovieTrackingTrack::markersnr, MovieTrackingTrack::next, and write_movieTracks().
Referenced by movieclip_blend_write(), and write_movieTracks().
| IDTypeInfo IDType_ID_MC |
Definition at line 294 of file movieclip.cc.