|
Blender
V2.93
|
#include <Python.h>#include "blender/CCL_api.h"#include "blender/blender_device.h"#include "blender/blender_session.h"#include "blender/blender_sync.h"#include "blender/blender_util.h"#include "render/denoising.h"#include "render/merge.h"#include "util/util_debug.h"#include "util/util_foreach.h"#include "util/util_logging.h"#include "util/util_md5.h"#include "util/util_opengl.h"#include "util/util_openimagedenoise.h"#include "util/util_path.h"#include "util/util_string.h"#include "util/util_task.h"#include "util/util_tbb.h"#include "util/util_types.h"Go to the source code of this file.
Namespaces | |
| CCL_NAMESPACE_BEGIN | |
Functions | |
| void * | CCL_NAMESPACE_BEGIN::pylong_as_voidptr_typesafe (PyObject *object) |
| PyObject * | CCL_NAMESPACE_BEGIN::pyunicode_from_string (const char *str) |
| bool | CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene (BL::Scene b_scene) |
| bool | CCL_NAMESPACE_BEGIN::debug_flags_reset () |
| void | python_thread_state_save (void **python_thread_state) |
| void | python_thread_state_restore (void **python_thread_state) |
| static const char * | PyC_UnicodeAsByte (PyObject *py_str, PyObject **coerce) |
| static PyObject * | init_func (PyObject *, PyObject *args) |
| static PyObject * | exit_func (PyObject *, PyObject *) |
| static PyObject * | create_func (PyObject *, PyObject *args) |
| static PyObject * | free_func (PyObject *, PyObject *value) |
| static PyObject * | render_func (PyObject *, PyObject *args) |
| static PyObject * | bake_func (PyObject *, PyObject *args) |
| static PyObject * | draw_func (PyObject *, PyObject *args) |
| static PyObject * | reset_func (PyObject *, PyObject *args) |
| static PyObject * | sync_func (PyObject *, PyObject *args) |
| static PyObject * | available_devices_func (PyObject *, PyObject *args) |
| static PyObject * | system_info_func (PyObject *, PyObject *) |
| static bool | image_parse_filepaths (PyObject *pyfilepaths, vector< string > &filepaths) |
| static PyObject * | denoise_func (PyObject *, PyObject *args, PyObject *keywords) |
| static PyObject * | merge_func (PyObject *, PyObject *args, PyObject *keywords) |
| static PyObject * | debug_flags_update_func (PyObject *, PyObject *args) |
| static PyObject * | debug_flags_reset_func (PyObject *, PyObject *) |
| static PyObject * | set_resumable_chunk_func (PyObject *, PyObject *args) |
| static PyObject * | set_resumable_chunk_range_func (PyObject *, PyObject *args) |
| static PyObject * | clear_resumable_chunk_func (PyObject *, PyObject *) |
| static PyObject * | enable_print_stats_func (PyObject *, PyObject *) |
| static PyObject * | get_device_types_func (PyObject *, PyObject *) |
| static PyObject * | set_device_override_func (PyObject *, PyObject *arg) |
| CCL_NAMESPACE_END void * | CCL_python_module_init () |
Variables | |
| bool | CCL_NAMESPACE_BEGIN::debug_flags_set = false |
| static PyMethodDef | methods [] |
| static struct PyModuleDef | module |
|
static |
Definition at line 409 of file blender_python.cpp.
References Device::available_devices(), DeviceInfo::description, DEVICE_MASK, DEVICE_MASK_ALL, DEVICE_MASK_CPU, DEVICE_NONE, blender::compositor::devices, DeviceInfo::has_peer_memory, DeviceInfo::id, mask(), NULL, CCL_NAMESPACE_BEGIN::pyunicode_from_string(), ret, Device::string_from_type(), DeviceInfo::type, type, and Device::type_from_string().
|
static |
Definition at line 304 of file blender_python.cpp.
References BlenderSession::bake(), height, NULL, BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), RNA_Depsgraph, RNA_id_pointer_create(), RNA_pointer_create(), and width.
| CCL_NAMESPACE_END void* CCL_python_module_init | ( | void | ) |
Definition at line 1074 of file blender_python.cpp.
References mod(), module, and openimagedenoise_supported().
|
static |
Definition at line 947 of file blender_python.cpp.
References BlenderSession::current_resumable_chunk, BlenderSession::num_resumable_chunks, and VLOG.
|
static |
Definition at line 208 of file blender_python.cpp.
References data, height, NULL, CCL_NAMESPACE_BEGIN::pylong_as_voidptr_typesafe(), RNA_main_pointer_create(), RNA_pointer_create(), RNA_Preferences, RNA_Region, RNA_RenderEngine, RNA_SpaceView3D, and width.
Referenced by blender::tests::TEST(), ui_popup_block_create(), and ui_popup_block_refresh().
|
static |
Definition at line 865 of file blender_python.cpp.
References CCL_NAMESPACE_BEGIN::debug_flags_reset(), CCL_NAMESPACE_BEGIN::debug_flags_set, DebugFlags(), Device::tag_update(), and VLOG.
|
static |
Definition at line 842 of file blender_python.cpp.
References CCL_NAMESPACE_BEGIN::debug_flags_set, CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene(), DebugFlags(), NULL, RNA_id_pointer_create(), Device::tag_update(), and VLOG.
|
static |
Definition at line 710 of file blender_python.cpp.
References blender_device_info(), Denoiser::error, get_boolean(), get_float(), get_int(), image_parse_filepaths(), Denoiser::input, keyword_list, make_int2, NULL, output, Denoiser::output, Denoiser::params, params, RNA_id_pointer_create(), RNA_pointer_create(), RNA_pointer_get(), RNA_Preferences, RNA_ViewLayer, Denoiser::run(), Denoiser::samples_override, and Denoiser::tile_size.
|
static |
Definition at line 341 of file blender_python.cpp.
References BlenderSession::draw(), and NULL.
|
static |
Definition at line 956 of file blender_python.cpp.
References BlenderSession::print_render_stats.
|
static |
Definition at line 200 of file blender_python.cpp.
References Device::free_memory(), ShaderManager::free_memory(), and TaskScheduler::free_memory().
|
static |
Definition at line 272 of file blender_python.cpp.
Referenced by BLI_linklist_lockfree_clear(), BLI_linklist_lockfree_free(), and BLI_task_graph_node_create().
|
static |
Definition at line 962 of file blender_python.cpp.
References Device::available_types(), DEVICE_CUDA, DEVICE_OPENCL, and DEVICE_OPTIX.
|
static |
Definition at line 681 of file blender_python.cpp.
References NULL.
Referenced by denoise_func(), and merge_func().
|
static |
Definition at line 176 of file blender_python.cpp.
References DebugFlags(), BlenderSession::headless, NULL, path_init(), PyC_UnicodeAsByte(), DebugFlags::running_inside_blender, and VLOG.
|
static |
Definition at line 806 of file blender_python.cpp.
References ImageMerger::error, image_parse_filepaths(), ImageMerger::input, keyword_list, NULL, output, ImageMerger::output, and ImageMerger::run().
|
static |
| void python_thread_state_restore | ( | void ** | python_thread_state | ) |
Definition at line 143 of file blender_python.cpp.
References NULL.
Referenced by bake_func(), render_func(), reset_func(), and sync_func().
| void python_thread_state_save | ( | void ** | python_thread_state | ) |
Definition at line 138 of file blender_python.cpp.
Referenced by bake_func(), render_func(), reset_func(), and sync_func().
|
static |
Definition at line 279 of file blender_python.cpp.
References NULL, BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), BlenderSession::render(), RNA_Depsgraph, and RNA_pointer_create().
|
static |
Definition at line 361 of file blender_python.cpp.
References NULL, BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), BlenderSession::reset_session(), RNA_Depsgraph, RNA_main_pointer_create(), and RNA_pointer_create().
|
static |
Definition at line 978 of file blender_python.cpp.
References DEVICE_MASK_CPU, DEVICE_MASK_CUDA, DEVICE_MASK_OPENCL, DEVICE_MASK_OPTIX, BlenderSession::device_override, length(), and string_endswith().
|
static |
Definition at line 878 of file blender_python.cpp.
References BlenderSession::current_resumable_chunk, BlenderSession::num_resumable_chunks, and VLOG.
|
static |
Definition at line 907 of file blender_python.cpp.
References BlenderSession::end_resumable_chunk, BlenderSession::num_resumable_chunks, BlenderSession::start_resumable_chunk, and VLOG.
|
static |
Definition at line 387 of file blender_python.cpp.
References NULL, BlenderSession::python_thread_state, python_thread_state_restore(), python_thread_state_save(), RNA_Depsgraph, RNA_pointer_create(), and BlenderSession::synchronize().
|
static |
Definition at line 641 of file blender_python.cpp.
References Device::device_capabilities(), and CCL_NAMESPACE_BEGIN::pyunicode_from_string().
|
static |
Definition at line 1016 of file blender_python.cpp.
|
static |
Definition at line 1016 of file blender_python.cpp.
Referenced by btGenericMemoryPool::allocate(), AUD_initPython(), BBox_Init(), BinaryPredicate0D_Init(), BinaryPredicate1D_Init(), BKE_addon_ensure(), BKE_addon_find(), BKE_addon_remove_safe(), BKE_freestyle_config_copy(), bli_windows_system_backtrace_exception_record(), BLI_windows_system_backtrace_run_trace(), CCL_python_module_init(), ContextFunctions_Init(), copy_module(), displayed_layer_count(), Freestyle_Init(), FrsMaterial_Init(), FrsNoise_Init(), GHOST_WindowWin32::getStandardCursor(), Id_Init(), IntegrationType_Init(), Interface0D_Init(), Interface1D_Init(), Iterator_Init(), MediumType_Init(), Nature_Init(), Operators_Init(), scene_blend_read_expand(), SShape_Init(), StrokeAttribute_Init(), StrokeShader_Init(), UnaryFunction0D_Init(), UnaryFunction0DDouble_Init(), UnaryFunction0DEdgeNature_Init(), UnaryFunction0DFloat_Init(), UnaryFunction0DId_Init(), UnaryFunction0DMaterial_Init(), UnaryFunction0DUnsigned_Init(), UnaryFunction0DVec2f_Init(), UnaryFunction0DVec3f_Init(), UnaryFunction0DVectorViewShape_Init(), UnaryFunction0DViewShape_Init(), UnaryFunction1D_Init(), UnaryFunction1DDouble_Init(), UnaryFunction1DEdgeNature_Init(), UnaryFunction1DFloat_Init(), UnaryFunction1DUnsigned_Init(), UnaryFunction1DVec2f_Init(), UnaryFunction1DVec3f_Init(), UnaryFunction1DVectorViewShape_Init(), UnaryFunction1DVoid_Init(), UnaryPredicate0D_Init(), UnaryPredicate1D_Init(), ViewMap_Init(), and ViewShape_Init().