Blender V5.3
movieclip.cc File Reference
#include <cstdio>
#include <cstring>
#include <fcntl.h>
#include <optional>
#include <unistd.h>
#include <ctime>
#include "MEM_guardedalloc.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.hh"
#include "BLI_listbase.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BLI_threads.hh"
#include "BLI_utildefines.hh"
#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.hh"
#include "BKE_node_tree_update.hh"
#include "BKE_tracking.hh"
#include "IMB_cache.hh"
#include "IMB_colormanagement.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "MOV_read.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "GPU_texture.hh"
#include "BLO_read_write.hh"
#include "CLG_log.h"

Go to the source code of this file.

Classes

struct  blender::MovieClipCache
struct  blender::MovieClipImBufCacheKey
struct  blender::MovieClipCachePriorityData

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define DNA_DEPRECATED_ALLOW

Functions

static void blender::free_buffers (MovieClip *clip)
static void blender::movie_clip_runtime_reset (MovieClip *clip)
static void blender::movie_clip_init_data (ID *id)
static void blender::movie_clip_copy_data (Main *, std::optional< Library * >, ID *id_dst, const ID *id_src, const int flag)
static void blender::movie_clip_free_data (ID *id)
static void blender::movie_clip_foreach_id (ID *id, LibraryForeachIDData *data)
static void blender::movie_clip_foreach_cache (ID *id, IDTypeForeachCacheFunctionCallback function_callback, void *user_data)
static void blender::movie_clip_foreach_path (ID *id, BPathForeachPathData *bpath_data)
static void blender::write_movieTracks (BlendWriter *writer, ListBaseT< MovieTrackingTrack > *tracks)
static void blender::write_moviePlaneTracks (BlendWriter *writer, ListBaseT< MovieTrackingPlaneTrack > *plane_tracks_base)
static void blender::write_movieReconstruction (BlendWriter *writer, MovieTrackingReconstruction *reconstruction)
static void blender::movieclip_blend_write (BlendWriter *writer, ID *id, const void *id_address)
static void blender::direct_link_movieReconstruction (BlendDataReader *reader, MovieTrackingReconstruction *reconstruction)
static void blender::direct_link_movieTracks (BlendDataReader *reader, ListBaseT< MovieTrackingTrack > *tracksbase)
static void blender::direct_link_moviePlaneTracks (BlendDataReader *reader, ListBaseT< MovieTrackingPlaneTrack > *plane_tracks_base)
static void blender::movieclip_blend_read_data (BlendDataReader *reader, ID *id)
static int blender::sequence_guess_offset (const char *full_name, int head_len, ushort numlen)
static int blender::rendersize_to_proxy (const MovieClipUser *user, int flag)
static int blender::rendersize_to_number (int render_size)
static void blender::get_sequence_filepath (const MovieClip *clip, const int framenr, char filepath[FILE_MAX])
static void blender::get_proxy_filepath (const MovieClip *clip, int proxy_render_size, bool undistorted, int framenr, char filepath[FILE_MAX])
static ImBuf * blender::movieclip_load_sequence_file (MovieClip *clip, const MovieClipUser *user, int framenr, int flag)
static void blender::movieclip_open_anim_file (MovieClip *clip)
static ImBuf * blender::movieclip_load_movie_file (MovieClip *clip, const MovieClipUser *user, int framenr, int flag)
static void blender::movieclip_calc_length (MovieClip *clip)
static int blender::user_frame_to_cache_frame (MovieClip *clip, int framenr)
static void blender::moviecache_keydata (void *userkey, int *framenr, int *proxy, int *render_flags)
static uint blender::movieclip_hashhash (const void *keyv)
static bool blender::imbufcache_hashcmp (const void *av, const void *bv)
static void * blender::moviecache_getprioritydata (void *key_v)
static int blender::moviecache_getitempriority (void *last_userkey_v, void *priority_data_v)
static void blender::moviecache_prioritydeleter (void *priority_data_v)
static ImBuf * blender::get_imbuf_cache (MovieClip *clip, const MovieClipUser *user, int flag)
static bool blender::has_imbuf_cache (MovieClip *clip, const MovieClipUser *user, int flag)
static bool blender::put_imbuf_cache (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf, int flag, bool destructive)
static bool blender::moviecache_check_free_proxy (ImBuf *, void *userkey, void *)
static MovieClip * blender::movieclip_alloc (Main *bmain, const char *name)
static void blender::movieclip_load_get_size (MovieClip *clip)
static void blender::detect_clip_source (Main *bmain, MovieClip *clip)
MovieClip * blender::BKE_movieclip_file_add (Main *bmain, const char *filepath)
MovieClip * blender::BKE_movieclip_file_add_exists_ex (Main *bmain, const char *filepath, bool *r_exists)
MovieClip * blender::BKE_movieclip_file_add_exists (Main *bmain, const char *filepath)
static void blender::real_ibuf_size (const MovieClip *clip, const MovieClipUser *user, const ImBuf *ibuf, int *width, int *height)
static ImBuf * blender::get_undistorted_ibuf (MovieClip *clip, MovieDistortion *distortion, ImBuf *ibuf)
static bool blender::need_undistortion_postprocess (const MovieClipUser *user, int clip_flag)
static bool blender::need_postprocessed_frame (const MovieClipUser *user, int clip_flag, MovieClipPostprocFlag postprocess_flag)
static bool blender::check_undistortion_cache_flags (const MovieClip *clip)
static ImBuf * blender::get_postprocessed_cached_frame (const MovieClip *clip, const MovieClipUser *user, int flag, MovieClipPostprocFlag postprocess_flag)
static ImBuf * blender::postprocess_frame (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf, int flag, MovieClipPostprocFlag postprocess_flag)
static void blender::put_postprocessed_frame_to_cache (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf, int flag, MovieClipPostprocFlag postprocess_flag)
static ImBuf * blender::movieclip_get_postprocessed_ibuf (MovieClip *clip, const MovieClipUser *user, int flag, MovieClipPostprocFlag postprocess_flag, MovieClipCacheFlag cache_flag)
ImBuf * blender::BKE_movieclip_get_ibuf (MovieClip *clip, const MovieClipUser *user)
ImBuf * blender::BKE_movieclip_get_ibuf_flag (MovieClip *clip, const MovieClipUser *user, MovieClipFlag flag, MovieClipCacheFlag cache_flag)
ImBuf * blender::BKE_movieclip_get_postprocessed_ibuf (MovieClip *clip, const MovieClipUser *user, MovieClipPostprocFlag postprocess_flag)
static ImBuf * blender::get_stable_cached_frame (MovieClip *clip, const MovieClipUser *user, ImBuf *reference_ibuf, const int framenr, const MovieClipPostprocFlag postprocess_flag)
static ImBuf * blender::put_stabilized_frame_to_cache (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf, const int framenr, const MovieClipPostprocFlag postprocess_flag)
ImBuf * blender::BKE_movieclip_get_stable_ibuf (MovieClip *clip, const MovieClipUser *user, MovieClipPostprocFlag postprocess_flag, float r_loc[2], float *r_scale, float *r_angle)
bool blender::BKE_movieclip_has_frame (MovieClip *clip, const MovieClipUser *user)
void blender::BKE_movieclip_get_size (MovieClip *clip, const MovieClipUser *user, int *r_width, int *r_height)
void blender::BKE_movieclip_get_size_fl (MovieClip *clip, const MovieClipUser *user, float r_size[2])
int blender::BKE_movieclip_get_duration (MovieClip *clip)
float blender::BKE_movieclip_get_fps (MovieClip *clip)
void blender::BKE_movieclip_get_aspect (MovieClip *clip, float *aspx, float *aspy)
void blender::BKE_movieclip_get_cache_segments (MovieClip *clip, const MovieClipUser *user, int *r_totseg, int **r_points)
void blender::BKE_movieclip_user_set_frame (MovieClipUser *user, int framenr)
void blender::BKE_movieclip_clear_cache (MovieClip *clip)
void blender::BKE_movieclip_clear_proxy_cache (MovieClip *clip)
void blender::BKE_movieclip_reload (Main *bmain, MovieClip *clip)
void blender::BKE_movieclip_update_scopes (MovieClip *clip, const MovieClipUser *user, MovieClipScopes *scopes)
static void blender::movieclip_build_proxy_ibuf (const MovieClip *clip, const ImBuf *ibuf, int cfra, int proxy_render_size, bool undistorted, bool threaded)
void blender::BKE_movieclip_build_proxy_frame (MovieClip *clip, MovieClipFlag clip_flag, MovieDistortion *distortion, int cfra, const int *build_sizes, int build_count, bool undistorted)
void blender::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 blender::BKE_movieclip_proxy_enabled (MovieClip *clip)
float blender::BKE_movieclip_remap_scene_to_clip_frame (const MovieClip *clip, float framenr)
float blender::BKE_movieclip_remap_clip_to_scene_frame (const MovieClip *clip, float framenr)
void blender::BKE_movieclip_filepath_for_frame (MovieClip *clip, const MovieClipUser *user, char *filepath)
ImBuf * blender::BKE_movieclip_anim_ibuf_for_frame_no_lock (MovieClip *clip, const MovieClipUser *user)
bool blender::BKE_movieclip_has_cached_frame (MovieClip *clip, const MovieClipUser *user)
bool blender::BKE_movieclip_put_frame_if_possible (MovieClip *clip, const MovieClipUser *user, ImBuf *ibuf)
static void blender::movieclip_eval_update_reload (Depsgraph *depsgraph, Main *bmain, MovieClip *clip)
static void blender::movieclip_eval_update_generic (Depsgraph *depsgraph, MovieClip *clip)
void blender::BKE_movieclip_eval_update (Depsgraph *depsgraph, Main *bmain, MovieClip *clip)
GPU textures
static gpu::Texture ** blender::movieclip_get_gputexture_ptr (MovieClip *clip, MovieClipUser *cuser)
gpu::Texture * blender::BKE_movieclip_get_gpu_texture (MovieClip *clip, MovieClipUser *cuser)
void blender::BKE_movieclip_free_gputexture (MovieClip *clip)

Variables

static CLG_LogRef blender::LOG = {"gpu.texture"}

Macro Definition Documentation

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 25 of file movieclip.cc.