|
Blender
V2.93
|
#include <string.h>#include "DNA_anim_types.h"#include "DNA_cachefile_types.h"#include "DNA_constraint_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_fileops.h"#include "BLI_ghash.h"#include "BLI_listbase.h"#include "BLI_path_util.h"#include "BLI_string.h"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_anim_data.h"#include "BKE_cachefile.h"#include "BKE_idtype.h"#include "BKE_lib_id.h"#include "BKE_main.h"#include "BKE_modifier.h"#include "BKE_scene.h"#include "DEG_depsgraph_query.h"#include "BLO_read_write.h"Go to the source code of this file.
Functions | |
| static void | cachefile_handle_free (CacheFile *cache_file) |
| static void | cache_file_init_data (ID *id) |
| static void | cache_file_copy_data (Main *UNUSED(bmain), ID *id_dst, const ID *id_src, const int UNUSED(flag)) |
| static void | cache_file_free_data (ID *id) |
| static void | cache_file_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
| static void | cache_file_blend_read_data (BlendDataReader *reader, ID *id) |
| void | BKE_cachefiles_init (void) |
| void | BKE_cachefiles_exit (void) |
| void | BKE_cachefile_reader_open (CacheFile *cache_file, struct CacheReader **reader, Object *object, const char *object_path) |
| void | BKE_cachefile_reader_free (CacheFile *cache_file, struct CacheReader **reader) |
| void * | BKE_cachefile_add (Main *bmain, const char *name) |
| void | BKE_cachefile_reload (Depsgraph *depsgraph, CacheFile *cache_file) |
| void | BKE_cachefile_eval (Main *bmain, Depsgraph *depsgraph, CacheFile *cache_file) |
| bool | BKE_cachefile_filepath_get (const Main *bmain, const Depsgraph *depsgraph, const CacheFile *cache_file, char r_filepath[FILE_MAX]) |
| float | BKE_cachefile_time_offset (const CacheFile *cache_file, const float time, const float fps) |
Variables | |
| IDTypeInfo | IDType_ID_CF |
| static SpinLock | spin |
| void* BKE_cachefile_add | ( | Main * | bmain, |
| const char * | name | ||
| ) |
Definition at line 254 of file cachefile.c.
References BKE_id_new(), and ID_CF.
Referenced by import_startjob().
Definition at line 272 of file cachefile.c.
References ABC_create_handle(), BKE_cachefile_filepath_get(), BLI_assert, BLI_duplicatelist(), BLI_freelistN(), BLI_strncpy(), cachefile_handle_free(), DEG_get_original_id(), DEG_is_active(), depsgraph, FILE_MAX, CacheFile::handle, CacheFile::handle_filepath, CacheFile::id, LIB_TAG_COPIED_ON_WRITE, CacheFile::object_paths, STREQ, and ID::tag.
Referenced by blender::deg::DepsgraphNodeBuilder::build_cachefile().
| bool BKE_cachefile_filepath_get | ( | const Main * | bmain, |
| const Depsgraph * | depsgraph, | ||
| const CacheFile * | cache_file, | ||
| char | r_filepath[FILE_MAX] | ||
| ) |
Definition at line 303 of file cachefile.c.
References BKE_cachefile_time_offset(), BKE_scene_frame_get(), BLI_exists(), BLI_path_abs(), BLI_path_extension_ensure(), BLI_path_frame(), BLI_path_frame_get(), BLI_path_frame_strip(), BLI_strncpy(), DEG_get_evaluated_scene(), depsgraph, double(), FILE_MAX, CacheFile::filepath, frame_len(), RenderData::frs_sec, RenderData::frs_sec_base, CacheFile::id, ID_BLEND_PATH, CacheFile::is_sequence, Scene::r, and scene.
Referenced by BKE_cachefile_eval().
| void BKE_cachefile_reader_free | ( | CacheFile * | cache_file, |
| struct CacheReader ** | reader | ||
| ) |
Definition at line 198 of file cachefile.c.
References BLI_assert, BLI_gset_remove(), BLI_spin_lock(), BLI_spin_unlock(), CacheReader_free(), CacheFile::handle_readers, CacheFile::id, LIB_TAG_COPIED_ON_WRITE, NULL, spin, ID::tag, and UNUSED_VARS.
Referenced by freeData(), and transformcache_free().
| void BKE_cachefile_reader_open | ( | CacheFile * | cache_file, |
| struct CacheReader ** | reader, | ||
| Object * | object, | ||
| const char * | object_path | ||
| ) |
Definition at line 164 of file cachefile.c.
References BLI_assert, BLI_gset_ptr_new(), BLI_gset_reinsert(), BLI_gset_remove(), BLI_spin_lock(), BLI_spin_unlock(), CacheReader_open_alembic_object(), CacheFile::handle, CacheFile::handle_readers, CacheFile::id, LIB_TAG_COPIED_ON_WRITE, NULL, spin, ID::tag, and UNUSED_VARS.
Referenced by modifyMesh(), and transformcache_evaluate().
Definition at line 261 of file cachefile.c.
References cachefile_handle_free(), DEG_get_evaluated_id(), DEG_id_tag_update(), depsgraph, CacheFile::id, and ID_RECALC_COPY_ON_WRITE.
Referenced by cachefile_reload_exec().
Definition at line 332 of file cachefile.c.
References CacheFile::frame, CacheFile::frame_offset, CacheFile::is_sequence, CacheFile::override_frame, and time.
Referenced by BKE_cachefile_filepath_get().
| void BKE_cachefiles_exit | ( | void | ) |
Definition at line 159 of file cachefile.c.
References BLI_spin_end(), and spin.
Referenced by BKE_blender_free().
| void BKE_cachefiles_init | ( | void | ) |
Definition at line 154 of file cachefile.c.
References BLI_spin_init(), and spin.
Referenced by main().
|
static |
Definition at line 110 of file cachefile.c.
References CacheFile::adt, BKE_animdata_blend_read_data(), BLI_listbase_clear(), BLO_read_data_address, CacheFile::handle, CacheFile::handle_filepath, CacheFile::handle_readers, NULL, and CacheFile::object_paths.
|
static |
Definition at line 91 of file cachefile.c.
References CacheFile::adt, BKE_animdata_blend_write(), BKE_id_blend_write(), BLI_listbase_clear(), BLO_write_id_struct, BLO_write_is_undo(), CacheFile::handle, CacheFile::handle_filepath, CacheFile::handle_readers, CacheFile::id, NULL, CacheFile::object_paths, and ID::us.
|
static |
Definition at line 71 of file cachefile.c.
References BLI_duplicatelist(), CacheFile::handle, CacheFile::handle_readers, NULL, and CacheFile::object_paths.
|
static |
Definition at line 84 of file cachefile.c.
References BLI_freelistN(), cachefile_handle_free(), and CacheFile::object_paths.
|
static |
Definition at line 60 of file cachefile.c.
References BLI_assert, BLI_strncpy(), CACHEFILE_VELOCITY_UNIT_SECOND, MEMCMP_STRUCT_AFTER_IS_ZERO, CacheFile::scale, CacheFile::velocity_name, and CacheFile::velocity_unit.
|
static |
Definition at line 221 of file cachefile.c.
References ABC_free_handle(), BLI_gset_free(), BLI_gsetIterator_getKey(), BLI_spin_lock(), BLI_spin_unlock(), CacheReader_free(), GSET_ITER, CacheFile::handle, CacheFile::handle_filepath, CacheFile::handle_readers, NULL, spin, and UNUSED_VARS.
Referenced by BKE_cachefile_eval(), BKE_cachefile_reload(), and cache_file_free_data().
| IDTypeInfo IDType_ID_CF |
Definition at line 123 of file cachefile.c.
|
static |
Definition at line 152 of file cachefile.c.
Referenced by BKE_cachefile_reader_free(), BKE_cachefile_reader_open(), BKE_cachefiles_exit(), BKE_cachefiles_init(), BLI_spin_end(), BLI_spin_init(), BLI_spin_lock(), BLI_spin_unlock(), cachefile_handle_free(), blender::compositor::DirectionalBlurOperation::initExecution(), and update_courant_num().