Blender V4.3
python.cpp File Reference
#include <Python.h>
#include "blender/CCL_api.h"
#include "blender/device.h"
#include "blender/session.h"
#include "blender/sync.h"
#include "blender/util.h"
#include "session/denoising.h"
#include "session/merge.h"
#include "util/debug.h"
#include "util/foreach.h"
#include "util/guiding.h"
#include "util/log.h"
#include "util/md5.h"
#include "util/openimagedenoise.h"
#include "util/path.h"
#include "util/string.h"
#include "util/task.h"
#include "util/tbb.h"
#include "util/types.h"
#include "GPU_state.hh"

Go to the source code of this file.

Namespaces

namespace  CCL_NAMESPACE_BEGIN
 

Functions

void * CCL_NAMESPACE_BEGIN::pylong_as_voidptr_typesafe (PyObject *object)
 
PyObject * CCL_NAMESPACE_BEGIN::pyunicode_from_string (const char *str)
 
static void CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene (BL::Scene b_scene)
 
static void 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_UnicodeAsBytes (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 * render_frame_finish_func (PyObject *, PyObject *args)
 
static PyObject * draw_func (PyObject *, PyObject *args)
 
static PyObject * bake_func (PyObject *, PyObject *args)
 
static PyObject * view_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 * 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
 

Function Documentation

◆ available_devices_func()

◆ bake_func()

static PyObject * bake_func ( PyObject * ,
PyObject * args )
static

◆ CCL_python_module_init()

CCL_NAMESPACE_END void * CCL_python_module_init ( void )

Definition at line 1005 of file python.cpp.

References mod().

◆ create_func()

static PyObject * create_func ( PyObject * ,
PyObject * args )
static

◆ debug_flags_reset_func()

static PyObject * debug_flags_reset_func ( PyObject * ,
PyObject *  )
static

Definition at line 872 of file python.cpp.

◆ debug_flags_update_func()

static PyObject * debug_flags_update_func ( PyObject * ,
PyObject * args )
static

Definition at line 855 of file python.cpp.

References NULL, and RNA_id_pointer_create().

◆ denoise_func()

◆ draw_func()

static PyObject * draw_func ( PyObject * ,
PyObject * args )
static

Definition at line 275 of file python.cpp.

References BlenderSession::draw(), and RNA_pointer_create().

◆ enable_print_stats_func()

static PyObject * enable_print_stats_func ( PyObject * ,
PyObject *  )
static

Definition at line 881 of file python.cpp.

References BlenderSession::print_render_stats.

◆ exit_func()

static PyObject * exit_func ( PyObject * ,
PyObject *  )
static

◆ free_func()

static PyObject * free_func ( PyObject * ,
PyObject * value )
static

◆ get_device_types_func()

static PyObject * get_device_types_func ( PyObject * ,
PyObject *  )
static

◆ image_parse_filepaths()

static bool image_parse_filepaths ( PyObject * pyfilepaths,
vector< string > & filepaths )
static

Definition at line 706 of file python.cpp.

References NULL.

Referenced by denoise_func(), and merge_func().

◆ init_func()

static PyObject * init_func ( PyObject * ,
PyObject * args )
static

Definition at line 129 of file python.cpp.

References BlenderSession::headless, path_init(), and PyC_UnicodeAsBytes().

◆ merge_func()

static PyObject * merge_func ( PyObject * ,
PyObject * args,
PyObject * keywords )
static

◆ PyC_UnicodeAsBytes()

static const char * PyC_UnicodeAsBytes ( PyObject * py_str,
PyObject ** coerce )
static

Definition at line 102 of file python.cpp.

References result.

Referenced by init_func().

◆ python_thread_state_restore()

void python_thread_state_restore ( void ** python_thread_state)

Definition at line 96 of file python.cpp.

References NULL.

Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().

◆ python_thread_state_save()

void python_thread_state_save ( void ** python_thread_state)

Definition at line 91 of file python.cpp.

Referenced by bake_func(), render_frame_finish_func(), render_func(), reset_func(), and sync_func().

◆ render_frame_finish_func()

static PyObject * render_frame_finish_func ( PyObject * ,
PyObject * args )
static

◆ render_func()

static PyObject * render_func ( PyObject * ,
PyObject * args )
static

◆ reset_func()

static PyObject * reset_func ( PyObject * ,
PyObject * args )
static

◆ set_device_override_func()

static PyObject * set_device_override_func ( PyObject * ,
PyObject * arg )
static

◆ sync_func()

static PyObject * sync_func ( PyObject * ,
PyObject * args )
static

◆ system_info_func()

static PyObject * system_info_func ( PyObject * ,
PyObject *  )
static

Definition at line 700 of file python.cpp.

References Device::device_capabilities().

◆ view_draw_func()

static PyObject * view_draw_func ( PyObject * ,
PyObject * args )
static

Definition at line 334 of file python.cpp.

References GPU_viewport_size_get_i(), NULL, and BlenderSession::view_draw().

Variable Documentation

◆ methods

PyMethodDef methods[]
static

Definition at line 954 of file python.cpp.

◆ module

struct PyModuleDef module
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"_cycles",
"Blender cycles render integration",
-1,
nullptr,
nullptr,
nullptr,
nullptr,
}
static PyMethodDef methods[]
Definition python.cpp:954

Definition at line 991 of file 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(), BKE_preferences_extension_repo_add(), BKE_preferences_extension_repo_find_by_module(), BKE_preferences_extension_repo_module_set(), bli_windows_system_backtrace_exception_record(), BLI_windows_system_backtrace_run_trace(), ContextFunctions_Init(), displayed_layer_count(), drw_debug_module_free(), 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(), preferences_extension_repo_add_exec(), 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().