Blender V4.5
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/guiding.h"
#include "util/md5.h"
#include "util/openimagedenoise.h"
#include "util/path.h"
#include "util/string.h"
#include "util/task.h"
#include "util/types.h"
#include "GPU_state.hh"
#include "scene/osl.h"

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)
void CCL_NAMESPACE_BEGIN::debug_flags_sync_from_scene (BL::Scene b_scene)
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()

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

◆ CCL_python_module_init()

CCL_NAMESPACE_END void * CCL_python_module_init ( void )

Definition at line 810 of file python.cpp.

References CCL_python_module_init(), and mod.

Referenced by CCL_python_module_init().

◆ create_func()

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

◆ debug_flags_reset_func()

PyObject * debug_flags_reset_func ( PyObject * ,
PyObject *  )
static

Definition at line 656 of file python.cpp.

References debug_flags_reset_func().

Referenced by debug_flags_reset_func().

◆ debug_flags_update_func()

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

Definition at line 639 of file python.cpp.

References debug_flags_update_func(), and RNA_id_pointer_create().

Referenced by debug_flags_update_func().

◆ denoise_func()

◆ draw_func()

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

Definition at line 278 of file python.cpp.

References BlenderSession::draw(), draw_func(), and RNA_pointer_create_discrete().

Referenced by draw_func().

◆ enable_print_stats_func()

PyObject * enable_print_stats_func ( PyObject * ,
PyObject *  )
static

Definition at line 665 of file python.cpp.

References enable_print_stats_func(), and BlenderSession::print_render_stats.

Referenced by enable_print_stats_func().

◆ exit_func()

PyObject * exit_func ( PyObject * ,
PyObject *  )
static

◆ free_func()

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

◆ get_device_types_func()

PyObject * get_device_types_func ( PyObject * ,
PyObject *  )
static

◆ image_parse_filepaths()

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

Definition at line 485 of file python.cpp.

References i, and image_parse_filepaths().

Referenced by denoise_func(), image_parse_filepaths(), and merge_func().

◆ init_func()

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

Definition at line 122 of file python.cpp.

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

Referenced by init_func().

◆ merge_func()

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

◆ PyC_UnicodeAsBytes()

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

Definition at line 97 of file python.cpp.

References PyC_UnicodeAsBytes(), and result.

◆ python_thread_state_restore()

void python_thread_state_restore ( void ** python_thread_state)

◆ python_thread_state_save()

void python_thread_state_save ( void ** python_thread_state)

◆ render_frame_finish_func()

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

◆ render_func()

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

◆ reset_func()

◆ set_device_override_func()

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

◆ sync_func()

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

◆ system_info_func()

PyObject * system_info_func ( PyObject * ,
PyObject *  )
static

Definition at line 479 of file python.cpp.

References Device::device_capabilities(), and system_info_func().

Referenced by system_info_func().

◆ view_draw_func()

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

Definition at line 344 of file python.cpp.

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

Referenced by view_draw_func().

Variable Documentation

◆ methods

PyMethodDef methods[]
static

Definition at line 752 of file python.cpp.

◆ module

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

Definition at line 796 of file python.cpp.