Blender
V3.3
|
#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_bpath.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 "RE_engine.h"
#include "BLO_read_write.h"
#include "MEM_guardedalloc.h"
Go to the source code of this file.
Variables | |
IDTypeInfo | IDType_ID_CF |
static SpinLock | spin |
Definition at line 420 of file cachefile.c.
References CACHEFILE_TYPE_ALEMBIC, RenderData::engine, Scene::r, RE_engine_supports_alembic_procedural(), RE_engines_find(), scene, CacheFile::type, and CacheFile::use_render_procedural.
Definition at line 324 of file cachefile.c.
References BKE_id_new(), and ID_CF.
Referenced by blender::io::usd::import_startjob(), and import_startjob().
CacheFileLayer* BKE_cachefile_add_layer | ( | CacheFile * | cache_file, |
const char | filename[1024] | ||
) |
Definition at line 432 of file cachefile.c.
References CacheFile::active_layer, BLI_addtail(), BLI_listbase_count(), BLI_strncpy(), CacheFileLayer::filepath, ListBase::first, CacheFile::layers, MEM_callocN, NULL, and STREQ.
Referenced by cachefile_layer_add_exec().
Definition at line 342 of file cachefile.c.
References ABC_create_handle(), BKE_cachefile_filepath_get(), BLI_assert, BLI_duplicatelist(), BLI_freelistN(), BLI_path_extension_check_glob(), BLI_strncpy(), cachefile_handle_free(), CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, DEG_get_original_id(), DEG_is_active(), depsgraph, FILE_MAX, ListBase::first, CacheFile::handle, CacheFile::handle_filepath, CacheFile::id, CacheFile::layers, LIB_TAG_COPIED_ON_WRITE, CacheFile::object_paths, STREQ, ID::tag, CacheFile::type, and USD_create_handle().
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 384 of file cachefile.c.
References BKE_cachefile_time_offset(), BKE_scene_ctime_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().
CacheFileLayer* BKE_cachefile_get_active_layer | ( | CacheFile * | cache_file | ) |
Definition at line 452 of file cachefile.c.
References CacheFile::active_layer, BLI_findlink(), and CacheFile::layers.
Referenced by cachefile_layer_move_exec(), and cachefile_layer_remove_exec().
void BKE_cachefile_reader_free | ( | CacheFile * | cache_file, |
struct CacheReader ** | reader | ||
) |
Definition at line 223 of file cachefile.c.
References ABC_CacheReader_free(), BLI_assert, BLI_gset_remove(), BLI_spin_lock(), BLI_spin_unlock(), CACHE_FILE_TYPE_INVALID, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, CacheFile::handle_readers, CacheFile::id, LIB_TAG_COPIED_ON_WRITE, NULL, spin, ID::tag, CacheFile::type, UNUSED_VARS, and USD_CacheReader_free().
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 174 of file cachefile.c.
References BLI_assert, BLI_gset_ptr_new(), BLI_gset_reinsert(), BLI_gset_remove(), BLI_spin_lock(), BLI_spin_unlock(), CACHE_FILE_TYPE_INVALID, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, CacheReader_open_alembic_object(), CacheReader_open_usd_object(), CacheFile::handle, CacheFile::handle_readers, CacheFile::id, LIB_TAG_COPIED_ON_WRITE, NULL, spin, ID::tag, CacheFile::type, and UNUSED_VARS.
Referenced by modifyMesh(), and transformcache_evaluate().
Definition at line 331 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 reload_cachefile().
void BKE_cachefile_remove_layer | ( | CacheFile * | cache_file, |
CacheFileLayer * | layer | ||
) |
Definition at line 457 of file cachefile.c.
References CacheFile::active_layer, BLI_remlink(), CacheFile::layers, and MEM_freeN.
Referenced by cachefile_layer_remove_exec().
double BKE_cachefile_time_offset | ( | const CacheFile * | cache_file, |
const double | time, | ||
const double | fps | ||
) |
Definition at line 413 of file cachefile.c.
References double(), CacheFile::frame, CacheFile::frame_offset, CacheFile::is_sequence, CacheFile::override_frame, and time.
Referenced by BKE_cachefile_filepath_get().
Definition at line 169 of file cachefile.c.
References BLI_spin_end(), and spin.
Referenced by BKE_blender_free().
Definition at line 164 of file cachefile.c.
References BLI_spin_init(), and spin.
Referenced by main().
|
static |
Definition at line 115 of file cachefile.c.
References CacheFile::adt, BKE_animdata_blend_read_data(), BLI_listbase_clear(), BLO_read_data_address, BLO_read_list(), CacheFile::handle, CacheFile::handle_filepath, CacheFile::handle_readers, CacheFile::layers, NULL, and CacheFile::object_paths.
|
static |
Definition at line 92 of file cachefile.c.
References CacheFile::adt, BKE_animdata_blend_write(), BKE_id_blend_write(), BLI_listbase_clear(), BLO_write_id_struct, BLO_write_struct, CacheFile::handle, CacheFile::handle_filepath, CacheFile::handle_readers, CacheFile::id, CacheFile::layers, LISTBASE_FOREACH, NULL, and CacheFile::object_paths.
|
static |
Definition at line 64 of file cachefile.c.
References BLI_duplicatelist(), CacheFile::handle, CacheFile::handle_readers, CacheFile::layers, NULL, and CacheFile::object_paths.
|
static |
Definition at line 86 of file cachefile.c.
References BKE_bpath_foreach_path_fixed_process(), and CacheFile::filepath.
Definition at line 78 of file cachefile.c.
References BLI_freelistN(), cachefile_handle_free(), CacheFile::layers, and CacheFile::object_paths.
Definition at line 53 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.
Definition at line 261 of file cachefile.c.
References ABC_CacheReader_free(), ABC_free_handle(), BLI_gset_free(), BLI_gsetIterator_getKey(), BLI_spin_lock(), BLI_spin_unlock(), CACHE_FILE_TYPE_INVALID, CACHEFILE_TYPE_ALEMBIC, CACHEFILE_TYPE_USD, GSET_ITER, CacheFile::handle, CacheFile::handle_filepath, CacheFile::handle_readers, NULL, spin, CacheFile::type, UNUSED_VARS, USD_CacheReader_free(), and USD_free_handle().
Referenced by BKE_cachefile_eval(), BKE_cachefile_reload(), and cache_file_free_data().
IDTypeInfo IDType_ID_CF |
Definition at line 131 of file cachefile.c.
|
static |
Definition at line 162 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::init_execution(), and update_courant_num().